-
Notifications
You must be signed in to change notification settings - Fork 480
added the new workflow that automatically puts the labels in PR #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
4874f75
226a087
f5a5b4f
d4ba2ee
ebd33c7
18e6429
6c935bb
3193fce
e772530
f06eb4f
8330c78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Configuration for automatic PR labeling based on file changes | ||
# https://github.com/actions/labeler | ||
|
||
# Core areas | ||
"area: cli": | ||
- Sources/CLI/**/* | ||
- Sources/ContainerCommands/**/* | ||
|
||
"area: build": | ||
- Sources/ContainerBuild/**/* | ||
- Makefile | ||
- Package.swift | ||
- Package.resolved | ||
- Protobuf.Makefile | ||
|
||
"area: client": | ||
- Sources/ContainerClient/**/* | ||
|
||
"area: networking": | ||
- Sources/ContainerNetworkService/**/* | ||
- Sources/DNSServer/**/* | ||
- Sources/SocketForwarder/**/* | ||
- config/container-network-vmnet-config.json | ||
|
||
"area: services": | ||
- Sources/Services/**/* | ||
- Sources/ContainerAPIService/**/* | ||
- Sources/ContainerImagesService/**/* | ||
- Sources/ContainerSandboxService/**/* | ||
|
||
"area: runtime": | ||
- Sources/Helpers/RuntimeLinux/**/* | ||
- config/container-runtime-linux-config.json | ||
|
||
"area: plugin": | ||
- Sources/ContainerPlugin/**/* | ||
|
||
"area: xpc": | ||
- Sources/ContainerXPC/**/* | ||
|
||
"area: logging": | ||
- Sources/ContainerLog/**/* | ||
|
||
"area: persistence": | ||
- Sources/ContainerPersistence/**/* | ||
|
||
"area: terminal": | ||
- Sources/TerminalProgress/**/* | ||
|
||
"area: helpers": | ||
- Sources/Helpers/**/* | ||
|
||
# Testing | ||
"testing": | ||
- Tests/**/* | ||
- "**/*Test*.swift" | ||
- "**/*Tests.swift" | ||
|
||
# Documentation | ||
"documentation": | ||
- docs/**/* | ||
- "**/*.md" | ||
- scripts/make-docs.sh | ||
|
||
# Configuration | ||
"configuration": | ||
- config/**/* | ||
- "**/*.json" | ||
- "**/*.toml" | ||
- signing/**/* | ||
|
||
|
||
# Scripts and tooling | ||
"tooling": | ||
- scripts/**/* | ||
- licenserc.toml | ||
- Makefile | ||
- Protobuf.Makefile | ||
|
||
|
||
# GitHub specific | ||
"github": | ||
- .github/**/* | ||
|
||
# Dependencies | ||
"dependencies": | ||
- Package.swift | ||
- Package.resolved | ||
|
||
|
||
# C/C++ code | ||
"c/c++": | ||
- Sources/CVersion/**/* | ||
- "**/*.c" | ||
- "**/*.h" | ||
|
||
|
||
# Swift protocol buffers | ||
"protobuf": | ||
- "**/*.proto" | ||
- "**/*.pb.swift" | ||
- "**/*.grpc.swift" | ||
- Protobuf.Makefile | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Pull Request Labeler" | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
label: | ||
name: Label Pull Request | ||
if: github.repository == 'apple/container' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
labels-applied: ${{ steps.labeler.outputs.labels-applied }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Apply labels based on file changes | ||
id: labeler | ||
uses: actions/labeler@v5 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
configuration-path: .github/labeler.yml | ||
sync-labels: true | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this area is accidentally a combination of container image builder components, project building components, and project dependencies. A large majority of PRs will likely either modify the makefiles or the Package.* files, so I think we can exclude those files from a label category to avoid extra noise.
We should change this to:
area:builder
for code related to image building. That would include- Sources/ContainerBuild//*
- Sources/NativeBuilder//*