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
2
2
3
3
on :
4
4
pull_request :
5
5
types : [closed]
6
6
7
7
jobs :
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
-
16
8
check_duplicate_prs :
17
9
runs-on : ubuntu-latest
18
10
if : github.event.pull_request.merged == true && github.event.pull_request.user.login == 'dependabot[bot]'
33
25
DEPENDENCY_NAME : ${{ steps.extract.outputs.dependency_name }}
34
26
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
27
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(",")')
37
29
echo "prs=$PRS" >> $GITHUB_OUTPUT
38
30
39
31
- name : Label Duplicate PRs
You can’t perform that action at this time.
0 commit comments