Skip to content

Commit

Permalink
ci(ai): add AI pull request labeler
Browse files Browse the repository at this point in the history
This commit adds a pull request labeler action that automatically
attaches the `ai` label when a pull request is created to the `ai-video`
branch.
  • Loading branch information
rickstaa committed Apr 13, 2024
1 parent 44c95d0 commit c822b13
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Label issues
name: Label issues and pull requests
on:
issues:
types:
- reopened
- opened
types: [opened, reopened]
pull_request:
types: [opened, reopened]

jobs:
label_issues:
if: ${{ github.event_name == 'issues' }}
runs-on: ubuntu-latest
permissions:
issues: write
Expand All @@ -16,3 +18,12 @@ 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/labeler@v5

0 comments on commit c822b13

Please sign in to comment.