From b54aeebfb586ea15491b3a68e3002c074009c48d Mon Sep 17 00:00:00 2001 From: mpapenbr Date: Sat, 13 Jan 2024 13:27:06 +0100 Subject: [PATCH] GHA: add copy-labels, cleanup PR template Fixes #19 --- .github/PULL_REQUEST_TEMPLATE.md | 20 +------------------- .github/workflows/copy-issue-labels.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/copy-issue-labels.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7997815..2cbd9fc 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,19 +1 @@ -## Description - - - -## Type of Change - - - -- [ ] 📚 Documentation (Non-breaking change; Changes in the documentation) -- [ ] 🔧 Bug fix (Non-breaking change; Fixes an existing bug) -- [ ] 🥂 Improvement (Non-breaking change; Improves existing feature) -- [ ] 🚀 New feature (Non-breaking change; Adds functionality) -- [ ] 🔐 Security fix (Non-breaking change; Patches a security issue) -- [ ] 💥 Breaking change (Breaks existing functionality) +### Description diff --git a/.github/workflows/copy-issue-labels.yml b/.github/workflows/copy-issue-labels.yml new file mode 100644 index 0000000..0f4c96e --- /dev/null +++ b/.github/workflows/copy-issue-labels.yml @@ -0,0 +1,20 @@ +name: Copy issue labels to PR +on: + workflow_dispatch: + pull_request: + types: [opened] +# Note: this may be obsolete when it is included here: https://github.com/microsoft/vscode-pull-request-github/issues/1186 +jobs: + copy-labels: + runs-on: ubuntu-latest + name: Copy labels from linked issues + permissions: + contents: write + issues: write + pull-requests: write + + steps: + - name: copy-labels + uses: michalvankodev/copy-issue-labels@v1.3.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}