Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi committed Oct 2, 2024
1 parent f145524 commit e4f8fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/jira-validate-reference/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ runs:
})
for (let comment of comments) {
if (comment.body === noJiraIssueBody) {
if (comment.body === noJiraIssueBody && user.type === 'Bot') {
console.log('Found comment:', JSON.stringify(comment, null, 2));
await github.rest.issues.deleteComment({
owner,
Expand All @@ -113,7 +113,7 @@ runs:
issue_number: ${{ github.event.pull_request.number }},
body: noJiraIssueBody,
});
throw new Error(body);
throw new Error(noJiraIssueBody);
}
return jiraIssueRef;
Expand Down

0 comments on commit e4f8fa1

Please sign in to comment.