Benjamin Chadwick
82662685e3
Autocomplete branch flags ( #6031 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-29 16:09:44 +00:00
Marco Carvalho
3b23978114
repo sync: clearer error message with actionable hint ( #7110 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-28 18:43:31 +00:00
աɨռɢӄաօռɢ
1f0e53319e
fix: throw error for non-existing org / repo with non-zero status in repo list ( #7240 )
2023-03-28 19:48:38 +02:00
Zhengyuan Zhang
0b9b1f710f
use Prompter for pkg/cmd/repo/archive ( #7083 )
2023-03-20 00:00:16 +00:00
Sam Coe
f7930a430b
Dont follow redirects on repo delete ( #7106 )
2023-03-14 04:38:57 +11:00
Sam Coe
cff5dec2ce
Make repo sync git fetch authenticated ( #7139 )
2023-03-13 13:00:37 +11:00
Nate Smith
aae4023cdc
use t.Cleanup(m.Verify)
2023-03-09 16:43:48 -08:00
vilmibm
b5c3d982b1
new tooling for assertions about prompting
2023-03-09 16:40:27 -08:00
Sam Coe
35a24caed2
Standardize retry mechanism ( #7027 )
2023-03-02 23:06:30 +00:00
vilmibm
b85a22cc71
use new cfg.Authentication()
2023-03-01 16:12:32 -08:00
Nate Smith
0bc2f28575
Merge branch 'trunk' into unarchive
2023-03-01 17:59:50 -06:00
Hamish 'James' Coates
394b23aa9b
Include new line after existing fork error log ( #7030 )
2023-02-28 00:53:25 +00:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Josh Soref
7541ee6aec
Retry git clone on git clone failure in gh repo fork --clone ( #6962 )
2023-02-21 04:10:50 +00:00
zhangzhengyuan
eb8bfcfe96
use prompter for pkg/cmd/repo/unarchive
2023-02-20 16:22:51 -08:00
zhangzhengyuan
125c67b3fb
add command gh repo unarchive
2023-02-20 10:35:50 -08:00
Des Preston
94fe6c7764
Fix set-default interactive not showing all remotes ( #6969 )
2023-02-07 23:11:38 +00:00
Sam Coe
801c38a24f
Add visibility warning to repo edit ( #6980 )
...
Add visibility warning to repo edit
---------
Co-authored-by: Lai Tuan Anh <laituananh1711@gmail.com>
2023-02-08 08:53:22 +11:00
Mislav Marohnić
14eb873b9e
Avoid implicitly fetching when adding a new git remote ( #6990 )
2023-02-07 21:22:02 +00:00
Josh Soref
e6d6427704
Support Fork with Default Branch Only
2023-02-07 10:00:39 -05:00
Damien Sedgwick
bab1b00c39
Rename --confirm flag to --yes for various destructive commands ( #6915 )
2023-01-26 12:48:21 +01:00
Damien Sedgwick
55053df592
repo delete: change confirmation flag to --yes ( #6911 )
2023-01-25 17:33:53 +01: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
Mislav Marohnić
8df1e9946f
repo set-default: support bare git repos
...
The command was using this to check for git repo context:
git rev-parse --is-inside-work-tree
With this change, this is used instead:
git rev-parse --git-dir
The latter approach works in the context of a bare git repository, which does not have a worktree.
2023-01-18 20:45:12 +01:00
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