Skip to content

Commit

Permalink
Merge pull request #98 from AlexNPavel/extra-backport-logging
Browse files Browse the repository at this point in the history
server: don't backport to parent branch
  • Loading branch information
openshift-merge-bot[bot] authored Jul 8, 2024
2 parents 1a02549 + cd70513 commit db7b7ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmd/jira-lifecycle-plugin/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,9 @@ func handleBackport(e event, gc githubClient, jc jiraclient.Client, repoOptions
sort.Strings(existingBranches)
existingBranchesSet := sets.New(existingBranches...)
for _, branch := range existingBranches {
cherrypickBranches += fmt.Sprintf("\n/cherrypick %s", branch)
if branch != e.baseRef {
cherrypickBranches += fmt.Sprintf("\n/cherrypick %s", branch)
}
if _, ok := repoOptions[branch]; !ok {
continue
}
Expand Down
1 change: 0 additions & 1 deletion cmd/jira-lifecycle-plugin/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,6 @@ Instructions for interacting with me using PR comments are available [here](http
/cherrypick v2
/cherrypick v3
/cherrypick v4
/cherrypick v5
<details>
Expand Down

0 comments on commit db7b7ad

Please sign in to comment.