Skip to content

Commit

Permalink
Merge pull request #11 from AbnormalPoof/patch-5
Browse files Browse the repository at this point in the history
[pending-triage-labeler] `status: pending triage` now applies once
  • Loading branch information
Hundrec authored Jan 26, 2025
2 parents f9be199 + 95b8921 commit f60b1b6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@
- any-glob-to-any-file:
- github/*
- '**/*.yml'

# Add pending triage label to all PR's
'status: pending triage':
- changed-files:
- any-glob-to-any-file: '**'
19 changes: 19 additions & 0 deletions .github/workflows/label-pull-request-on-create.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Pull Request Labeler 2 (Runs on PR creation)"
on:
pull_request_target:
types:
- opened

jobs:
# Apply `status: pending triage` to newly created pull requests
apply-pending-triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Apply "status pending triage" to new pull requests
uses: actions-ecosystem/action-add-labels@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
labels: "status: pending triage"

0 comments on commit f60b1b6

Please sign in to comment.