Skip to content

Commit

Permalink
pr: update all local branches for commit comments
Browse files Browse the repository at this point in the history
Reviewed-by: rwestberg, ihse
  • Loading branch information
edvbld committed Mar 10, 2021
1 parent 591fb2c commit 589227f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -72,7 +72,8 @@ public Collection<WorkItem> run(Path scratchPath) {
.filter(b -> !b.name().startsWith("pr/"))
.collect(Collectors.toList());
for (var branch : remoteBranches) {
localRepo.fetch(bot.repo().url(), branch.name());
localRepo.checkout(new Branch(branch.name()));
localRepo.merge(new Branch("origin/" + branch.name()), Repository.FastForward.ONLY);
}

var commitTitleToCommits = new HashMap<String, Set<Hash>>();
Expand Down

1 comment on commit 589227f

@openjdk-notifier
Copy link

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.