From 5b416fa78322b9687350aece4dfd22e1c4693e38 Mon Sep 17 00:00:00 2001 From: Gauthier Petetin Date: Tue, 4 Jun 2024 22:45:03 +0200 Subject: [PATCH] fix(rc issues): better handle RC issues --- .github/scripts/check-template-and-add-labels.ts | 2 +- .github/workflows/create-bug-report.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check-template-and-add-labels.ts b/.github/scripts/check-template-and-add-labels.ts index c0d4497..83bc06f 100644 --- a/.github/scripts/check-template-and-add-labels.ts +++ b/.github/scripts/check-template-and-add-labels.ts @@ -326,7 +326,7 @@ async function userBelongsToMetaMaskOrg( function isReleaseCandidateIssue( issue: Labelable, ): boolean { - return Boolean(issue.labels.find(label => label.name === 'regression-RC')); + return Boolean(issue.labels.find(label => label.name.startsWith('regression-RC'))); } // This function checks if issue belongs to a team not using templates. diff --git a/.github/workflows/create-bug-report.yml b/.github/workflows/create-bug-report.yml index b0f226e..6336b5d 100644 --- a/.github/workflows/create-bug-report.yml +++ b/.github/workflows/create-bug-report.yml @@ -24,7 +24,7 @@ jobs: { "title": "v${{ env.version }} Bug Report", "body": "This bug report was automatically created by a GitHub action upon the creation of release branch \`Version-v${{ env.version }}\` (release cut).\n\n**Expected actions for release engineers:**\n\n1. Convert this issue into a Zenhub epic and link all bugs identified during the release regression testing phase to this epic.\n\n2. After completing the first regression run, move this epic to \"Regression Completed\" on the [Extension Release Regression board](https://app.zenhub.com/workspaces/extension-release-regression-6478c62d937eaa15e95c33c5/board?filterLogic=any&labels=release-${{ env.version }},release-task).\n\nNote that once the release is prepared for store submission, meaning the \`Version-v${{ env.version }}\` branch merges into \`master\`, another GitHub action will automatically close this epic.", - "labels": ["type-bug", "regression-RC", "release-${{ env.version }}"] + "labels": ["type-bug", "team-mobile-platform", "regression-RC-${{ env.version }}"] } EOF )