Skip to content

Commit

Permalink
adding PR number to issue title for title uniqueness (#8473)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMcClatchey authored Feb 10, 2025
1 parent 96618b3 commit 09446b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dependabotClosePRIssue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
if: github.event.pull_request.user.login == 'dependabot[bot]'
env:
pr_title: ${{github.event.pull_request.title}}
pr_number: ${{github.event.pull_request.number}}
run: |
issue_title="Dependabot PR $pr_title opened"
issue_title="Dependabot PR #$pr_number $pr_title opened"
issue=$(gh issue list --json number --jq '.[].number' --label "dependencies" --label "Dependabot" --search "is:issue is:open $issue_title")
gh issue close "$issue"
2 changes: 1 addition & 1 deletion .github/workflows/dependabotCreatePRIssue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
number: ${{github.event.pull_request.number}}
url: ${{github.event.pull_request.url}}
run: |
title="Dependabot PR $title opened"
title="Dependabot PR #$number $title opened"
labels="dependencies,Dependabot"
body="Dependabot has opened PR #$number
Link: $url"
Expand Down

0 comments on commit 09446b8

Please sign in to comment.