name: Auto Label Issues on: issues: types: [opened, edited, reopened] pull_request: types: [opened, edited, reopened, synchronize] jobs: auto-label: runs-on: ubuntu-latest permissions: issues: write pull-requests: write contents: read steps: - name: Checkout repository uses: actions/checkout@v3 - name: Label issues and PRs by content uses: github/issue-labeler@v3.4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/issue-labeler.yml enable-versioned-regex: 0 include-title: 1 - name: Label issues and PRs by file paths uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/file-labeler.yml sync-labels: true