cli/pkg/cmd
Mislav Marohnić 1260023547 repo sync: Use the new merge-upstream API if available
This helps avoid the errors when a new commit from upstream is not yet
available in the fork, resulting in a HTTP 404 when trying to update the
ref in the fork.

If the merge-upstream API is unavailable (404) or errors out (409/422),
the functionality falls back to the previous functionality of manually
updating refs. This ensures that `--force` still has effect.
2021-12-21 16:44:27 +01:00
..
actions Mark actions command as non-runnable 2021-11-03 16:58:51 +01:00
alias Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
api api: handle HTTP 409 error message from the server 2021-12-06 19:54:54 +01:00
auth Add auth setup-git for setting up gh as a git credential helper (#4246) 2021-12-02 16:38:34 +00:00
browse Fix browse last commit when using the repo override flag (#4845) 2021-12-13 15:00:22 +01:00
codespace gh cs cp --help: fix typo 2021-12-02 17:09:20 -05:00
completion Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
config linter complains again 2021-11-16 10:43:25 -08:00
extension extension upgrade: do not consider up-to-date to be a failure (#4857) 2021-12-16 12:59:22 +01:00
factory Avoid resolving executable() until requested at runtime 2021-09-24 14:42:41 +02:00
gist Add --generate-notes flag to gh release create command. (#4467) 2021-12-08 15:20:59 +04:00
gpg-key Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
issue Simplify GraphQL mutations whose response we are not interested in 2021-12-08 13:35:19 +01:00
pr Avoid showing non-open PRs on the default branch (#4285) 2021-12-20 18:46:12 +00:00
release Add interactive tag selector to create release (#4525) 2021-12-08 16:20:15 +04:00
repo repo sync: Use the new merge-upstream API if available 2021-12-21 16:44:27 +01:00
root Inherit API endpoint configuration from the Codespaces environment (#4723) 2021-11-22 12:40:01 +01:00
run Add --json export flag for workflow runs (#3869) 2021-12-17 15:55:45 +00:00
secret Improve setting multiple secrets 2021-12-20 23:35:31 +01:00
ssh-key Don't swallow duplicate key error (#4807) 2021-11-25 13:22:42 +01:00
version Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
workflow pr checks: count "cancelled" jobs as failing instead of neutral (#4850) 2021-12-16 12:01:53 +01:00