William Martin
c02b410327
Update fork failure error and add test
2024-01-29 16:27:29 +01:00
Chris Roat
39215d9316
Add more detail to fork failure message
2024-01-29 16:27:29 +01:00
nate smith
a889bfab20
Merge remote-tracking branch 'origin/trunk' into fix/error-on-no-browser
2023-07-10 15:29:17 -07:00
Sam Coe
dbc2f05124
Update go-gh to v2 ( #7299 )
...
* Update go-gh
* Update code for go-gh v2
2023-04-16 15:34:23 +10:00
Kousik Mitra
aa0f2de885
Return error on no-browser option if repo don't exists
2023-04-16 01:30:14 +05:30
Anupam Kumar
88cc4d2531
Add variable set command ( #6928 )
2023-03-13 03:01:38 +00:00
Sam Coe
08a1231178
Allow retrieving projectItems in JSON and allow adding/removing user owned projects ( #7007 )
2023-02-15 22:14:59 +00:00
Josh Soref
e6d6427704
Support Fork with Default Branch Only
2023-02-07 10:00:39 -05:00
azu
700bda3ad8
Add gh repo edit --enable-discussions ( #6903 )
...
* Add gh repo edit --enable-discussions
* Add hasDiscussionsEnabled to JSON fields for repos
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-24 18:13:05 +01:00
Ilya Yatsishin
179e9c256d
Add projectsV2 support to issue create, issue edit, pr create, and pr edit ( #6735 )
...
Co-authored-by: pshevche <pavel.shevchenko.95@gmail.com>
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2023-01-19 22:13:09 +00:00
Natthakit Susanthitanon
33779630da
Exclude the current user from reviewers when creating pr ( #6464 )
2022-12-08 08:51:35 +02:00
Mislav Marohnić
e7029616cb
Fix parsing base repo out of outdated git remotes
...
If any of the repositories named by git remotes could not be found via
API lookup, a "could not resolve to a Repository" error would be thrown,
but the goal of the base repo logic was to ignore NOT_FOUND errors.
2022-07-25 20:17:32 +02:00
Mislav Marohnić
5656296ade
repo fork: directly fork under the desired name
...
A new GitHub feature landed where the API client can specify the desired
name of the new fork. This avoids the necessity of subsequently having
to rename the forked repo after the fork operation has created one.
For backwards compatibility, the renaming logic is still here, but
activates only if the resulting repo name is not the desired name.
2022-07-11 13:54:58 +02:00
Sam Coe
074ed50b8a
Integrate go-gh API package ( #5614 )
2022-06-23 04:05:31 +01:00
Jonathan Fenwick
ddb408e67b
Add check to see if current owner is attempting to fork the repo ( #5794 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-14 13:13:24 +00:00
Heath Stewart
5ed83e2b2a
Remove Stringer from ghrepo.Interface ( #5536 )
2022-04-28 08:58:34 +02:00
Heath Stewart
19a852ae9f
Add label clone command ( #5452 )
2022-04-25 18:13:22 +00:00
Gowtham Munukutla
83a6cccf2a
Add interactive repository edit functionality ( #4895 )
2022-03-14 17:49:03 +00:00
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