From c707e72ff71032ea367e6b7b725914859995853f Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Fri, 10 May 2024 11:59:12 +0300 Subject: [PATCH 1/2] fix(actions): Exclude prod branch from community labels The prod branch monitors the latest deployed code in Novu Cloud. --- .github/workflows/community-label.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index bac384db43b..383f19e6c00 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -3,6 +3,8 @@ name: Add Community Label on: pull_request_target: types: [opened] + branches: + - '!prod' concurrency: group: ${{ github.workflow }}-${{ github.ref }} From a5d529161dc59a9a11da1c5dbd9ccb495d8c931a Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Fri, 10 May 2024 12:23:58 +0300 Subject: [PATCH 2/2] fix(actions): Pin @oktokit/actions to v6 that works with CJS This is a quick fix to restore the labeler workflows until we port everything to ESM. --- .github/workflows/community-label.yml | 2 +- .github/workflows/issue-label.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/community-label.yml b/.github/workflows/community-label.yml index 383f19e6c00..3f9a2172dc9 100644 --- a/.github/workflows/community-label.yml +++ b/.github/workflows/community-label.yml @@ -21,7 +21,7 @@ jobs: with: node-version: 20.8.1 - name: Install Octokit - run: npm --prefix .github/workflows/scripts install @octokit/action + run: npm --prefix .github/workflows/scripts install @octokit/action@6 - name: Check if user is a community contributor id: check diff --git a/.github/workflows/issue-label.yml b/.github/workflows/issue-label.yml index 9c07d7ed6ee..29a5e8f9356 100644 --- a/.github/workflows/issue-label.yml +++ b/.github/workflows/issue-label.yml @@ -19,7 +19,7 @@ jobs: with: node-version: 20.8.1 - name: Install Octokit - run: npm --prefix .github/workflows/scripts install @octokit/action + run: npm --prefix .github/workflows/scripts install @octokit/action@6 - name: Check if user is a community contributor id: check