Skip to content

Commit 620fde9

Browse files
Merge pull request #743 from bradmwilliams/email-spam-fix
Stop spamming Jira Issues
2 parents 8cec51f + e0f108f commit 620fde9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/jira/jira.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (c *Verifier) commentIssue(errs *[]error, issue *jiraBaseClient.Issue, mess
192192
for _, comment := range issue.Fields.Comments.Comments {
193193
// if a ticket is on the verified state but does not contain a comment from the bot, it will add one
194194
// if a manually verified ticket is already commented, we won't check the message body
195-
if (comment.Body == message || strings.EqualFold(issue.Fields.Status.Name, jira.StatusVerified)) && (comment.Author.Name == "openshift-crt-jira-release-controller" || comment.Author.EmailAddress == "brawilli+openshift-crt-jira-release-controller@redhat.com") {
195+
if (comment.Body == message || strings.EqualFold(issue.Fields.Status.Name, jira.StatusVerified)) && (comment.Author.Name == "openshift-crt-jira-release-controller" || comment.Author.EmailAddress == "brawilli+openshift-crt-jira-release-controller@redhat.com" || comment.Author.EmailAddress == "brawilli@redhat.com") {
196196
return
197197
}
198198
}

0 commit comments

Comments
 (0)