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

Update av stack submit to open PRs in browser after entire stack is submitted #268

Merged
merged 2 commits into from
May 7, 2024

Conversation

oleg-codaio
Copy link
Contributor

@oleg-codaio oleg-codaio commented May 2, 2024

When run with a stack of unpushed branches, av stack submit ends up opening a bunch of new browser windows for each PR one by one, which is a bit disruptive. Since we're pushing a single stack, only open the last-created PR once completed. Open all the PRs at the end once created instead.

Copy link
Contributor

aviator-app bot commented May 2, 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 May 2, 2024

FlexReview Summary

There is not enough data in the repository for FlexReview to determine suggested reviewers.

Detailed Breakdown Author’s expertise score for the modified files:
  • cmd/av/stack_submit.go (0.00)
  • internal/actions/pr.go (0.00)

See full breakdown of the reviewers on the Aviator webapp.

},
)
if err != nil {
return err
}
if result.Created {
lastCreatedPullRequest = result.Branch.PullRequest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

An alternative behavior would be to wait until all the PRs are created first, and then bulk-open all new windows at once.

With stack visualizations in #264, IMO that's unnecessary since the last created PR will have links to all the other stacks.

However, if it's off perhaps it would still make sense to open a bunch of new windows, or alternatively just open the repo to the PR list, e.g., https://github.com/aviator-co/av/pulls.

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@draftcode could you let me know what you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like if we open PR pages (which is default), then it's better to open all (i.e. changing this to bulk open). I usually do not use av stack submit (usually use `av pr create), but I want to check the newly created PRs for the last check.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or make this configurable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, for now I updated to just bulk open them all at once at the end. That feels less disruptive than opening one by one and requiring you to keep switching between browser and terminal.

@oleg-codaio oleg-codaio force-pushed the osv-last-stack-only branch from 6834edc to 74837be Compare May 6, 2024 19:47
@oleg-codaio
Copy link
Contributor Author

/aviator refresh

Aviator status snapshot

This pull request is currently open (not queued).

How to merge

To merge this PR, comment /aviator merge or add the mergequeue label.


You can also comment /aviator sync to update this pull request with the latest commits from the base branch.

2 similar comments
Copy link
Contributor

aviator-app bot commented May 6, 2024

Aviator status snapshot

This pull request is currently open (not queued).

How to merge

To merge this PR, comment /aviator merge or add the mergequeue label.


You can also comment /aviator sync to update this pull request with the latest commits from the base branch.

Copy link

aviator-dt bot commented May 6, 2024

Aviator status snapshot

This pull request is currently open (not queued).

How to merge

To merge this PR, comment /aviator merge or add the mergequeue label.


You can also comment /aviator sync to update this pull request with the latest commits from the base branch.

@oleg-codaio oleg-codaio changed the title Update av stack submit to only open last PR in browser Update av stack submit to open PRs in browser after entire stack is submitted May 6, 2024
@aviator-app aviator-app bot merged commit dd825e5 into aviator-co:master May 7, 2024
4 checks passed
@oleg-codaio oleg-codaio deleted the osv-last-stack-only branch May 7, 2024 19:37
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