You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Label Conflicting Pull Requests
v1.1.0
This action adds a given label to Pull Requests that have merge conflicts and removes a given label from these pull requests
Required The name of the label that should be added once a PR has merge conflicts.
Required The name of the label that should be removed once a PR has merge conflicts.
Required Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}
name: "Maintenance"
on:
# So that PRs touching the same files as the push are updated
push:
# So that the `dirtyLabel` is removed if conflicts are resolved
pull_request:
types: [synchronize]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: check if prs are dirty
uses: eps1lon/actions-label-merge-conflict@releases/1.x
with:
dirtyLabel: "PR: needs rebase"
removeOnDirtyLabel: "PR: ready to ship"
repoToken: "${{ secrets.GITHUB_TOKEN }}"