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
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
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
Gowtham Munukutla
5c7da584e5
clone remote repo after creating with gitignore and license
2021-06-23 10:21:28 +05:30
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
camille folch
568f4e4ee0
Minor refactoring for readability in NewCmdFork's runE
2021-06-11 23:28:41 -03:00
camille folch
54b86c7093
repo fork: check that --org is not the empty string
...
As it is already being done for --remote-name, except in this case
the default is the empty string.
2021-06-11 23:28:41 -03:00
Nate Smith
b0998772ae
more cleanup
2021-06-10 21:46:02 +00:00
Nate Smith
f31a31e2ed
stop stubbing out a Since function
2021-06-10 21:46:02 +00:00
vilmibm
4a7ec7f4f6
cleaning up fork tests
2021-06-10 21:45:54 +00:00
vilmibm
14de70a011
add defaultRemoteName
2021-06-10 21:44:49 +00:00
Gowtham Munukutla
5c96d5d460
fix lint errors
2021-05-30 13:53:56 +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ć
3f3d4e38d4
Avoid crash when --json doesn't request nameWithOwner
2021-05-17 16:43:39 +02:00
Mislav Marohnić
a2307e357d
Add repo list --json support
2021-05-17 16:32:01 +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
01505daaf5
remove previous emoji workaround
2021-04-12 09:56:00 -07:00
Gowtham Munukutla
5caf01c564
add test for non tty fork
2021-04-01 10:49:12 +05:30
Gowtham Munukutla
745b3fec17
fix premature return while forking repo non interactively
2021-03-31 20:20:07 +05:30
Mislav Marohnić
44ae7ae3cf
Merge pull request #3279 from cli/browser-refactor
...
Pass web browser to each individual command
2021-03-30 16:54:59 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated ( #3286 )
2021-03-30 16:51:00 +02:00
Mislav Marohnić
179d3f0249
Add a unified GitHub Search query builder
2021-03-23 18:52:58 +01:00
Mislav Marohnić
111e8dbcf2
Pass web browser to each individual command
...
This removes sensitivity to the BROWSER environment variable in tests
and makes it easier to verify the URL that the browser was invoked with
without having to stub sub-processes.
2021-03-19 21:22:37 +01:00
Nate Smith
2ab073d599
Refactor use of glamour to allow style overrides ( #3243 )
...
* Refactor use of glamour to allow style overrides
* leave the things the way they were and just expose the ability to set overrides
2021-03-19 16:29:32 +00:00
Mislav Marohnić
07e6d60c80
Merge pull request #2991 from cli/repo-create-prompt-change
...
Repo create tweaks
2021-03-02 15:14:16 +01:00
Mislav Marohnić
9e63199a65
Add tests for checking out repository after creating from template
2021-03-01 14:12:56 +01:00
Mislav Marohnić
00cb921cd5
Merge pull request #2953 from cristiand391/add-repo-list
...
Add `repo list` command
2021-02-27 17:34:32 +01:00
Mislav Marohnić
e27a77fc99
Add ability to filter by archived in repo list
...
Like `--language`, archived filters also use the Search API.
2021-02-27 17:20:06 +01:00
Mislav Marohnić
5da8301d5d
Enable filtering repo list by coding language
2021-02-27 16:52:47 +01:00
Mislav Marohnić
f75144dd1f
Enable pager for repo list output
2021-02-27 15:05:11 +01:00
Mislav Marohnić
2bdffc85e2
Isolate flag processing tests in repo list
2021-02-27 14:39:06 +01:00
Mislav Marohnić
1fa763f514
Avoid having to first query for username in repo list
...
Dynamically construct the GraphQL query by using the `viewer` connection
if the owner isn't set and the `repositoryOwner(login:"...")` connection
if the owner was set.
2021-02-27 14:38:56 +01:00
Mislav Marohnić
4da02614ed
Switch repo list to query via graphql package
...
Also order results by PUSHED_AT instead of UPDATED_AT to match the web
interface.
2021-02-27 13:17:59 +01:00
Cristian Dominguez
2284ef43d0
repo list: add tests
2021-02-19 17:34:17 -03:00
Cristian Dominguez
cad875a05f
repo list: render repo tags into the 3rd column instead of the 2nd
2021-02-18 19:02:59 -03:00
Cristian Dominguez
b7c2865d0f
Remove archived filter from repo list
2021-02-18 17:34:00 -03:00
Mislav Marohnić
e596f8732b
Fix creating a repository from template
...
Fixes a problem where setting up a new local directory for the
repository created from a template would not contain any files:
gh repo create -p OWNER/some-template my-repo --private --confirm
ls my-repo
//=> [empty directory]
Fixes #2290
2021-02-17 20:26:06 +01:00