Corey Johnson
23c072b39d
Add api call
2020-04-29 14:14:50 -07:00
Corey Johnson
a9f34069f1
Add "issues disabled" test
2020-04-29 13:58:47 -07:00
Corey Johnson
7df1b992db
Add "already open" test
2020-04-29 13:57:53 -07:00
Corey Johnson
abf6d59ee6
Green boi
2020-04-29 13:56:00 -07:00
Corey Johnson
f7162d7591
Implement issue reopen
2020-04-29 12:29:41 -07:00
Corey Johnson
49e5ef757f
Fix test
2020-04-29 12:29:32 -07:00
Corey Johnson
b0eba939e6
Add test
2020-04-29 12:21:44 -07:00
vilmibm
15a6225f05
totally inelegant approach to hopefully stopping flakey tests
2020-04-29 14:17:16 -05:00
Corey Johnson
28b35aa333
Merge pull request #843 from cli/when-god-closes-an-issue-he-opens-a-pull-request
...
Add `gh issue close <urlOrNumber>`
2020-04-29 11:54:48 -07:00
Corey Johnson
c78c30b32f
Add already closed test
2020-04-29 11:33:16 -07:00
Corey Johnson
83ec49582b
get rid of fixture
2020-04-29 11:31:40 -07:00
Toshiya Doi
d2d0b47ecc
Merge branch 'master' into reviewers-in-pr-view
2020-04-30 00:31:04 +09:00
Nate Smith
d908320050
Merge pull request #786 from cli/oauth-read-org
...
Ask for `read:org` OAuth scope, warn for outdated tokens
2020-04-28 20:23:44 -05:00
Nate Smith
fb7b5446d1
Update command/root.go
...
Co-Authored-By: Corey Johnson <probablycorey@gmail.com>
2020-04-28 20:19:52 -05:00
Nate Smith
ef5932f6cb
Merge pull request #821 from cli/basic-client-auth
...
Fix gh updater mechanism for unauthenticated users
2020-04-28 20:15:17 -05:00
Nate Smith
0e623ec652
Merge pull request #836 from rista404/project-state-empty-818
...
Show "Awaiting triage" for empty project state
2020-04-28 20:04:42 -05:00
Corey Johnson
1b37681a6f
Fix test
2020-04-28 12:57:24 -07:00
Corey Johnson
ab715638a4
Case changes
2020-04-28 12:51:06 -07:00
Corey Johnson
426c1e3460
Make the checkmark red
2020-04-28 12:50:39 -07:00
Corey Johnson
69b58b95a3
Fix linter errors
2020-04-28 12:25:25 -07:00
Corey Johnson
99940fa062
Update test
2020-04-28 12:15:37 -07:00
Corey Johnson
660cce7790
Take a URL
2020-04-28 12:15:33 -07:00
Corey Johnson
f22f584e8d
Handle closed issues
2020-04-28 11:53:25 -07:00
Corey Johnson
bf94a31619
not on issues disabled
...
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
2020-04-28 10:05:56 -07:00
Corey Johnson
7ba6615919
Close test now works
...
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
2020-04-28 09:51:28 -07:00
Corey Johnson
ad48d8b3c3
Add issue close
...
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
2020-04-28 09:13:08 -07:00
Corey Johnson
e5fc3e9bbd
Update issue_test.go
...
Add test for closing issue
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
2020-04-28 09:11:19 -07:00
Daniel Foad
09157f1fc7
unit tests
2020-04-28 00:03:21 +01:00
Daniel Foad
c62dd557e3
Filter closed/merged PRs on default branch
2020-04-27 21:14:00 +01:00
Corey Johnson
2d0d86f7e7
Merge pull request #815 from cli/heathy-helping
...
Update `gh help` output
2020-04-27 11:42:52 -07:00
Corey Johnson
3d2ee3c9b2
fix whitespace
2020-04-27 10:07:47 -07:00
Mislav Marohnić
aeb08529e7
Add wizard that prompts for issue/pr metadata on create
2020-04-27 18:58:25 +02:00
Mislav Marohnić
90c8e0e967
Merge remote-tracking branch 'origin/master' into issue-pr-create-metadata
2020-04-27 14:17:09 +02:00
Mislav Marohnić
42baf4c8c5
Support org projects and team reviewers
2020-04-27 14:09:05 +02:00
rista404
76c73db5a0
Disable interactivity if any flag is passed
...
- Error if title is an empty string
2020-04-25 23:47:07 +02:00
rista404
4b32e3f215
Enable interactive mode only if flags aren't passed
2020-04-25 23:32:14 +02:00
rista404
a2a6036c65
Add tests
2020-04-25 23:12:51 +02:00
rista404
fab18ed4a9
Show awaiting triage when project col is empty
2020-04-25 22:57:03 +02:00
Mislav Marohnić
3aaa231cc5
Guide user through re-authorization flow if read:org scope is missing
...
How this works for people with existing OAuth tokens:
$ gh issue list -L1
Notice: additional authorization required
Press Enter to open github.com in your browser...
[auth flow in the browser...]
Authentication complete. Press Enter to continue...
Showing 1 of 132 issues in cli/cli
...
Users of Personal Access Tokens get a different notice:
Warning: gh now requires the `read:org` OAuth scope.
Visit https://github.com/settings/tokens and edit your token to enable `read:org`
or generate a new token and paste it via `gh config set -h github.com oauth_token MYTOKEN`
2020-04-23 18:20:21 +02:00
Mislav Marohnić
84ac3d412e
Fix gh updater mechanism for unauthenticated users
...
Per code documentation: "BasicClient returns an API client that borrows
from but does not depend on user configuration". This means that any
errors while reading `oauth_token` should be tolerated.
2020-04-23 15:41:37 +02:00
Mislav Marohnić
8ed9a0324e
Merge remote-tracking branch 'origin/master' into oauth-read-org
2020-04-23 15:35:35 +02:00
vilmibm
97e3a57244
fix tests
2020-04-22 16:16:14 -05:00
vilmibm
03e60758d0
missed a thing
2020-04-22 16:08:47 -05:00
Corey Johnson
e68be52ed0
Use the correct field
2020-04-22 14:03:44 -07:00
Corey Johnson
4b2382c737
Merge branch 'heathy-helping' of https://github.com/cli/cli into heathy-helping
2020-04-22 14:02:09 -07:00
Corey Johnson
c9d5935ee3
move to use
2020-04-22 14:00:08 -07:00
Corey Johnson
4dff85d3c1
Merge remote-tracking branch 'origin/master' into heathy-helping
2020-04-22 13:56:53 -07:00
Nate Smith
9d7590cbfc
Merge pull request #810 from cli/respect-protocol
...
respect git_protocol setting
2020-04-22 15:54:38 -05:00
Corey Johnson
c064b07e6d
Add quote
2020-04-22 13:51:35 -07:00
Corey Johnson
0d79257312
use backets
...
Co-Authored-By: Amanda Pinsker <ampinsk@github.com>
2020-04-22 13:50:52 -07:00