From e164f96901a339d4b6b09cfc7b0c55e72c0b763d Mon Sep 17 00:00:00 2001 From: meghanoconnell Date: Tue, 31 Mar 2026 23:48:52 +0200 Subject: [PATCH 1/2] Add complexity0, er, and epic to labels to exclude for check --- .../check-issue-labels-and-linked-prs.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js b/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js index 717be66d2f..b07f66c761 100644 --- a/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js +++ b/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js @@ -2,9 +2,15 @@ const retrieveLabelDirectory = require('../../utils/retrieve-label-directory'); // Use labelKeys to retrieve current labelNames from directory const [ - nonPrContribution + nonPrContribution, + complexity0, + er, + epic ] = [ - 'NEW-nonPrContribution' + 'NEW-nonPrContribution', + 'complexity0', + 'er', + 'epic' ].map(retrieveLabelDirectory); // ================================================== @@ -15,8 +21,9 @@ const [ * * @param {{github: object, context: object}} actionsGithubScriptArgs - GitHub * objects from actions/github-script - * @returns {boolean} False if the issue does not have a linked PR, a "non-PR - * contribution" label, or an "Ignore..." label. + * @returns {boolean} False if the issue does not have a linked PR, one of the following contribution labels: "non-PR + * contribution", "Complexity: Prework", "ER", "epic", or an + * "Ignore..." label. */ async function hasLinkedPrOrExcusableLabel({ github, context }) { const repoOwner = context.repo.owner; @@ -31,10 +38,12 @@ async function hasLinkedPrOrExcusableLabel({ github, context }) { // -------------------------------------------------- // Check if the issue has the labels that will avoid re-opening it. + const excludedLabels = [nonPrContribution, complexity0, er, epic]; + if ( labels.some( (label) => - label === nonPrContribution || label.toLowerCase().includes('ignore') + excludedLabels.inlcudes(label) || label.toLowerCase().includes('ignore') ) ) { console.info(consoleMessageAllowClose); From c65596cf501166d3b282f02a7d9a720fee23a09d Mon Sep 17 00:00:00 2001 From: meghanoconnell Date: Wed, 1 Apr 2026 12:30:50 +0200 Subject: [PATCH 2/2] fix typo: includes() --- .../check-for-linked-issue/check-issue-labels-and-linked-prs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js b/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js index b07f66c761..a00c4ae37b 100644 --- a/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js +++ b/github-actions/check-closed-issue-for-linked-pr/check-for-linked-issue/check-issue-labels-and-linked-prs.js @@ -43,7 +43,7 @@ async function hasLinkedPrOrExcusableLabel({ github, context }) { if ( labels.some( (label) => - excludedLabels.inlcudes(label) || label.toLowerCase().includes('ignore') + excludedLabels.includes(label) || label.toLowerCase().includes('ignore') ) ) { console.info(consoleMessageAllowClose);