Skip to content

Commit 6352163

Browse files
authored
ci: add workflow to label PRs needing rebase (#460)
1 parent 12a0033 commit 6352163

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/rebase-needed.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PR Needs Rebase
2+
3+
on:
4+
workflow_dispatch: {}
5+
schedule:
6+
- cron: '0 * * * *'
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
label-rebase-needed:
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'coderamp-labs/gitingest'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
steps:
21+
- name: Check for merge conflicts
22+
uses: eps1lon/actions-label-merge-conflict@v3
23+
with:
24+
dirtyLabel: 'rebase needed :construction:'
25+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
26+
commentOnClean: This pull request has resolved merge conflicts and is ready for review.
27+
commentOnDirty: This pull request has merge conflicts that must be resolved before it can be merged.
28+
retryMax: 30
29+
continueOnMissingPermissions: false

0 commit comments

Comments
 (0)