Skip to content

Commit

Permalink
Merge pull request #5153 from thompson-shaun/add-pr-labeler
Browse files Browse the repository at this point in the history
Add PR labeler GHA workflow and configuration
  • Loading branch information
crazy-max authored Jul 25, 2024
2 parents db3ab54 + 26f749e commit 3d1dc77
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ updates:
# trigger a new version: https://github.com/docker/buildx/pull/2222#issuecomment-1919092153
- dependency-name: "docker/docs"
labels:
- "dependencies"
- "area/dependencies"
- "bot"
155 changes: 155 additions & 0 deletions .github/labeler.yml
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"
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: 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

0 comments on commit 3d1dc77

Please sign in to comment.