Skip to content

Commit

Permalink
[CI] Add automatic labeler bot for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
aobolensk committed Jan 5, 2025
1 parent d25e0b7 commit 64dce42
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'task:mpi':
- "tasks/mpi"
'task:omp':
- "tasks/omp"
'task:seq':
- "tasks/seq"
'task:stl':
- "tasks/stl"
'task:tbb':
- "tasks/tbb"
ci:
- ".github"
- "appveyor.yml"
19 changes: 19 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Label PRs"

on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
auto-label:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Apply labels based on changed files
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/labeler.yml"

0 comments on commit 64dce42

Please sign in to comment.