Commit graph

344 commits

Author SHA1 Message Date
Mislav Marohnić
6a4f374caf
Enable repo override for repo deploy-key delete (#5152) 2022-02-01 11:40:34 +00:00
Mislav Marohnić
4a3ef50d2d
Standardize pager output across commands (#5141)
Add pager functionality to the following commands:
- gist list
- pr checks
- release list
- run list
- run view
- secret list
- workflow list
- workflow view

Additionally, normalize error handling when starting the pager has
failed: only print a non-fatal notice to stderr instead of aborting the
whole command.
2022-02-01 08:36:51 +01:00
Kevin Lee
0d143ca89c
Consistent punctuation in command usages (#5139)
* Fix spelling and grammatical errors in command docs
* Add periods for consistency across the long command descriptions
* Format imports
2022-01-31 10:56:12 +00:00
Nate Smith
e17964cf03
Merge pull request #5092 from cli/repo-fork-proto
prefer configured git protocol when forking
2022-01-26 11:33:47 -06:00
nate smith
667671f048 fix race condition, increase clarity 2022-01-25 15:36:41 -06:00
nate smith
bd6e50a08a Merge remote-tracking branch 'origin/trunk' into feature/target-repo-fork-name 2022-01-25 14:08:27 -06:00
Nilesh Singh
47a6aff54a
Add repo deploy key commands (#4302)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-01-25 17:48:24 +00:00
nate smith
0d214864d9 linter appeasement 2022-01-24 17:01:19 -06:00
nate smith
170a50fcc8 prefer configured git protocol when forking 2022-01-24 16:54:01 -06:00
Nate Smith
4b415f80d7
Merge pull request #5022 from cli/config-defaults
add GetOrDefault and related methods to Config
2022-01-17 10:44:28 -06:00
Mislav Marohnić
44775f87c8 Add nolint directives to allow-list current lint violations 2022-01-14 19:52:52 +01:00
Mislav Marohnić
30c5ef23ee Merge remote-tracking branch 'origin' into ask-stubber 2022-01-14 17:41:08 +01:00
Mislav Marohnić
456d55ead9 Have a single Render function handle all Markdown rendering 2022-01-13 19:39:43 +01:00
Mislav Marohnić
649e30ce2a Fix ask stubs in repo create tests 2022-01-13 11:17:42 +01:00
nate smith
56522f9f14 formatting 2022-01-11 14:57:10 -06:00
nate smith
562f1b3d0d add GetOrDefault functionality to config 2022-01-11 14:56:58 -06:00
Mislav Marohnić
1260023547 repo sync: Use the new merge-upstream API if available
This helps avoid the errors when a new commit from upstream is not yet
available in the fork, resulting in a HTTP 404 when trying to update the
ref in the fork.

If the merge-upstream API is unavailable (404) or errors out (409/422),
the functionality falls back to the previous functionality of manually
updating refs. This ensures that `--force` still has effect.
2021-12-21 16:44:27 +01:00
Gowtham Munukutla
759e8a9ca9 resolve conflicts with trunk 2021-12-15 13:25:36 +05:30
Mislav Marohnić
5cd977e328 💅 normalize prompt style for text inputs 2021-12-14 18:38:46 +01:00
Mislav Marohnić
c90fc18b0c Avoid creating repo when cancelling from interactive mode 2021-12-14 18:18:08 +01:00
Mislav Marohnić
3e40780074 💅 repo create cleanups 2021-12-14 18:05:42 +01:00
Mislav Marohnić
21e6d95982 Fix repo create printing created URL in no-TTY mode 2021-12-14 17:49:43 +01:00
Gowtham Munukutla
3fb4c481dc modify tests 2021-12-11 10:17:04 +05:30
Gowtham Munukutla
54d92facbf add flag to set fork-name during repo fork. Tests WIP 2021-12-10 22:59:35 +05:30
Mislav Marohnić
7d199fa783 repo edit: add ability to add or remove repository topics 2021-12-07 19:28:29 +01:00
Gowtham Munukutla
98217fc38c gh repo edit
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-12-07 19:28:29 +01:00
Sam
2580a63a44
Merge pull request #4750 from cli/replace-shurcool
Replace shurcool/graphql with cli/shurcool-graphql
2021-11-18 09:10:06 -08:00
Benjamin Chadwick
6cc7712583
Confirm name change before creating a repo with special characters (#4562)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-11-18 13:24:48 +00:00
Nate Smith
762d956c6f
Merge pull request #4655 from cli/issue-4589
add base repo resolution to `gh repo delete`
2021-11-17 15:25:04 -06:00
Nate Smith
c5c83bfb9d
Merge pull request #4654 from cli/issue-4590
add base repo resolution to archive
2021-11-17 15:23:18 -06:00
Sam Coe
260716a9f8
Repace shurcool/graphql with cli/shurcool-graphql 2021-11-17 12:57:43 -08:00
Meijke
0a0a358168
rewrite gh repo create (#4578)
Co-authored-by: Parth Patel <ppatil91099@gmail.com>
2021-11-17 20:16:37 +01:00
meiji163
35131058ed commit @samcoe's suggestions 2021-11-10 17:38:11 -08:00
meiji163
a1426ac19b implement samcoe's suggestions 2021-11-10 17:10:37 -08:00
meiji163
0596834c95 rollback arg changes 2021-11-03 10:11:45 -07:00
Parth Patel
d4105807c2 @mislav changes requested 2021-11-03 12:18:44 -04:00
meiji163
26748dc2f3 allow base repo notty 2021-11-02 10:59:30 -07:00
meiji163
09064a5f55 fix tests 2021-11-02 10:51:42 -07:00
Parth Patel
dbebd74a9f final changes made 2021-11-01 17:14:04 -04:00
Parth Patel
13a97c29ed removed unnecessary things 2021-11-01 14:21:10 -04:00
Parth Patel
b0dce5b04d minor fix in base repo functionality 2021-11-01 13:49:11 -04:00
meiji163
001b1a36e7 add base resolution to delete 2021-10-31 14:46:57 -07:00
meiji163
48baf50b8e add base repo resolution to archive 2021-10-31 14:22:43 -07:00
nate smith
da258fb4f4 confirm when inferring repository 2021-10-28 12:26:01 -05:00
Sam Coe
296cf381a2
Reduce duplicate warning message code 2021-10-27 14:07:00 -04:00
Parth Patel
95dbd677e0 resolved comments 2021-10-27 12:12:09 -04:00
Parth Patel
333f0ec530 remove repooverride from repo 2021-10-26 11:55:46 -04:00
Parth Patel
ea0e8d5c23 fixed http_tests git stub 2021-10-26 11:38:12 -04:00
Parth Patel
ccdea2db6d lint fix 2021-10-25 17:19:27 -04:00
Parth Patel
c83c6a83e6 Merge branch 'trunk' into repo-rename 2021-10-25 17:17:06 -04:00