Commit graph

11279 commits

Author SHA1 Message Date
Mislav Marohnić
3a0a8c4e25 Add tests for templateManager 2021-02-17 17:35:04 +01:00
Mislav Marohnić
faa6981f46
Merge pull request #2965 from cli/writeorg-oauth-scope
Recognize the `write:org` OAuth scope as satisfying `read:org`
2021-02-17 17:26:16 +01:00
Mislav Marohnić
4a49e3526c Merge remote-tracking branch 'origin' into writeorg-oauth-scope 2021-02-17 17:11:24 +01:00
Mislav Marohnić
0cd5744398 Un-export HasAPI leaky abstraction 2021-02-17 17:08:50 +01:00
Mislav Marohnić
3a224b7c2a
Merge pull request #2892 from cli/auth-with-ssh
Add SSH key generation & uploading to `gh auth login` flow
2021-02-17 17:07:05 +01:00
Mislav Marohnić
b4bf8cda8d Close pubkey file after reading 2021-02-17 17:01:14 +01:00
Mislav Marohnić
e874236ad6
Merge pull request #2980 from cli/auto-merge
PR merge improvements: auto-merge, edit commit body
2021-02-17 16:58:49 +01:00
Mislav Marohnić
87fcda5fbc Add tests for SSH login flow 2021-02-17 16:52:40 +01:00
Gowtham Munukutla
2983887458 Add files by absolute path to gist 2021-02-17 20:39:43 +05:30
Mislav Marohnić
4cd43cc8ef Merge remote-tracking branch 'origin' into auth-with-ssh 2021-02-17 15:29:36 +01:00
Mislav Marohnić
ebc5d01942 Merge remote-tracking branch 'origin' into auto-merge 2021-02-17 15:25:25 +01:00
Mislav Marohnić
203397baf9 Add tests for pr merge --auto/--disable-auto 2021-02-17 15:24:52 +01:00
Gowtham Munukutla
037343c5c2 Add existing files in the current wd to gist 2021-02-17 19:20:43 +05:30
Mislav Marohnić
ddddd95d73 Allow pr merge --body '' to prevent having the default body applied 2021-02-17 14:38:33 +01:00
Mislav Marohnić
12cf8ef65b Separately query viewerMergeBodyText for GHE compatibility
GHE versions 2.22 and older will not have this GraphQL field. Avoid the
resulting error and have the command proceeed with empty text as the
default.
2021-02-17 14:06:27 +01:00
Mislav Marohnić
2b36b09abf
Update wording for auto-merge confirmation
Co-authored-by: Amanda Pinsker <ampinsk@github.com>
2021-02-17 12:30:04 +01:00
Gowtham Munukutla
05e45e3863 Feature of adding new files to an existing Github gist 2021-02-17 11:27:57 +05:30
Nate Smith
c2c211dbed
Merge pull request #2952 from redreceipt/up-to-date
Adds Branch Up to Date Status
2021-02-16 12:50:28 -06:00
vilmibm
57140ad35e add header in correct place 2021-02-16 12:25:09 -06:00
Mislav Marohnić
3b650a8c56 Fix typo 2021-02-16 16:28:23 +01:00
Mislav Marohnić
57abe45b96 Let the server choose the commit subject for squashed merge
For single-commit PRs, the commit subject will be the subject of the
head commit and the PR number. For multi-commit PRs, the commit subject
will be the PR title and PR number. Instead of trying to replicate this
logic client-side, omit the `commitHeadline` param and let the server
apply defaults appropriately.

