New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
340: Infer master for repos in the same org for merge style PRs #554
Conversation
|
Webrevs
|
.anyMatch(branch -> branch.equals(branchMatcher.group(1))); | ||
if (!isValidBranch) { | ||
// Assume the name refers to a sibling repository | ||
var repoName = Path.of(pr.repository().name()).resolveSibling(branchMatcher.group(1)).toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps check that the repo actually exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be checked a bit later (around line 193).
@@ -127,6 +127,17 @@ private MergeSource(String repositoryName, String branchName) { | |||
if (!branchMatcher.matches()) { | |||
return Optional.empty(); | |||
} | |||
|
|||
// Verify that the branch exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Verify that the branch exists | |
// Check if name refers to branch or repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the check is only done partially here.. :)
@rwestberg This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there has been 1 commit pushed to the
|
/integrate |
@rwestberg The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit 32bba61. |
Mailing list message from Robin Westberg on skara-dev: Changeset: 32bba61 340: Infer master for repos in the same org for merge style PRs Reviewed-by: ehelin ! bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java |
Hi all,
Please review this change that allows a shorter form when merging the master branch from a repo in the same org.
Best regards,
Robin
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/skara pull/554/head:pull/554
$ git checkout pull/554