Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

Label Conflicting Pull Requests

v1.1.0

Label Conflicting Pull Requests

activity

Label Conflicting Pull Requests

This action adds a given label to Pull Requests that have merge conflicts and removes a given label from these pull requests

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Label Conflicting Pull Requests

uses: eps1lon/actions-label-merge-conflict@v1.1.0

Learn more about this action in eps1lon/actions-label-merge-conflict

Choose a version

label merge-conflict action

This action adds a given label to Pull Requests that have merge conflicts and removes a given label from these pull requests

Inputs

dirtyLabel

Required The name of the label that should be added once a PR has merge conflicts.

removeOnDirtyLabel

Required The name of the label that should be removed once a PR has merge conflicts.

repoToken

Required Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}

Example usage

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 }}"