From 3cc65f8041a59341417dfd0890c53daeff4bd2d6 Mon Sep 17 00:00:00 2001 From: cwisniew Date: Sun, 31 Mar 2024 13:41:52 +1030 Subject: [PATCH 1/3] Add copy-labels action --- .github/workflows/copy-label-to-pr.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/copy-label-to-pr.yml diff --git a/.github/workflows/copy-label-to-pr.yml b/.github/workflows/copy-label-to-pr.yml new file mode 100644 index 0000000000..913b2305dd --- /dev/null +++ b/.github/workflows/copy-label-to-pr.yml @@ -0,0 +1,25 @@ +on: + pull_request: + types: [opened] + +jobs: + copy-labels: + runs-on: ubuntu-latest + name: Copy labels from linked issues + steps: + - name: copy-labels + uses: michalvankodev/copy-issue-labels@v1.3.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + labels-to-include: | + bug + build-configuration + breaking-change + code-maintenance + dependencies + feature + ignore-for-release-note + performance + refactor + repo-admin + translations From e8d38db4413bb0b1bd6c27dde3d51061e40b4da0 Mon Sep 17 00:00:00 2001 From: cwisniew Date: Sun, 31 Mar 2024 16:20:49 +1030 Subject: [PATCH 2/3] Add permissions --- .github/workflows/copy-label-to-pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/copy-label-to-pr.yml b/.github/workflows/copy-label-to-pr.yml index 913b2305dd..b048970901 100644 --- a/.github/workflows/copy-label-to-pr.yml +++ b/.github/workflows/copy-label-to-pr.yml @@ -1,6 +1,11 @@ +name: Copy Labels to PR on: pull_request: types: [opened] + permissions: + contents: read + issues: read + pull-requests: write jobs: copy-labels: From bc57e455ddf6e88291dc65556f90bfe00fa8bc0d Mon Sep 17 00:00:00 2001 From: cwisniew Date: Sun, 31 Mar 2024 16:22:44 +1030 Subject: [PATCH 3/3] Add permissions --- .github/workflows/copy-label-to-pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/copy-label-to-pr.yml b/.github/workflows/copy-label-to-pr.yml index b048970901..5e46edfb5a 100644 --- a/.github/workflows/copy-label-to-pr.yml +++ b/.github/workflows/copy-label-to-pr.yml @@ -2,13 +2,13 @@ name: Copy Labels to PR on: pull_request: types: [opened] - permissions: - contents: read - issues: read - pull-requests: write jobs: copy-labels: + permissions: + contents: read + issues: read + pull-requests: write runs-on: ubuntu-latest name: Copy labels from linked issues steps: