Explorar o código

CI: Post comment when PR has a merge conflict

Switch out the action with another one that actually supports posting
comments :^)
Jelle Raaijmakers hai 7 meses
pai
achega
03aafda788
Modificáronse 1 ficheiros con 8 adicións e 5 borrados
  1. 8 5
      .github/workflows/merge-conflict-labeler.yml

+ 8 - 5
.github/workflows/merge-conflict-labeler.yml

@@ -17,9 +17,12 @@ jobs:
       contents: read
       pull-requests: write
     steps:
-      - uses: mschilde/auto-label-merge-conflicts@591722e97f3c4142df3eca156ed0dcf2bcd362bd
+      - uses: eps1lon/actions-label-merge-conflict@v3
         with:
-          CONFLICT_LABEL_NAME: 'conflicts'
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          MAX_RETRIES: 3
-          WAIT_MS: 15000
+          commentOnDirty: >
+            Your pull request has conflicts that need to be resolved before it can be reviewed and merged. Make sure to
+            [rebase](https://www.youtube.com/watch?v=ElRzTuYln0M) your branch on top of the latest `master`.
+          dirtyLabel: 'conflicts'
+          repoToken: ${{ secrets.GITHUB_TOKEN }}
+          retryAfter: 15
+          retryMax: 3