Skip to content

Commit 26f749e

Browse files
introduce PR labeler GHA workflow and configuration
Signed-off-by: Shaun Thompson <[email protected]>
1 parent e8c0115 commit 26f749e

File tree

3 files changed

+175
-1
lines changed

3 files changed

+175
-1
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ updates:
1111
# trigger a new version: https://github.com/docker/buildx/pull/2222#issuecomment-1919092153
1212
- dependency-name: "docker/docs"
1313
labels:
14-
- "dependencies"
14+
- "area/dependencies"
1515
- "bot"

.github/labeler.yml

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Add 'project' label to changes in basic project documentation and .github folder, excluding .github/workflows
2+
area/project:
3+
- all:
4+
- changed-files:
5+
- any-glob-to-any-file:
6+
- .github/**
7+
- LICENSE
8+
- AUTHORS
9+
- MAINTAINERS
10+
- PROJECT.md
11+
- README.md
12+
- .gitignore
13+
- codecov.yml
14+
- all-globs-to-all-files: "!.github/workflows/*"
15+
16+
# Add 'ci' label to changes in the .github/workflows folder
17+
area/ci:
18+
- changed-files:
19+
- any-glob-to-any-file: ".github/workflows/**"
20+
21+
# Add 'tests' label to changes in test files
22+
area/testing:
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- tests/**
26+
- "**/*_test.go"
27+
28+
# area:api
29+
area/api:
30+
- changed-files:
31+
- any-glob-to-any-file: "api/**"
32+
33+
# area:storage
34+
area/storage:
35+
- changed-files:
36+
- any-glob-to-any-file:
37+
- "cache/**"
38+
- "snapshot/**"
39+
- all-globs-to-all-files: "!cache/remotecache/**"
40+
41+
# area:remotecache
42+
area/remotecache:
43+
- changed-files:
44+
- any-glob-to-any-file: "cache/remotecache/**"
45+
46+
# area:client
47+
area/client:
48+
- changed-files:
49+
- any-glob-to-any-file: "client/**"
50+
51+
# area:llb
52+
area/llb:
53+
- changed-files:
54+
- any-glob-to-any-file: "client/llb/**"
55+
56+
# area:buildctl
57+
area/buildctl:
58+
- changed-files:
59+
- any-glob-to-any-file: "cmd/buildctl/**"
60+
61+
# area:buildkitd
62+
area/buildkitd:
63+
- changed-files:
64+
- any-glob-to-any-file: "cmd/buildkitd/**"
65+
66+
# area:dependencies
67+
area/dependencies:
68+
- changed-files:
69+
- any-glob-to-any-file:
70+
- go.mod
71+
- go.sum
72+
- vendor/**
73+
- tools/**
74+
75+
# area:docs
76+
area/docs:
77+
- changed-files:
78+
- any-glob-to-any-file:
79+
- "docs/**"
80+
- "frontend/dockerfile/docs/**"
81+
82+
# area:dockerfile
83+
area/dockerfile:
84+
- changed-files:
85+
- any-glob-to-any-file: "frontend/dockerfile/**"
86+
87+
# area:dockerfile/checks
88+
area/dockerfile/checks:
89+
- changed-files:
90+
- any-glob-to-any-file:
91+
- "frontend/dockerfile/linter"
92+
- "frontend/dockerfile/subrequests/lint"
93+
94+
# area:examples
95+
area/examples:
96+
- changed-files:
97+
- any-glob-to-any-file: "examples/**"
98+
99+
# area:executor
100+
area/executor:
101+
- changed-files:
102+
- any-glob-to-any-file: "executor/**"
103+
104+
# area:exporter
105+
area/exporter:
106+
- changed-files:
107+
- any-glob-to-any-file: "exporter/**"
108+
109+
# area:frontend
110+
area/frontend:
111+
- changed-files:
112+
- any-glob-to-any-file: "frontend/**"
113+
114+
# area:hack
115+
area/hack:
116+
- changed-files:
117+
- any-glob-to-any-file: "hack/**"
118+
119+
# area:session
120+
area/session:
121+
- changed-files:
122+
- any-glob-to-any-file: "session/**"
123+
124+
# area:solver
125+
area/solver:
126+
- changed-files:
127+
- any-glob-to-any-file:
128+
- "control/**"
129+
- "solver/**"
130+
131+
# area:source
132+
area/source:
133+
- changed-files:
134+
- any-glob-to-any-file: "source/**"
135+
136+
# area:sourcepolicy
137+
area/sourcepolicy:
138+
- changed-files:
139+
- any-glob-to-any-file: "sourcepolicy/**"
140+
141+
# area:util
142+
area/util:
143+
- changed-files:
144+
- any-glob-to-any-file: "util/**"
145+
146+
# area:worker
147+
area/worker:
148+
- changed-files:
149+
- any-glob-to-any-file: "worker/**"
150+
151+
# area:windows
152+
area/windows:
153+
- changed-files:
154+
- any-glob-to-any-file:
155+
- "**/*_windows.go"

.github/workflows/labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: labeler
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
pull_request_target:
9+
10+
jobs:
11+
labeler:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
-
18+
name: Run
19+
uses: actions/labeler@v5

0 commit comments

Comments
 (0)