Skip to content

Commit

Permalink
ci(ai): fix pull request config warning (#3018) (#3019)
Browse files Browse the repository at this point in the history
* ci(ai): fix pull request config warning (#3018)

This commit gets rid of the Pull request labeler configuration file
warning.

* ci(ai): auto assign AI issues

This commit auto assigns the AI issues to the right member of the AI
team.

* ci(ai): cleanup labeler actions

This commit cleans up the labeler actions and ensure they run on the
right triggers.
  • Loading branch information
rickstaa committed Apr 19, 2024
1 parent bc726a8 commit 9305333
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report_ai_video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ description: Create a report to help us improve.
labels:
- "type: bug"
- "AI"
assignees:
- rickstaa
body:
- type: markdown
attributes:
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request_ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ description: Suggest an idea for this project.
labels:
- "type: feature"
- "AI"
assignees:
- rickstaa
body:
- type: markdown
attributes:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Label issues and pull requests
name: Label issues
on:
issues:
types: [opened, reopened]
pull_request:
types: [opened, reopened]

jobs:
label_issues:
Expand All @@ -18,12 +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/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 PRs
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 9305333

Please sign in to comment.