From 549cda435add6203bcb72b346ba2de31bf72615a Mon Sep 17 00:00:00 2001 From: Gerwin Klein Date: Tue, 9 Jul 2024 16:03:32 +1000 Subject: [PATCH] thylint: accept PR number inputs GitHub turns this into INPUT_PR_NUM, which is consumed by `scripts/checkout.sh`. Signed-off-by: Gerwin Klein --- thylint/README.md | 1 + thylint/action.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/thylint/README.md b/thylint/README.md index 27652be2..8a51463f 100644 --- a/thylint/README.md +++ b/thylint/README.md @@ -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 diff --git a/thylint/action.yml b/thylint/action.yml index f1abb4f4..b86eee27 100644 --- a/thylint/action.yml +++ b/thylint/action.yml @@ -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