Skip to content
Permalink
Browse files
pr: use per-user branch for backports
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Apr 19, 2021
1 parent 63a0d59 commit 4e418f052d5b57962d997afa23862e34c7519620
Showing with 1 addition and 1 deletion.
  1. +1 −1 bots/pr/src/main/java/org/openjdk/skara/bots/pr/BackportCommand.java
@@ -106,7 +106,7 @@ public void handle(PullRequestBot bot, HostedCommit commit, CensusInstance censu
var hash = commit.hash();
var fork = bot.writeableForkOf(targetRepo);
Hash backportHash = null;
var backportBranchName = "backport-" + hash.abbreviate();
var backportBranchName = username + "-backport-" + hash.abbreviate();
var hostedBackportBranch = fork.branches().stream().filter(b -> b.name().equals(backportBranchName)).findAny();
if (hostedBackportBranch.isEmpty()) {
var localRepoDir = scratchPath.resolve("backport-command")

1 comment on commit 4e418f0

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 4e418f0 Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.