diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..9d94358 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +# Add 'documentation' label to any change to *.md files +documentation: + - changed-files: + - any-glob-to-any-file: [ '**/*.md' ] + +# Add 'github_actions' label to any change .github/ directory +github_actions: + - changed-files: + - any-glob-to-any-file: [ '.github/**' ] + + +osc: + - changed-files: + - any-glob-to-any-file: [ '**' ] \ No newline at end of file diff --git a/.github/workflows/pr_labeler.yaml b/.github/workflows/pr_labeler.yaml new file mode 100644 index 0000000..53443d6 --- /dev/null +++ b/.github/workflows/pr_labeler.yaml @@ -0,0 +1,19 @@ +name: PRs labeler + +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + pull-requests: write + +jobs: + triage: + if: ${{ !github.event.pull_request.draft }} + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + - uses: actions/labeler@v6 + with: + sync-labels: true