mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
CI: Automatically label PRs with merge conflicts
This action adds and removes the new "conflicts" label to indicate whether a pull request is in need of conflict resolution. This both automatically informs the author of the PR that this is the case, if they have notifications enabled that is, and makes for an easier evaluation of the PR queue.
This commit is contained in:
parent
e0c0668f3d
commit
9ccaa3b7eb
Notes:
github-actions[bot]
2024-12-17 12:54:28 +00:00
Author: https://github.com/gmta
Commit: 9ccaa3b7eb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2947
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 22 additions and 0 deletions
22
.github/workflows/merge-conflict-labeler.yml
vendored
Normal file
22
.github/workflows/merge-conflict-labeler.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: 'Label PRs with merge conflicts'
|
||||
on:
|
||||
# PRs typically get conflicted after a push to master.
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
# If a PR targeting master is (re)opened or updated, recheck for conflicts and update the label.
|
||||
# NOTE: This runs against the target branch, not the PR branch.
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
auto-labeler:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: mschilde/auto-label-merge-conflicts@591722e97f3c4142df3eca156ed0dcf2bcd362bd
|
||||
with:
|
||||
CONFLICT_LABEL_NAME: 'conflicts'
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
MAX_RETRIES: 3
|
||||
WAIT_MS: 15000
|
Loading…
Add table
Add a link
Reference in a new issue