Mislav Marohnić
1440fd81a1
Fix broken GraphQL queries due to editing Author struct
2021-05-18 18:35:34 +02:00
Mislav Marohnić
42155c7d2d
Export more IDs in issue/pr JSON payload
2021-05-18 18:19:28 +02:00
Mislav Marohnić
bc3bb97c43
Merge remote-tracking branch 'origin' into pr-lookup-refactor
2021-05-17 17:41:38 +02:00
Mislav Marohnić
02a2ed2f73
Add repo view --json export functionality
2021-05-12 17:05:15 +02:00
Cristian Dominguez
796d2e24ef
Bring back Closed field
2021-04-30 17:32:16 -03:00
Mislav Marohnić
9bdc63c4ca
Eliminate API overfetching in pr commands
...
This completely rewrites the PR lookup mechanism so that the caller
must specify the GraphQL fields to query for each PR. Additionally, this
fixes some export problems with `pr view --json`.
Features:
- Each pr command now gets assigned a concept of a Finder. This makes it
easier to stub the PR in tests without having to stub the underlying
HTTP calls or git invocations.
- `pr view --web` is much faster since it only fetches the "url" field.
- `pr diff 123` now skips a whole API call where a whole PR was
unnecessarily preloaded just to access its diff in a subsequent call.
- PullRequestGraphQL query builder is now used to construct queries.
- A bunch of individual commands are now freed of having to know about
concepts such as BaseRepo, Branch, Config, or Remotes.
2021-04-30 20:34:36 +02:00
Cristian Dominguez
6b49e21295
Improve issue status detection
2021-04-28 00:30:21 -03:00
Mislav Marohnić
a516ee6833
Add issue status --json support
2021-04-13 21:26:26 +02:00
Mislav Marohnić
abe452bb19
Add --json export flag for issues and pull requests
...
The `--json` flag accepts a list of GraphQL fields to query for and
output in JSON format. To get the list of available flags, run the
command with a blank value for `--json`. Additional `--jq` and
`--template` flags are available just like in `gh api`.
2021-04-13 20:29:31 +02:00
Mislav Marohnić
19ea49b5a9
Move issue list queries to under the issue/list package
2021-04-13 19:25:19 +02:00
Mislav Marohnić
949df38d49
BREAKING: lookup all issue/PR labels with "AND" instead of "OR" combinator
...
This switches to the Search API whenever labels are specified in `issue
list` or `pr list`. This ensures that the results match those that would
be returned in the web UI.
2021-03-24 18:04:25 +01:00
Mislav Marohnić
80035aa686
💅 cleanup switching to search mode in issue list
2021-03-23 18:08:14 +01:00
Gowtham Munukutla
f791bbdbcb
add search feature in listing issues
2021-03-23 18:08:14 +01: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 Coe
b366802aa1
Edit issue command
2021-02-04 10:54:34 -08:00
Nate Smith
d91b3121c8
Merge pull request #2839 from kevinmbeaulieu/kb/delete-issue-cmd
...
Add `issue delete` command
2021-01-27 16:41:30 -08:00
Sam Coe
52bdcad8ea
Do not display minimized comments
2021-01-27 08:14:46 -08:00
Kevin Beaulieu
57d5470df9
Add issue delete command
...
Similar to `issue close`, but for deleting an issue rather than
just closing it.
Resolves cli/cli#2820 .
2021-01-24 15:08:19 -08:00
Sam Coe
a26fba7800
Comment on pull requests
2021-01-21 09:47:38 -08:00
Sam Coe
bec5e0cd77
Address PR comments
2020-12-08 10:24:02 -05:00
Sam Coe
c843a4fa13
Add issue comment viewing
2020-12-07 14:25:04 -05:00
Abhilash Gnan
9e03d01bdf
Fetch all issue labels
...
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
2020-10-28 19:45:21 +01:00
Ishida Yuya
7512d9131f
Get open and closed milestones when milestones are filtered by title ( #2209 )
2020-10-21 18:22:06 +02:00
Sam
869f5118c6
Merge pull request #2178 from quiye/milestone-int32-validation
...
Add int32 validation to milestone numbers
2020-10-20 09:17:22 +02:00
zamasu
a90b62fb6c
Fix parsing labels in paginated IssueList
2020-10-14 15:32:45 +02:00
zamasu
d4e6fc11d7
Add int32 validation to milestone numbers
2020-10-13 08:36:47 +09:00
Pushpamk
581783176a
deleted comment
2020-10-08 20:34:10 +05:30
Pushpamk
f8a49ca624
updated reference comment
2020-10-08 16:04:28 +05:30
Pushpamk
40a0b0d511
updated new github doc. link
2020-10-08 00:55:44 +05:30
Mislav Marohnić
e12c35cc17
Add ability to pass milestone by number
2020-08-11 19:27:26 +02:00
Mislav Marohnić
20ffa49d69
Merge remote-tracking branch 'origin' into fix-milestone
2020-08-11 19:01:58 +02:00
Francisco Miamoto
bbce1ba755
add check for milestone not found
2020-08-05 20:49:01 -03:00
Francisco Miamoto
3caa7cc537
improve comments
2020-08-01 23:54:22 -03:00
Francisco Miamoto
9a5e69a8a4
use graphql for repo milestones on issue list
...
Since we can obtain the necessary ID for the query on
node ID from the GraphQL API, it makes sense to remove
the REST version.
2020-08-01 23:43:36 -03:00
Francisco Miamoto
3ce1de62a2
fix searching issues by the milestone name
...
This fix involves using the REST API since the GraphQL one doesn't
seem to return the necessary ID for the subsequent issues query.
2020-07-30 22:11:19 -03:00
Mislav Marohnić
288d01318b
Respect the hostname of current repository in queries
2020-07-23 22:31:08 +02:00
Mislav Marohnić
d96e88c223
Rename IssueCreate mutation
...
This follows the "NounVerb" convention we got going on
2020-07-10 18:08:16 +02:00
Mislav Marohnić
f4c4ce0b0a
Add names to GraphQL queries made over shurcooL adapter
2020-07-07 17:53:40 +02:00
Mislav Marohnić
a7806a3e78
Add names to queries made over our homegrown GraphQL adapter
2020-07-07 17:53:40 +02:00
Eddú Meléndez
cffd56f717
Rename to mention
2020-06-15 16:08:10 -05:00
Eddú Meléndez
a16405650f
Define query variables
2020-06-13 20:55:55 -05:00
Eddú Meléndez
9aebb66a3c
Add milestone filter
2020-06-13 20:53:41 -05:00
Eddú Meléndez
2943703d4a
Add mentioned flag
2020-06-13 20:53:03 -05:00
Corey Johnson
e2aab30836
just return the err
...
Co-authored-by: Nate Smith <vilmibm@github.com>
2020-04-30 08:59:14 -07:00
Corey Johnson
23c072b39d
Add api call
2020-04-29 14:14:50 -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
a2f0cc6de7
Issue close works
...
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
2020-04-28 09:31:19 -07:00
Corey Johnson
ad48d8b3c3
Add issue close
...
Co-Authored-By: Nate Smith <vilmibm@neongrid.space>
2020-04-28 09:13:08 -07:00