-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5153 from thompson-shaun/add-pr-labeler
Add PR labeler GHA workflow and configuration
- Loading branch information
Showing
3 changed files
with
175 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
# Add 'project' label to changes in basic project documentation and .github folder, excluding .github/workflows | ||
area/project: | ||
- all: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/** | ||
- LICENSE | ||
- AUTHORS | ||
- MAINTAINERS | ||
- PROJECT.md | ||
- README.md | ||
- .gitignore | ||
- codecov.yml | ||
- all-globs-to-all-files: "!.github/workflows/*" | ||
|
||
# Add 'ci' label to changes in the .github/workflows folder | ||
area/ci: | ||
- changed-files: | ||
- any-glob-to-any-file: ".github/workflows/**" | ||
|
||
# Add 'tests' label to changes in test files | ||
area/testing: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- tests/** | ||
- "**/*_test.go" | ||
|
||
# area:api | ||
area/api: | ||
- changed-files: | ||
- any-glob-to-any-file: "api/**" | ||
|
||
# area:storage | ||
area/storage: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "cache/**" | ||
- "snapshot/**" | ||
- all-globs-to-all-files: "!cache/remotecache/**" | ||
|
||
# area:remotecache | ||
area/remotecache: | ||
- changed-files: | ||
- any-glob-to-any-file: "cache/remotecache/**" | ||
|
||
# area:client | ||
area/client: | ||
- changed-files: | ||
- any-glob-to-any-file: "client/**" | ||
|
||
# area:llb | ||
area/llb: | ||
- changed-files: | ||
- any-glob-to-any-file: "client/llb/**" | ||
|
||
# area:buildctl | ||
area/buildctl: | ||
- changed-files: | ||
- any-glob-to-any-file: "cmd/buildctl/**" | ||
|
||
# area:buildkitd | ||
area/buildkitd: | ||
- changed-files: | ||
- any-glob-to-any-file: "cmd/buildkitd/**" | ||
|
||
# area:dependencies | ||
area/dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- go.mod | ||
- go.sum | ||
- vendor/** | ||
- tools/** | ||
|
||
# area:docs | ||
area/docs: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "docs/**" | ||
- "frontend/dockerfile/docs/**" | ||
|
||
# area:dockerfile | ||
area/dockerfile: | ||
- changed-files: | ||
- any-glob-to-any-file: "frontend/dockerfile/**" | ||
|
||
# area:dockerfile/checks | ||
area/dockerfile/checks: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "frontend/dockerfile/linter" | ||
- "frontend/dockerfile/subrequests/lint" | ||
|
||
# area:examples | ||
area/examples: | ||
- changed-files: | ||
- any-glob-to-any-file: "examples/**" | ||
|
||
# area:executor | ||
area/executor: | ||
- changed-files: | ||
- any-glob-to-any-file: "executor/**" | ||
|
||
# area:exporter | ||
area/exporter: | ||
- changed-files: | ||
- any-glob-to-any-file: "exporter/**" | ||
|
||
# area:frontend | ||
area/frontend: | ||
- changed-files: | ||
- any-glob-to-any-file: "frontend/**" | ||
|
||
# area:hack | ||
area/hack: | ||
- changed-files: | ||
- any-glob-to-any-file: "hack/**" | ||
|
||
# area:session | ||
area/session: | ||
- changed-files: | ||
- any-glob-to-any-file: "session/**" | ||
|
||
# area:solver | ||
area/solver: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "control/**" | ||
- "solver/**" | ||
|
||
# area:source | ||
area/source: | ||
- changed-files: | ||
- any-glob-to-any-file: "source/**" | ||
|
||
# area:sourcepolicy | ||
area/sourcepolicy: | ||
- changed-files: | ||
- any-glob-to-any-file: "sourcepolicy/**" | ||
|
||
# area:util | ||
area/util: | ||
- changed-files: | ||
- any-glob-to-any-file: "util/**" | ||
|
||
# area:worker | ||
area/worker: | ||
- changed-files: | ||
- any-glob-to-any-file: "worker/**" | ||
|
||
# area:windows | ||
area/windows: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "**/*_windows.go" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: labeler | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Run | ||
uses: actions/labeler@v5 |