Mislav Marohnić
cbeed671dd
release create: clean up leftover draft release on upload/publish failure
2022-12-14 21:24:39 +01:00
Mislav Marohnić
36ffbe18de
Improve looking up draft releases by tag name
...
This changes the FetchRelease implementation to look up draft releases directly using by its pending tag name, as opposed to resorting to the Releases list API which is backed by Elastic Search and thus suffers replication lag after the creation of a draft release.
Bonus: all release lookup functions now accept a context for cancellation.
2022-12-14 21:24:08 +01:00
Paul Forness
e86b3ea91f
Change alias list output format to YAML ( #6603 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-12-13 22:49:04 +01:00
Caleb Brose
6f1d149da3
Merge pull request #6725 from cli/cmbrose/rename-repo-shorthand
...
Codespaces: Use -R for --repo shorthand and deprecate -r
2022-12-13 13:52:48 -06:00
Mislav Marohnić
dd8c5c9dae
Fix clobbering old files in release download ( #6694 )
...
Ensures that the old file to be clobbered is first truncated before writing.
2022-12-13 18:39:23 +00:00
Caleb Brose
56006eefa6
Flags instead of PersistentFlag
2022-12-13 01:20:49 +00:00
Caleb Brose
57c53e6268
linter
2022-12-12 21:21:23 +00:00
Caleb Brose
8e0b4ef21b
Use -R for --repo shorthand and deprecate -r
2022-12-12 19:44:59 +00:00
Nate Smith
67e5baea09
Merge pull request #6711 from cli/release-prompter
...
port release command to prompter
2022-12-12 12:09:29 -06:00
Mislav Marohnić
e4f5545e86
Go 1.19: fix comment formatting for moq-generated mocks
2022-12-12 16:58:25 +01:00
Sam Coe
6dbe7e6342
Linter fixes ( #6722 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-12-12 15:27:32 +00:00
vilmibm
6507d35f2f
port release command to prompter
2022-12-09 15:06:26 -08:00
Jake Shorty
c21408fc01
Merge pull request #6705 from cli/jshorty/new-pfs-domain
...
Use new domain for forwarded ports
2022-12-09 13:31:39 -05:00
Matthew Gabeler-Lee
eadc8e8372
Add isDraft to search prs json options, matching pr view ( #6704 )
2022-12-09 07:57:27 +00:00
Nate Smith
4fd56ac7c1
Merge pull request #5049 from hirasawayuki/add-more-author-infomation
...
Add author information in `pr list` JSON output
2022-12-08 16:19:18 -06:00
vilmibm
c91c2d43cd
export is_bot in issue/pr search
2022-12-08 12:55:03 -08:00
Jake Shorty
1cb62b182c
Use new domain for forwarded ports
2022-12-08 18:36:26 +00:00
Des Preston
23913ac371
Show version diff when updating a single extension ( #6647 )
2022-12-08 14:40:41 +00:00
Owen Voke
57f5bd8cdd
Add support to exclude pre-releases from release list ( #6625 )
2022-12-08 08:53:12 +02:00
Skip Baney
06360429de
Prompt for owner when interactively creating repos ( #6578 )
2022-12-08 08:52:36 +02:00
Natthakit Susanthitanon
33779630da
Exclude the current user from reviewers when creating pr ( #6464 )
2022-12-08 08:51:35 +02:00
vilmibm
91445d2df3
Merge remote-tracking branch 'origin/trunk' into pr-prompter
2022-12-05 11:27:55 -08:00
Luan Vieira
fad72b788d
Avoid duplicate remote tag lookups
...
Co-authored-by: Mislav Marohnić <hi@mislav.net>
2022-11-16 15:12:18 -05:00
Luan Vieira
f1a067ff18
Clarify --verify-tag flag description
...
Co-authored-by: Mislav Marohnić <hi@mislav.net>
2022-11-16 15:09:21 -05:00
Luan Vieira
11bef8c3b5
Add --verify-tag flag for release creation command
...
Fixes https://github.com/cli/cli/issues/6566
When running `gh release create <tag> --verify-tag`, we query <tag>
among repository tags via the GitHub API before creating the release,
and abort the command if the tag was not found.
2022-11-16 13:45:55 -05:00
Sam Coe
98ab1f2587
Authenticate network git commands ( #6541 )
2022-11-15 13:14:37 +02:00
Sam Coe
c066edc984
Fix commands that use iostreams RefreshScreen ( #6607 )
2022-11-14 16:08:00 +01: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
Sam Coe
6bbfc5056d
Use git client in extension manager ( #6547 )
2022-11-10 11:38:12 +02:00
vilmibm
036e16608f
Merge remote-tracking branch 'origin/trunk' into gh-ext-search
2022-11-08 12:40:21 -08:00
vilmibm
3abba558f3
review feedback
2022-11-08 12:32:44 -08:00
vilmibm
85e336526d
tweak usage
2022-11-08 12:31:33 -08:00
vilmibm
e84383589e
add more usage info
2022-11-08 11:15:39 -08:00
vilmibm
4bc623591f
gh ext browse
2022-11-08 10:51:20 -08:00
vilmibm
869248fc53
review feedback
2022-11-07 15:05:35 -08:00
vilmibm
4a2c5f222a
add gh ext search
2022-11-04 15:21:12 -07:00
Natthakit Susanthitanon
8617eb7df9
Add jobs field for run view --json ( #6507 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-03 12:59:35 +00:00
Mislav Marohnić
9ec2107cc6
Merge pull request #6421 from cli/go-gh-term
...
Dogfood term package from go-gh
2022-11-03 13:02:24 +01:00
Ariel Deitcher
33e589465e
--force overrides pinned extensions (#6513 )
2022-11-03 12:12:20 +01:00
Sam Coe
f96b2fce57
Refactor git client and add tests ( #6525 )
2022-11-03 11:58:38 +01:00
Mislav Marohnić
6c8aaff919
Merge pull request #6538 from cli/release-make-latest
...
Support explicitly marking a Release as "Latest"
2022-11-03 11:31:10 +01:00
BakaFT
fa2223129b
Warn from gh gpg-key add when key is not armored ( #6528 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-02 16:33:25 +01:00
Mislav Marohnić
ba028b9044
Fix setting up git credential helper on Windows
2022-11-02 15:53:26 +01:00
Mislav Marohnić
ff9b18310a
Merge pull request #6552 from cli/owner-affiliations
...
Fix `repo list` when belonging to org with IP Allow list enabled
2022-11-02 10:28:22 +01:00
Luis Filipe Pessoa
a15c254eba
Adding output functionality ( #6410 )
...
Output flag allows one to download to a specific file location or event redirect to output using '-' as argument.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-02 10:24:33 +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
Caleb Brose
3692defe8d
Merge pull request #6551 from jungaretti/jungaretti/incremental-rebuild
2022-11-01 17:45:31 -05:00
JP Ungaretti
925edf3892
Add long description
2022-11-01 22:35:39 +00:00
JP Ungaretti
66c4e7eca8
Use Log and Error instead of Fatal
2022-11-01 21:45:56 +00:00
JP Ungaretti
647ba727f1
Fix name of mock function
2022-11-01 21:10:58 +00:00