mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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 89cfced1b5)
# Conflicts:
# .github/workflows/pr-labeler.yml
This commit is contained in:
14
.github/workflows/pr-labeler.yml
vendored
Normal file
14
.github/workflows/pr-labeler.yml
vendored
Normal file
@@ -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 }}
|
||||
Reference in New Issue
Block a user