labeler.yml
1name: Issue Labeler
2on:
3 issues:
4 types: [opened, edited]
5
6jobs:
7 label_issues:
8 runs-on: ubuntu-latest
9 permissions:
10 issues: write
11 steps:
12 - name: Label issues
13 # Update the action to the latest version
14 uses: github/issue-labeler@v5
15 with:
16 repo-token: "${{ secrets.GITHUB_TOKEN }}"
17 # Correct the path to your configuration file
18 configuration-path: .github/labeler-config.yml
19 not-before: "2023-01-01T00:00:00Z" # Optional: only run on new issues