Mislav Marohnić
f8f206e063
Group PR, release, and repo subcommands
2022-12-21 14:47:59 +01:00
Mislav Marohnić
fcd86c00b4
Merge remote-tracking branch 'origin' into cobra-update
2022-12-21 13:23:41 +01:00
Mislav Marohnić
2ede67331d
Merge pull request #6706 from browniebroke/feat/edit-repo/allow-update-branch
...
Add `--allow-update-branch` to the `repo edit` command
2022-12-20 17:56:30 +01:00
Mislav Marohnić
a55dd656f3
Merge remote-tracking branch 'origin' into cobra-update
2022-12-20 17:15:25 +01:00
vilmibm
f5d19b831e
error instead of prompt when no base repo + fixes
2022-12-15 11:44:37 -08:00
vilmibm
5461d15b74
final bit of feedback
2022-12-14 16:26:01 -08:00
vilmibm
6532397963
use factory git client
2022-12-14 16:26:01 -08:00
vilmibm
db4de60307
rename command and fix tests
2022-12-14 16:26:01 -08:00
vilmibm
41bdaa426a
tweak wording
2022-12-14 16:26:01 -08:00
vilmibm
230d89be93
add more to usage
2022-12-13 12:06:57 -08:00
vilmibm
2090e1111f
tweak UX and switch to prompter
2022-12-13 11:57:05 -08:00
vilmibm
76c58930d9
tests pass
2022-12-13 10:48:03 -08:00
vilmibm
7e3e2d96a8
Merge remote-tracking branch 'origin/trunk' into base-cmd
2022-12-13 10:39:40 -08:00
Bruno Alla
25209ad6b1
Add --allow-update-branch to the repo edit command
2022-12-08 20:19:14 +00:00
Skip Baney
06360429de
Prompt for owner when interactively creating repos ( #6578 )
2022-12-08 08:52:36 +02:00
Sam Coe
98ab1f2587
Authenticate network git commands ( #6541 )
2022-11-15 13:14:37 +02:00
Mislav Marohnić
5408197a06
Revert "Fix repo list when belonging to org with IP Allow list enabled"
2022-11-14 12:46:41 +01:00
Mislav Marohnić
b12ea845ef
Migrate to the new Cobra command grouping feature
2022-11-09 16:42:13 +01:00
Sam Coe
f96b2fce57
Refactor git client and add tests ( #6525 )
2022-11-03 11:58:38 +01:00
Mislav Marohnić
17e64674f5
repo list: fix when belonging to org with IP Allow list enabled
...
Using `ownerAffiliations` instead of `affiliations` seems more semantically correct to list all repos belonging to a user or an organization, but the latter thas an added benefit that it also works around a problem when the API would return an error if the user happens to belong to an organization that has IP allow list enabled.
From our GraphQL docs:
> `affiliations`: Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.
>
> `ownerAffiliations`: Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.
2022-11-02 00:55:46 +01:00
Jeffrey Duroyon
6d32ce612c
feat: make topic param as list in repo list command ( #6539 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-01 19:39:43 +01:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh ( #6346 )
2022-10-17 15:15:39 +02:00
Sam Coe
c89d0402bb
Improved error messaging for repo sync scenario ( #6430 )
2022-10-14 09:46:12 +00:00
Sam Coe
2944f7c3ab
Create git client ( #6354 )
2022-10-14 07:47:03 +00:00
Nate Smith
c13eb9e792
Merge pull request #6320 from cli/label-prompter
...
add and use ConfirmDeletion in {label,repo} delete
2022-10-04 14:49:59 -05:00
Mislav Marohnić
acb61072cd
Respect GH_HOST in auth login, repo delete
...
Bonus fix: respect fallback host argument to `FromFullNameWithHost()`
2022-09-26 13:32:54 +02:00
vilmibm
d8a276e83b
add and use ConfirmDeletion in {label,repo} delete
2022-09-21 17:19:13 -07:00
Mislav Marohnić
113acf9245
Add the option to generate a README for the created repository ( #6264 )
2022-09-21 16:08:26 +02:00
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
Mark Woods
e876b22963
Change markdown wrap limit match terminal width ( #6016 )
2022-09-01 07:36:25 +00:00
Sam Coe
45f1a71c8b
Remove all direct calls to shurcool-graphql
2022-08-18 21:40:41 +03:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages ( #6084 )
2022-08-18 09:04:13 +03:00
vilmibm
41385477c3
fix linting
2022-07-27 14:15:27 -05:00
vilmibm
d5334f4115
Revert "update linter checks"
...
This reverts commit 40ecb8c188 .
2022-07-27 13:30:41 -05:00
vilmibm
f7d5c5f725
move prompter to own package
2022-07-26 16:41:13 -05:00
vilmibm
40ecb8c188
update linter checks
2022-07-26 16:06:52 -05:00
vilmibm
4afb567d06
WIP: survey wrapper
2022-07-26 14:39:38 -05:00
Patrick Reader
0cf2600725
strip whitespace when adding topics
...
closes #5934
2022-07-14 13:17:40 +01: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
casswedson
00bc550dc6
chore: typo hunting ft. codespell
2022-07-09 21:41:09 -05:00
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00: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
Mislav Marohnić
80f130184c
repo edit: fix interactive mode in GHES < 3.3
2022-06-07 17:54:52 +02:00
Mislav Marohnić
aff26cbcfc
Simplify repo list color check
2022-06-07 17:51:44 +02:00
Mislav Marohnić
89886eeaf8
Fix repo visibility label in search repos output
...
The `Visibility` field will be empty for `search` results when made
against GHES versions < 3.3. If that is the case, fall back to
constructing the label using `IsPrivate` field.
2022-06-07 17:09:17 +02:00
Sam Coe
33975a95e4
Allow repo list to work with GHES earlier than 3.3
2022-06-06 12:45:55 -05:00