Parth
ec554822b8
Add repo archive command ( #4410 )
...
Co-authored-by: meiji163 <mysatellite99@gmail.com>
2021-10-12 12:48:40 +02:00
Mislav Marohnić
bb86145cb6
Merge pull request #4331 from cli/repo-create-prompt-error
...
Do not swallow prompt error during `repo create`
2021-09-17 14:37:24 +02:00
Sam
0f7c4d94af
Merge pull request #4328 from cli/fix-sync-fetch
...
Allow user input for git fetch in repo sync
2021-09-16 10:15:26 -07:00
Sam Coe
0305788536
Typo
2021-09-16 09:02:10 -07:00
Mislav Marohnić
f9e49f4aec
Do not swallow prompt error during repo create
2021-09-16 12:25:44 +02:00
Sam Coe
a8492bb0ea
Allow user input for git fetch in repo sync
2021-09-13 10:14:20 -07:00
Mislav Marohnić
619333adb6
Avoid using error values to pass information about the search cap
2021-09-06 16:09:18 +02:00
Des Preston
e8b015b80d
show warning when limit exceeds search api max
...
Fixes #3839
2021-09-06 16:05:11 +02:00
Mislav Marohnić
e0fa56dc29
Merge remote-tracking branch 'origin' into go-module-v2
2021-09-02 20:02:16 +02:00
Mislav Marohnić
6cbc886c53
Use x/term package for repo garden instead of shelling out to stty
...
Shelling out to stty seems hard to get right between Linux and macOS.
2021-08-26 16:45:55 +02:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Heath Stewart
e2973453b5
Add helper template functions for rendering tables ( #3519 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-08-23 21:00:25 +02:00
lepasq
998a29d391
Update list_test.go to include topics as well
2021-08-15 14:31:24 +02:00
lepasq
87e5e6f2e3
Add topic filter to repository listing
2021-08-14 19:12:59 +02:00
Mislav Marohnić
f4bded30f8
Mark test helper
2021-08-10 14:30:55 +02:00
Mislav Marohnić
6136a39ed6
Use remotes.FindByRepo()
2021-08-10 14:30:36 +02:00
Mislav Marohnić
0f1ab13b9e
Only check if working copy is dirty when syncing current branch
...
In other cases, we don't have to abort the operation since it can
proceed without being affected by the working copy at all.
2021-08-10 14:29:23 +02:00
Mislav Marohnić
66ad6ad7d0
Avoid git checkout during gh repo sync
...
- If the local branch already exists, use `git update-ref`
- If it needs to be created, use `git branch <newbranch>`, but don't
switch to the new branch
Bonus fixes
- Enables operation while on detached HEAD
- Enables operation even when the current remote doesn't track all
branches in the remote repo (uses FETCH_HEAD instead of the
`<remote>/<branch>` syntax)
2021-08-09 22:10:52 +02:00
Sam
c5371d5303
Merge pull request #3813 from cli/repo-sync
...
Add repo sync command
2021-08-05 19:39:40 -07:00
Sam Coe
174e26ecac
Fix tests
2021-08-04 18:26:30 -07:00
Sam Coe
2c4a662660
Rework git client interface
2021-08-04 18:13:58 -07:00
Sam Coe
00d67e3e5a
Remove unnecessary +
2021-08-04 17:10:50 -07:00
Sam Coe
86f16dbaf5
Use more idiomatic pattern
2021-08-04 17:00:20 -07:00
Sam Coe
c0756c2d1c
Clean up UX
2021-08-04 16:42:27 -07:00
Mislav Marohnić
6ed2e8f7f8
Add completion support to repo create --gitignore and --license
2021-07-21 16:12:38 +02:00
Mislav Marohnić
1de756f6f3
💅 address review comments
2021-07-20 16:34:11 +02:00
Mislav Marohnić
5c21c949a0
Merge remote-tracking branch 'origin' into fix/private-repo-create
2021-07-15 12:58:00 +02:00
Mislav Marohnić
0ad153f696
Separate payload structs for REST vs GraphQL repo create
...
This enforces strict separation between serialization structs used for
repository creation payload with respect to whether GraphQL or REST was
used. Before, a field added to a GraphQL payload would leak to REST
payload (and vice versa).
2021-07-15 12:56:14 +02:00
Des Preston
17b58bf0b2
fix repo create --confirm
...
Respect the --confirm flag when deciding whether to prompt for gitignore
and license creation during `repo create`
Fixes #3989
2021-07-14 09:59:04 -04:00
Gowtham Munukutla
e600ce054a
fix description related bugs in creating a template repo
2021-07-13 09:38:34 +05:30
Gowtham Munukutla
a1f26057de
gofmt
2021-07-10 23:04:46 +05:30
Gowtham Munukutla
52550f0bee
fix private repo creation in case of ignore templates
2021-07-10 23:03:16 +05:30
Sam Coe
63f7372b31
Fix lint
2021-07-01 09:55:13 -07:00
vilmibm
589b695bcf
test for org + license/ignore
2021-06-30 17:41:39 -05:00
vilmibm
2723a01760
fix repo generation in org with license/ignore
2021-06-30 17:21:58 -05:00
Sam Coe
a1e1842e6d
Catch a couple more edge cases
2021-06-29 20:48:30 -07:00
Sam Coe
0b80c30789
Fix remote resolving for source repo
2021-06-28 17:00:06 -07:00
Nate Smith
7fc0acd8a5
Merge pull request #3746 from g14a/feature/repo-with-gitignore-license
...
Feature/create repo with gitignore license
2021-06-28 14:57:31 -07:00
Sam Coe
5481b2b5e6
Move dirty repo check before any network calls
2021-06-24 09:08:36 -07:00
Sam Coe
8219710551
Address PR comments
2021-06-23 14:20:14 -07:00
Sam Coe
0e838052a4
Rewrite tests with new mocks
2021-06-23 12:01:58 -07:00
Gowtham Munukutla
5c7da584e5
clone remote repo after creating with gitignore and license
2021-06-23 10:21:28 +05:30
Sam Coe
4ed2bfc4a0
Revert "Add counterfeiter"
...
This reverts commit 096f30a319 .
2021-06-22 13:55:30 -07:00
Gowtham Munukutla
a44a3c8fd0
remove redundant logs
2021-06-17 10:41:24 +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
7c8b6867f4
Merge branch 'trunk' of https://github.com/cli/cli into feature/repo-with-gitignore-license
2021-06-16 09:27:53 +05:30
Sam Coe
8423de7f50
Add tests
2021-06-14 10:54:28 -04:00
Sam Coe
096f30a319
Add counterfeiter
2021-06-14 10:51:51 -04:00
Sam Coe
2729af50df
Cleanup SyncOptions
2021-06-14 10:51:51 -04:00