Skip to content

Commit 9cfc9bb

Browse files
Use in:title
Issue gh-14484
1 parent 341f58d commit 9cfc9bb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/mark-duplicate-dependabot-prs.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
name: Mark Duplicate PRs
1+
name: Mark Duplicate Dependabot PRs
22

33
on:
44
pull_request:
55
types: [closed]
66

77
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-
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]'
@@ -33,7 +25,7 @@ jobs:
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

0 commit comments

Comments
 (0)