From be7be634d915e04f71913d5a64dd4c38f0584d5e Mon Sep 17 00:00:00 2001 From: Yamila Moreno Date: Thu, 19 Nov 2026 10:21:13 +0100 Subject: [PATCH] :wrench: Add exemption to linked issues workflow Signed-off-by: Yamila Moreno --- .github/workflows/require-linked-issue.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/require-linked-issue.yml b/.github/workflows/require-linked-issue.yml index 6379ac4e91..ffb32bffca 100644 --- a/.github/workflows/require-linked-issue.yml +++ b/.github/workflows/require-linked-issue.yml @@ -1,7 +1,7 @@ name: Require Linked Issue # A pull request must have at least one closing-issue reference, unless it -# carries the `no issue required` label. +# carries the `no issue required` or `pr pt` label. on: pull_request: types: @@ -69,10 +69,10 @@ jobs: fi has_exemption=$(echo "$pull_request" | jq -r ' - .labels.nodes | map(.name) | index("no issue required") != null + any(.labels.nodes[]; .name == "no issue required" or .name == "pr pt") ') if [ "$has_exemption" = "true" ]; then - echo 'Label "no issue required" found: linked issue check skipped.' + echo 'Exempt label found: linked issue check skipped.' exit 0 fi @@ -82,7 +82,7 @@ jobs: ') if [ -z "$issues" ]; then - echo '::error::This pull request must have a linked issue, or the "no issue required" label.' + echo '::error::This pull request must have a linked issue, or an exempt label ("no issue required").' exit 1 fi