Skip to content
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

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

Konboi
Copy link
Contributor

@Konboi Konboi commented Jun 26, 2024

to detect reason and explain it for #305

(Does this change work as you intended?)

Copy link
Contributor

aviator-app bot commented Jun 26, 2024

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

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.

Copy link
Contributor

aviator-app bot commented Jun 26, 2024

FlexReview Summary

Based on the code complexity and the author's expertise score, these are the suggested reviewers:

  • @draftcode (current review load: 2)

See the list of alternate reviewers in the detailed breakdown below.

Detailed Breakdown Author’s expertise score for the modified files:
  • internal/actions/pr.go (0.00)
Files Reviewers
internal/actions/pr.go @draftcode (score: 1.00, current review load: 2),
@jainankit (score: 0.53, current review load: 6)

† Indicates that the file doesn't need an expert review. (?)

See full breakdown of the reviewers on the Aviator webapp.

@aviator-app aviator-app bot requested a review from draftcode June 26, 2024 08:31
@Konboi Konboi force-pushed the issue-305 branch 2 times, most recently from e5e754b to 79f29ea Compare June 26, 2024 08:32
@@ -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)
Copy link
Contributor

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."

Copy link
Contributor Author

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
@aviator-app aviator-app bot merged commit 86ab3e9 into aviator-co:master Jun 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants