Mislav Marohnić
4b0b422eb5
Add --json export functionality to repo commands ( #3627 )
2021-05-17 16:53:20 +02:00
Mislav Marohnić
02a2ed2f73
Add repo view --json export functionality
2021-05-12 17:05:15 +02:00
Mislav Marohnić
3cbd5b4934
Add repo fork --org functionality ( #3611 )
...
Co-authored-by: Gowtham Munukutla <gowtham.m81197@gmail.com>
2021-05-10 17:09:03 +02:00
Sam Coe
4fdf28d8a4
Change behavior of slice flags for issue edit and pr edit commands
2021-02-12 14:42:21 -08:00
Nate Smith
6e2c1b33b0
Merge pull request #2224 from divbhasin/1190-limit-merge-methods
...
#1190 - limit merge methods
2021-01-22 14:23:23 -08:00
AliabbasMerchant
1c54db4919
fix: Project Argument working along with --web flag
2021-01-22 23:07:00 +01:00
Sam Coe
f09b8a8e78
Add mergeMethodSurvey test
2021-01-21 14:58:10 -08:00
Sam Coe
a9123966e3
Merge branch 'trunk' into 1190-limit-merge-methods
2021-01-21 12:45:10 -08:00
Mislav Marohnić
65e5ba9da1
Merge pull request #2493 from gunadhya/repo-clone-wiki
...
Initial fix for gh-repo-clone wiki
2020-12-15 18:01:55 +01:00
gunadhya
fd57835bb9
Fix repo clone wiki
2020-12-15 17:45:03 +01:00
Mislav Marohnić
d6add864b8
Ensure efficient resolving of issue/pr create metadata to GraphQL IDs
...
For metadata types chosen in interactive flow, we fetch all records from
the API in order to be able to display a multi-select interface.
For metadata defined via command-line flags, we resolve records that can
be looked up directly, avoiding fetching the entirety of expensive
datasets (e.g. all members of an organization) if we can.
The new approach ensures efficient fetching when interactive flow is
combined with values from flags.
2020-12-03 15:53:13 +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
becb316308
Merge pull request #2177 from jonathanlloyd/use-canonical-capitalization-in-remotes
...
Clone repos using canonical username/repo name capitalization
2020-10-20 09:23:21 +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
div_bhasin
8b0618f45e
refactoring
2020-10-17 16:13:42 -04:00
div_bhasin
5f67ddc975
added to repo struct and working on fetching merge opts for repo
2020-10-17 13:12:26 -04:00
Mislav Marohnić
813fbc9b8d
Ensure that we don't reuse the same deserialization struct over pagination iterations
...
This is to avoid subtle deserialization issues in nested slices.
2020-10-14 15:38:21 +02:00
Jonathan Lloyd
8f44aee76a
Load repo and parent in single query
2020-10-13 20:41:16 +01:00
zamasu
d4e6fc11d7
Add int32 validation to milestone numbers
2020-10-13 08:36:47 +09:00
Mislav Marohnić
7a8db80420
Prompt for push target during pr create
...
We no longer guess the head repository using heuristics; instead, we
present the user with the choice of pushable repositories and an
additional option to create a new fork.
The new `pr create --head` flag is available for the user to specify the
head branch in `branch` or `owner:branch` format and completely skip any
forking or auto-pushing checks.
2020-09-16 14:49:36 +02:00
Mislav Marohnić
9a4a5d86cb
Merge remote-tracking branch 'origin' into release-cmd
2020-08-28 17:47:53 +02:00
Mislav Marohnić
d43d5e0bc9
Add release delete
2020-08-28 17:41:00 +02:00
Mislav Marohnić
e12c35cc17
Add ability to pass milestone by number
2020-08-11 19:27:26 +02:00
Mislav Marohnić
a73584db72
Merge remote-tracking branch 'origin' into pr-commands-isolate
2020-08-04 15:01:30 +02:00
Mislav Marohnić
487dd06bf3
Isolate pr checkout command
2020-07-29 22:50:34 +02:00
Mislav Marohnić
dd0d236629
Merge remote-tracking branch 'origin' into ghe-api
2020-07-27 20:13:54 +02:00
Mislav Marohnić
c1c836a657
Remove hardcoded "github.com"
2020-07-27 16:31:05 +02:00
Mislav Marohnić
0cbcf8a7fa
Merge remote-tracking branch 'origin' into ghe-api
2020-07-27 16:30:20 +02:00
vilmibm
c34054bdc8
isolate repo create command
2020-07-24 12:26:27 -05:00
Mislav Marohnić
288d01318b
Respect the hostname of current repository in queries
2020-07-23 22:31:08 +02:00
vilmibm
a27c8a9c21
isolate repo view cmd
2020-07-22 15:54:11 -05:00
Mislav Marohnić
71b13a81d0
Correctly report HTTP and Markdown errors in repo view
...
Any errors from fetching and rendering the README were silenced and
ignored in `repo view`. This change:
- Tolerates HTTP 404, but will raise exceptions for any other error;
- Moves markdown rendering from `api` package to command implementation;
- Ensures markdown rendering errors are correctly reported.
2020-07-21 13:47:27 +02:00
Mislav Marohnić
305cd290ee
Fix pr checkout <owner>:<branch> when it matches the default branch
...
First, consolidate the functionality between `pr merge` and `pr
checkout` that resolves the default branch name of the base repo. With
an added bonus, the new approach avoids an API request when one isn't
necessary.
Then, ensure that checking out 3rd-party PRs will result in local branch
name such as `<owner>/<branch>` when the head branch of the repository
matches the default branch of the base repository. We already have had
code in place to take care of this, but it only took effect in the `pr
checkout <number>`-style invocation.
2020-07-15 15:35:42 +02:00
Mislav Marohnić
87a9dc8d4b
Merge remote-tracking branch 'origin' into ghe-remotes
2020-07-13 13:39:14 +02:00
Mislav Marohnić
13b9c98b2b
Match named queries in test stubs
2020-07-10 20:04:54 +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
Mislav Marohnić
446a4111f7
Respect hostnames when resolving git remotes and URL args to repos
2020-07-02 20:36:10 +02:00
Mislav Marohnić
3ea71e6eb6
Add ability to parse non-GitHub.com git remotes
2020-06-23 19:51:26 +02:00
Corey Johnson
46a1e3cd53
Remove convertRepoInterfaceToRepository
2020-05-20 11:19:31 -07:00
Mislav Marohnić
386a53c34a
Fix metadata resolver query
2020-05-12 16:48:30 +02:00
Mislav Marohnić
6d57f2a91e
Faster resolve GraphQL node IDs for assignees, reviewers, and labels
2020-05-12 15:33:51 +02:00
Mislav Marohnić
1128439cd1
issue/pr create: hide "Add metadata" if viewer does not have triage permission
2020-05-08 18:37:08 +02:00
Mislav Marohnić
d7e6d21766
Order projects, teams, and labels by name
2020-05-08 18:22:14 +02:00
Mislav Marohnić
2089b15e6a
Fix pagination when fetching metadata
2020-05-04 17:09:11 +02:00
Mislav Marohnić
42baf4c8c5
Support org projects and team reviewers
2020-04-27 14:09:05 +02:00
Mislav Marohnić
6ed50c66ea
Prefetch metadata in parallel
2020-04-22 19:15:44 +02:00
Mislav Marohnić
a7d061709d
Add ability to prefetch granulated repository metadata
2020-04-21 19:14:57 +02:00
Mislav Marohnić
d3a89b8744
Expand issue create metadata flags to pr create
...
- Includes support `pr create --reviewer <login>`
- Hide "Preview in browser" menu option when any metadata are set
2020-04-17 20:23:57 +02:00
Mislav Marohnić
de59f6a1bf
Add flags to add additional metadata to issue create
...
- `-a, --assignee` (accepts multiple)
- `-l, --label` (accepts multiple)
- `-p, --project` (accepts multiple)
- `-m, --milestone`
2020-04-15 18:28:52 +02:00