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

fix: Set the parent when creating a PR #105

Merged
merged 1 commit into from
May 8, 2023

Conversation

draftcode
Copy link
Contributor

@draftcode draftcode commented May 8, 2023

No description provided.

@aviator-app
Copy link
Contributor

aviator-app bot commented May 8, 2023

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.

@@ -176,6 +176,7 @@ func CreatePullRequest(
Name: defaultBranch,
Trunk: true,
}
branchMeta.Parent = parentState
Copy link
Contributor

Choose a reason for hiding this comment

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

do you know why the parentState would be empty here to begin with? Just want to make sure we understand when does this particularly happen.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The parent state is empty when the branch is not created with av, like git checkout -b topic.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can this also happen when an associated branch was deleted after merging a parent PR? I think that's what happened in my case.

@aviator-app aviator-app bot merged commit 244991f into master May 8, 2023
@aviator-app aviator-app bot deleted the set_parent_on_pr_create branch May 8, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants