-
Notifications
You must be signed in to change notification settings - Fork 23
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
Check a parent branch merge commit exists or not #353
Conversation
Current Aviator status
This PR was merged using Aviator.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
FlexReview SummaryBased on the code complexity and the author's expertise score, these are the suggested reviewers:
See the list of alternate reviewers in the detailed breakdown below. Detailed BreakdownAuthor’s expertise score for the modified files:
† Indicates that the file doesn't need an expert review. (?) See full breakdown of the reviewers on the Aviator webapp. |
e5e754b
to
79f29ea
Compare
internal/actions/pr.go
Outdated
@@ -265,6 +265,11 @@ func CreatePullRequest( | |||
return nil, errors.Errorf("no commits between %q and %q", prCompareRef, opts.BranchName) | |||
} | |||
|
|||
// Check if a parent branch has already been merged or not | |||
if parentMeta.MergeCommit != "" { | |||
return nil, errors.Errorf("failed to create a pull request. The parent branch %q has already been merged", parentMeta.Name) |
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.
Can you mention that "Please run av stack sync to rebase the branch first."
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.
updated
to detect reason and explain it
to detect reason and explain it for #305
(Does this change work as you intended?)