Skip to content

Fix pr create when branch was already pushed to a non-base remote - #1926

Merged
mislav merged 4 commits into
trunkfrom
pr-create-branch-pushed-fix
Sep 28, 2020
Merged

mislav merged 4 commits into
trunkfrom
pr-create-branch-pushed-fix

Conversation

@mislav

@mislav mislav commented Sep 23, 2020 •

Copy link
Copy Markdown
Contributor

Bonus: also proposes a new command stubber for tests, one that matches commands by their invocation instead of sequentially and also asserts that all stubs have matched at the end of the test.

Fixes #1820, fixes #1762, fixes #1869, fixes #2001

Our previous command stub mechanism matches stubs sequentially, which leads to brittle tests when the exec calls get reordered or removed in the implementation.

@samcoe samcoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the new stub approach. Seems more flexible and robust than the previous version.

@DanTup

DanTup commented Nov 28, 2020

Copy link
Copy Markdown

This PR says it fixes #2001, though I believe I'm still seeing that behaviour in the 1.3.0 release from a few days ago (as are others). If I run gh pr create --web it opens "github.com/Org/Repo/compare/master...master" when my changes are in DanTup:master, not the upstream.

@DanTup

DanTup commented Nov 28, 2020

Copy link
Copy Markdown

Oh, FWIW - seems like this only affects --web. If I drop that, it does create the PR correctly!

@mislav

mislav commented Dec 1, 2020

Copy link
Copy Markdown
Contributor Author

@DanTup Thanks for the report! We're fixing this already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants