Skip to content

Commit

Permalink
ci(ai): cleanup labeler actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Apr 18, 2024
1 parent 1643a1e commit 5bb92fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Label issues and pull requests
name: Label issues
on:
issues:
types: [opened, reopened]
pull_request:
types: [opened, reopened]
pull_request_target:
types: [opened, reopened]

jobs:
label_issues:
Expand All @@ -20,13 +16,3 @@ jobs:
add-labels: "status: triage"
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-if-assigned: false

label_pull_requests:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/labeler@v5
14 changes: 14 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Label issues
on:
pull_request_target:
types: [opened, reopened]

jobs:
label_pull_requests:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/labeler@v5

0 comments on commit 5bb92fa

Please sign in to comment.