-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(github-actions): create a unified status action (#912)
Create a github action which tracks all of the statuses on a pull request to create a unified status value. PR Close #912
- Loading branch information
1 parent
d98be19
commit 856c3ab
Showing
5 changed files
with
24,065 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
load("//tools:defaults.bzl", "esbuild_checked_in", "ts_library") | ||
|
||
package(default_visibility = ["//github-actions/unified-status-check:__subpackages__"]) | ||
|
||
ts_library( | ||
name = "unified-status-check", | ||
srcs = glob( | ||
["src/*.ts"], | ||
), | ||
deps = [ | ||
"//github-actions:utils", | ||
"@npm//@actions/core", | ||
"@npm//@actions/github", | ||
"@npm//@octokit/graphql-schema", | ||
"@npm//@octokit/rest", | ||
"@npm//@octokit/types", | ||
"@npm//@types/node", | ||
"@npm//typed-graphqlify", | ||
], | ||
) | ||
|
||
esbuild_checked_in( | ||
name = "main", | ||
entry_point = ":src/main.ts", | ||
target = "node16", | ||
deps = [ | ||
":unified-status-check", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Unified Status Check' | ||
description: 'Monitor the statuses on a pull request to ensure all expected statuses are passing' | ||
author: 'Angular' | ||
inputs: | ||
angular-robot-key: | ||
description: 'The private key for the Angular Robot Github app.' | ||
required: true | ||
ignored: | ||
description: 'Status matchers (string or regex) to be ignored.' | ||
required: false | ||
required: | ||
description: 'Status matchers (string or regex) required to match at least one status.' | ||
required: false | ||
|
||
runs: | ||
using: 'node16' | ||
main: 'main.js' |
Oops, something went wrong.