Skip to content

Commit

Permalink
Merge pull request #590 from ferdnyc/label-merge-conflicts
Browse files Browse the repository at this point in the history
Add label-merge-conflicts Action workflow
  • Loading branch information
ferdnyc committed Nov 19, 2020
2 parents 39b4aa9 + 9d34707 commit aab6d1c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/label-merge-conflicts.yml
@@ -0,0 +1,30 @@

name: Label merge conflicts

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the develop branch
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
types: [opened, synchronize, reopened]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: eps1lon/actions-label-merge-conflict@v2.0.1
with:
# Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}
repoToken: ${{ secrets.GITHUB_TOKEN }}
# Name of the label which indicates that the branch is dirty
dirtyLabel: 'conflicts'
# Number of seconds after which the action runs again if the mergable state is unknown.
retryAfter: 60
# Number of times the action retries calculating the mergable state
retryMax: 5
# String. Comment to add when the pull request is conflicting. Supports markdown.
commentOnDirty: 'Merge conflicts have been detected on this PR, please resolve.'

0 comments on commit aab6d1c

Please sign in to comment.