cli/pkg/cmd/pr/create
Frederick Zhang 0179381efd
Find PRs using @{push}
When using a push.default = current central workflow [1], we should use
@{push} instead to locate the remote branch.

In fact, @{push} covers most cases in push.default = upstream too. The
branch.<name>.merge is probably only needed when using RemoteURL and
different remote / local branch names.

[1] https://github.com/tpope/vim-fugitive/issues/1172#issuecomment-522301607
2025-01-07 10:18:01 +11:00
..
fixtures/repoWithNonLegacyPRTemplates/.github/PULL_REQUEST_TEMPLATE Fix failing tests for Windows (due to line-ending issues) 2020-09-02 10:03:56 +05:30
create.go Panic mustParseTrackingRef if format is incorrect 2025-01-06 10:33:28 -06:00
create_test.go Find PRs using @{push} 2025-01-07 10:18:01 +11:00
regexp_writer.go Refactor regexp writer 2020-11-03 09:59:40 +03:00
regexp_writer_test.go spelling: beginning 2020-11-21 21:43:46 -05:00