Sam Coe
28d2b52769
release create: warn about unpushed local git tag ( #5104 )
...
If `gh release create <TAG>` was called and TAG exists locally but not on the remote, this warns about the unpushed tag to avoid recreating it on the remote. The user can pass a value for `--target` to silence the warning.
2022-02-15 16:36:37 +01:00
nate smith
bd6e50a08a
Merge remote-tracking branch 'origin/trunk' into feature/target-repo-fork-name
2022-01-25 14:08:27 -06:00
Mislav Marohnić
d23460a590
Fix filtering issues by milestone
...
The milestone filter in the `Repository.issues` GraphQL connection is
broken, so switch to the Search API for any milestone filtering.
Previously, we used to work around this by obtaining the milestone
database ID from decoding the GraphQL ID, but that no longer works since
the GraphQL ID format has changed.
2022-01-14 15:06:33 +01:00
Carl Tablante
ad8d7bb02e
#4386 Display a user's name in metadata survey for assignees and reviewers ( #4420 )
...
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-01-12 08:52:22 +00:00
Gowtham Munukutla
759e8a9ca9
resolve conflicts with trunk
2021-12-15 13:25:36 +05:30
Benjamin Chadwick
4bbbf46321
Fix browse last commit when using the repo override flag ( #4845 )
2021-12-13 15:00:22 +01:00
Gowtham Munukutla
54d92facbf
add flag to set fork-name during repo fork. Tests WIP
2021-12-10 22:59:35 +05:30
Sam Coe
260716a9f8
Repace shurcool/graphql with cli/shurcool-graphql
2021-11-17 12:57:43 -08:00
Mislav Marohnić
2c3f02ee62
Ensure NOT_FOUND error when querying private repos using insufficient scope
2021-10-14 17:31:21 +02:00
Parth
ec554822b8
Add repo archive command ( #4410 )
...
Co-authored-by: meiji163 <mysatellite99@gmail.com>
2021-10-12 12:48:40 +02:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Gowtham Munukutla
a44a3c8fd0
remove redundant logs
2021-06-17 10:41:24 +05:30
Gowtham Munukutla
9b05254285
gofmt
2021-06-17 10:28:24 +05:30
Gowtham Munukutla
acaaeb5567
remove unnecessary assignment of id
2021-06-17 10:27:40 +05:30
Gowtham Munukutla
26105dec29
fix lint
2021-06-17 10:25:54 +05:30
Gowtham Munukutla
137053399e
tweak tests and add extra validations
2021-06-17 10:17:26 +05:30
Gowtham Munukutla
3c8e163e8b
resolve PR comments. Tests WIP
2021-06-16 12:50:05 +05:30
Gowtham Munukutla
c4beed8276
complete tests
2021-05-30 13:42:39 +05:30
Gowtham Munukutla
9b87b13b80
add test cases WIP
2021-05-29 19:27:30 +05:30
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