Skip to content

Commit 61ef790

Browse files
committed
[GHA] Add "Pull Request Labeler" workflow
This workflow uses the [labeler](https://github.com/marketplace/actions/labeler) action to automatically add relevant labels to pull requests in order to make it easier to filter pull requests based on the files they make changes to.
1 parent 85b7559 commit 61ef790

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.github/labeler.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Config file for .github/workflows/labeler.yml to automatically add labels to
2+
# pull requests based on the globs below. For documentation see:
3+
# https://github.com/marketplace/actions/labeler
4+
---
5+
ci-cd:
6+
- changed-files:
7+
- .github/**
8+
9+
specification:
10+
- changed-files:
11+
- scripts/core/**
12+
13+
experimental:
14+
- changed-files:
15+
- scripts/core/EXP*.rst
16+
- scripts/core/exp*.yml
17+
18+
common:
19+
- changed-files:
20+
- source/common/**
21+
22+
loader:
23+
- changed-files:
24+
- source/loader/**
25+
26+
opencl:
27+
- changed-files:
28+
- source/adapter/opencl/**
29+
30+
level-zero:
31+
- changed-files:
32+
- source/adapters/level_zero/**
33+
34+
cuda:
35+
- changed-files:
36+
- source/adapters/cuda/**
37+
38+
hip:
39+
- changed-files:
40+
- source/adapters/hip/**
41+
42+
native-cpu:
43+
- changed-files:
44+
- source/adapters/native_cpu/**
45+
46+
conformance:
47+
- changed-files:
48+
- test/conformance/**

.github/workflows/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Automatically add labels to pull requests based on globs in the
2+
# .github/labeler.yml config file. For documentation see:
3+
# https://github.com/marketplace/actions/labeler
4+
---
5+
name: Pull Request Labeler
6+
7+
on: [ pull_request_target ]
8+
9+
jobs:
10+
labeler:
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)