Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Configuration for automatic PR labeling based on file changes
# https://github.com/actions/labeler

# CLI - Command Line Interface
"area: cli":
- changed-files:
- any-glob-to-any-file:
- 'Sources/CLI/**/*'
- 'Sources/ContainerCommands/**/*'

32 changes: 32 additions & 0 deletions .github/workflows/labeler.yml
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