From 8e24a0bdedfab25dbd0634c5a9ad44c25b991cff Mon Sep 17 00:00:00 2001 From: Pierre Wizla Date: Thu, 16 Jan 2025 16:01:00 +0100 Subject: [PATCH] Temp: Automatically label PRs with "port to doc6" --- .github/workflows/auto-label-doc6.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/auto-label-doc6.yml diff --git a/.github/workflows/auto-label-doc6.yml b/.github/workflows/auto-label-doc6.yml new file mode 100644 index 0000000000..8fe47145be --- /dev/null +++ b/.github/workflows/auto-label-doc6.yml @@ -0,0 +1,23 @@ +name: Auto Label PRs +on: + pull_request: + types: + - opened + +jobs: + auto-label: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - name: Add label to PR + uses: actions/github-script@v7 + with: + script: | + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['temp: port to doc6'] + });