diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000..d1ea9d8 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,23 @@ +name: "PR Path Labeler" + +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + if: > + ${{ !startsWith(github.event.pull_request.title, 'chore(deps):') + && !contains(fromJSON('["chore/sync-gomod2nix","chore/update-flake-lock","update-screenshots","update-demo-gif"]'), github.head_ref) }} + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v6 + with: + repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} + configuration-path: .github/pr-paths.yml + sync-labels: false + dot: true