label-conflicting-pr.yml 703 B

123456789101112131415161718192021
  1. name: "Label conflicting PRs"
  2. on:
  3. push:
  4. pull_request_target:
  5. types: [synchronize]
  6. permissions:
  7. pull-requests: write
  8. jobs:
  9. main:
  10. if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.repository_owner == 'jenkinsci' }}
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Label conflicting PRs
  14. uses: eps1lon/actions-label-merge-conflict@0273be72a0bbd58fcd71d0d6c02c209b50d1e5e1 # v3.1.0
  15. with:
  16. dirtyLabel: "unresolved-merge-conflict"
  17. repoToken: "${{ secrets.GITHUB_TOKEN }}"
  18. commentOnDirty: "Please take a moment and address the merge conflicts of your pull request. Thanks!"
  19. continueOnMissingPermissions: true