Skip to content

Commit

Permalink
fakejira: edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNPavel committed Jun 14, 2022
1 parent 4534311 commit 85cc039
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions prow/jira/fakejira/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ func (f *FakeClient) CreateIssueLink(link *jira.IssueLink) error {
if err != nil {
return fmt.Errorf("failed to get outward link issue: %v", err)
}
// links in an issue struct do not include the short definition of the the issue they are part of.
// This behavior is used by the external jira-lifecycle hook plugin to identify which direction a clone happened,
// so it needs to be replicated in the fake client
// when part of an issue struct, the issue link type does not include the
// short definition of the issue it is in
linkForOutward := *link
linkForOutward.OutwardIssue = nil
outward.Fields.IssueLinks = append(outward.Fields.IssueLinks, &linkForOutward)
Expand Down

0 comments on commit 85cc039

Please sign in to comment.