Skip to content

Commit

Permalink
Add PR labeler action
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed May 25, 2024
1 parent b79ff11 commit 1f9b313
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Pull Request Labeler"

on:
pull_request:
branches:
- main

permissions:
contents: read
pull-requests: write

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
configuration-path: config/labeler.yml
sync-labels: true
16 changes: 16 additions & 0 deletions config/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ci:
- changed-files:
- any-glob-to-any-file: .github/**

documentation:
- changed-files:
- any-glob-to-any-file:
- docs/**
- CHANGELOG.md
- LICENSE.txt
- README.adoc

java:
- changed-files:
- any-glob-to-any-file:
- src/**/java/**/*.java

0 comments on commit 1f9b313

Please sign in to comment.