Skip to content

Commit

Permalink
feat(github-actions): create a unified status action (#912)
Browse files Browse the repository at this point in the history
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
josephperrott committed Nov 29, 2022
1 parent d98be19 commit 856c3ab
Show file tree
Hide file tree
Showing 5 changed files with 24,065 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ng-dev/utils/protos/*.js

github-actions/create-pr-for-changes/main.js
github-actions/feature-request/main.js
github-actions/unified-status-check/main.js
github-actions/google-internal-tests/main.js
github-actions/lock-closed/main.js
github-actions/commit-message-based-labels/main.js
Expand Down
29 changes: 29 additions & 0 deletions github-actions/unified-status-check/BUILD.bazel
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",
],
)
17 changes: 17 additions & 0 deletions github-actions/unified-status-check/action.yml
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'
Loading

0 comments on commit 856c3ab

Please sign in to comment.