Skip to content

Commit

Permalink
feat: status check name (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
negebauer authored Mar 5, 2021
1 parent bcc66d5 commit 12c8c9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
description: "Only run tests on changed files (over base branch)"
required: false
default: "false"
check-name:
description: "Status check name"
required: true

runs:
using: "node12"
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function getCheckPayload(results: FormattedTestResults, cwd: string) {
const payload: Octokit.ChecksCreateParams = {
...context.repo,
head_sha: getSha(),
name: ACTION_NAME,
name: core.getInput("check-name", { required: false }) || ACTION_NAME,
status: "completed",
conclusion: results.success ? "success" : "failure",
output: {
Expand Down

0 comments on commit 12c8c9a

Please sign in to comment.