File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1- name : Mark Duplicate PRs
1+ name : Mark Duplicate Dependabot PRs
22
33on :
44 pull_request :
55 types : [closed]
66
77jobs :
8- debug :
9- runs-on : ubuntu-latest
10- steps :
11- - name : Debug Event Payload
12- run : |
13- echo "Merged: ${{ github.event.pull_request.merged }}"
14- echo "User Login: ${{ github.event.pull_request.user.login }}"
15-
168 check_duplicate_prs :
179 runs-on : ubuntu-latest
1810 if : github.event.pull_request.merged == true && github.event.pull_request.user.login == 'dependabot[bot]'
3325 DEPENDENCY_NAME : ${{ steps.extract.outputs.dependency_name }}
3426 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3527 run : |
36- PRS=$(gh pr list --search " milestone:${{ github.event.pull_request.milestone.title }} is:merged $DEPENDENCY_NAME" --json number --jq 'map(.number) | join(",")')
28+ PRS=$(gh pr list --search ' milestone:${{ github.event.pull_request.milestone.title }} is:merged in:title " $DEPENDENCY_NAME"' --json number --jq 'map(.number) | join(",")')
3729 echo "prs=$PRS" >> $GITHUB_OUTPUT
3830
3931 - name : Label Duplicate PRs
You can’t perform that action at this time.
0 commit comments