Reverts https://github.com/cli/cli/pull/1627
2021-02-16 16:17:37 +01:00
Mislav Marohnić
67bfedd56b Add pr merge --auto 2021-02-16 16:01:22 +01:00
Cristian Dominguez
f75bd7280f Pre-populate default merge commit message if no body was provided 2021-02-16 16:01:22 +01:00
Sam Coe
4ea8d25b85 Fix tests and polish 2021-02-16 15:59:44 +01:00
Cristian Dominguez
d57cb56945 Allow editing commit msg when squash merging a PR 2021-02-16 15:59:06 +01:00
Mislav Marohnić
0be2033d51 Recognize the write:org OAuth scope as satisfying read:org
If someone pastes a PAT with `write:org` scope, this avoids the error
complaining that the token doesn't have `read:org` permissions. On
GitHub, `write:org` implies `read:org`.
2021-02-15 17:52:41 +01:00
ulwlu
95a8f926ab
Remove unnecessary Sprint 2021-02-13 18:10:38 +09:00
ulwlu
16be90c538
Fix unnecessary Sprintf with Sprint 2021-02-13 17:20:39 +09:00
ulwlu
e461baa217
Fix prompt string when creating remote repository
If you are in git project not pushed to remote yet,
prompt says 'This will create {reponame} in current directory. Continue?',
however, it doesn't create while it only adds remote origin.

I was going to create PR to avoid creating new directory before I knew
this behavior.
This behavior is already ideal, so I changed prompt not to scare users
like I got scared.
2021-02-13 17:11:08 +09:00
Sam
4e5aa91fac
Merge pull request #2949 from cli/edit-improvements
Change behavior of slice flags for issue edit and pr edit commands
2021-02-12 15:02:26 -08:00
Sam Coe
4fdf28d8a4
Change behavior of slice flags for issue edit and pr edit commands 2021-02-12 14:42:21 -08:00
Sam
a84145eb68
Merge pull request #2940 from cli/pr-edit
Edit pull request command
2021-02-12 10:21:11 -08:00
Sam Coe
a47ee660a7
Pr edit command 2021-02-12 10:08:44 -08:00
Sam
4109af9b49
Merge pull request #2915 from cli/issue-edit
Edit issue command
2021-02-12 09:50:11 -08:00
Michael Neeley
9be9229a48 adds strict status checks 2021-02-12 08:51:47 -05:00
Mislav Marohnić
6b1e6db81b
Merge pull request #2951 from cli/api-docs
Add more examples to `api` docs
2021-02-12 12:58:48 +01:00
Cristian Dominguez
9a149d7694 Add repo list command 2021-02-11 19:44:47 -03:00
Michael Neeley
8511365afb linter 2021-02-11 16:46:16 -05:00
Michael Neeley
0d55f8648c adds merge state status 2021-02-11 16:27:23 -05:00
Mislav Marohnić
335f0117c0 Add more examples to api docs
- Clarify that fields need to be in "key=value" format
- Headers need to be in "key:value" format
- Contrast POST vs GET requests with params in examples
- Add an example of how to add HTTP headers
- Use backticks where applicable
2021-02-11 19:17:10 +01:00
Mislav Marohnić
83bb1bfd9d Port pr create to new templates implementation 2021-02-10 18:20:57 +01:00
Mislav Marohnić
3ddd93793c Port issue create to using templates API 2021-02-10 17:32:00 +01:00
Sam Coe
cd9f211826
Remove unused code 2021-02-09 09:48:58 -08:00
Mislav Marohnić
5af2dca351
Merge pull request #2929 from cli/brew-upgrade-suggestion
Suggest `brew upgrade gh` when new version detected
2021-02-09 18:39:42 +01:00
Divya Ramanathan
c7eb7382f0 implementing issue template GraphQL API call
Co-authored-by: Zach Boyle <zboyle@umich.edu>
2021-02-08 22:02:51 +01:00
Sam Coe
4ed94c2a06
Fix up flag descriptions 2021-02-08 09:59:30 -08:00
Sam Coe
68f71d82a0
Remove webmode 2021-02-08 09:17:04 -08:00
Mislav Marohnić
feb4acc2c0 Suggest brew upgrade gh when new version detected
When the update notifier is enabled and a new version was detected, show
a Homebrew upgrade notice if:
- the release was at least 24 hours ago; and
- the current `gh` binary is under the Homebrew prefix.
2021-02-08 13:57:08 +01:00
Mislav Marohnić
f43fb26acf
Merge pull request #2926 from xvqxy/verbose_build
Display output of build commands.
2021-02-06 13:31:07 +01:00
xvqxy
9920ea97f6
Display output of build commands.
This fixes #2920.

Print out output of executed command to stdout/stderr.
2021-02-06 09:49:53 +01:00