Skip to content

Commit

Permalink
Fix similarIssues.yml to not fail when no similar issues found (#16542)
Browse files Browse the repository at this point in the history
Added an if statement to similarIssues.yml so that the logic can be
updated to not show as 'failure' when no similar issue is found.

Related: craigloewen-msft/GitGudSimilarIssues#33
  • Loading branch information
craigloewen-msft authored Jan 8, 2024
1 parent b02316b commit 375d00d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/similarIssues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
issues: write
if: needs.getSimilarIssues.outputs.message != ''
steps:
- name: Add comment
run: gh issue comment "$NUMBER" --repo "$REPO" --body "$BODY"
Expand Down

0 comments on commit 375d00d

Please sign in to comment.