From e8b78acbee35b63f4f19fdcfdf4915cf9d784b27 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 26 Dec 2020 14:02:14 +0100 Subject: CI/GitHub: Apply branch label to PRs when they are opened Apply branch label to PRs when they are opened instead of having a cron job that runs every 5 minutes. This uses the "new" github action type "pull_request_target" (cherry picked from commit 89cfced1b568e8807ab71f7da0e3ffc5cdc10ce7) # Conflicts: # .github/workflows/pr-labeler.yml --- .github/workflows/pr-labeler.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/pr-labeler.yml (limited to '.github') diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000000..88cfc15b408 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,14 @@ +on: + pull_request_target: + types: [opened] + +jobs: + pr_labeler: + runs-on: ubuntu-latest + name: Pull Request Labeler + steps: + - name: Pull Request Labeler + id: pr-labeler + uses: TrinityCore/GitHub-Actions@pr-labeler-prod + with: + token: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3