Skip to content

Commit

Permalink
thylint: accept PR number inputs
Browse files Browse the repository at this point in the history
GitHub turns this into INPUT_PR_NUM, which is consumed by
`scripts/checkout.sh`.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Jul 9, 2024
1 parent e04fba6 commit 549cda4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions thylint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ that can be displayed as source annotation with the [yuzutech/annotations][1] ac
- `disable`: a comma-separated list of warning classes to disable (default: none).
One of `diag`, `find-proofs`, `sorry`, `axiom`, `style`.
Do not use spaces between comma and warning class.
- `pr_num`: pull request number to check out, e.g. for `pull_request_target` triggers.
- `token`: GitHub PA token to authenticate for private repos (optional)

## Example
Expand Down
3 changes: 3 additions & 0 deletions thylint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
token:
description: 'GitHub token for read access to repository'
required: false
pr_num:
description: 'Explicit pull request number to check out, e.g. for pull_request_target'
required: false
disable:
description: 'Comma-separated list (no spaces) of warning classes to disable (default: none)'
required: false
Expand Down

0 comments on commit 549cda4

Please sign in to comment.