Commit graph

6193 commits

Author SHA1 Message Date
Mislav Marohnić
7caf7da2da
Merge pull request #6667 from cli/release-galore
More resilient release commands
2022-12-19 15:33:15 +01:00
Nate Smith
59812d429a
Merge pull request #4859 from bchadwic/base-cmd
`gh config base` a way to configure the base repo
2022-12-14 18:36:46 -06: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
Nate Smith
941dc26cc8
Update git/client.go
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-12-14 16:15:37 -08:00
Mislav Marohnić
8cb312a620
Fix release assets upload retry logic
Enables up to 3 retries of uploading a single asset when encountering a network error or a HTTP 5xx error.

Bonus:
- simplifies ConcurrentUpload implementation
- support Go context cancellation
2022-12-14 21:25:09 +01:00
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
Mislav Marohnić
e58bf212fe
Fix API client code docs 2022-12-14 21:22:05 +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
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
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
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
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
Mislav Marohnić
7e67580618
Merge pull request #6727 from cli/dependabot/github_actions/goreleaser/goreleaser-action-4
Bump goreleaser/goreleaser-action from 3 to 4
2022-12-13 15:58:23 +01:00
dependabot[bot]
bc9ea4b941
Bump goreleaser/goreleaser-action from 3 to 4
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-13 14:03:54 +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ć
ee4afb2334
Merge pull request #6723 from cli/go-1.19-upgrade
Upgrade to Go 1.19
2022-12-12 18:54:45 +01:00
Mislav Marohnić
e4f5545e86
Go 1.19: fix comment formatting for moq-generated mocks 2022-12-12 16:58:25 +01:00
Mislav Marohnić
684a4c5c8c
bump golangci-lint 2022-12-12 16:49:19 +01:00
Mislav Marohnić
d273005f40
Merge remote-tracking branch 'origin' into go-1.19-upgrade 2022-12-12 16:48:41 +01:00
Mislav Marohnić
487990bb0c
bump safeexec for 1.19 fix 2022-12-12 16:48: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
Mislav Marohnić
c9c39a66ba
Bump goreleaser 2022-12-12 16:02:54 +01:00
Mislav Marohnić
ba4d50452d
Update to Go 1.19
With this upgrade our codebase adopts the stricter handling of `os/exec` command lookup in it that it doesn't allow shelling out to a command in the current directory.
2022-12-12 15:50:13 +01:00
Max Coplan
f57249f0dd
docs: Update installation instructions for WinGet (#6716)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-12-12 13:38:56 +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
acaebe8a1a export is_bot from issue list 2022-12-08 14:10:29 -08: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
b37e29e643 fix test 2022-12-07 12:18:14 -08:00
vilmibm
84a15d0943 Merge remote-tracking branch 'origin/trunk' into add-more-author-infomation 2022-12-07 11:54:55 -08:00
Nate Smith
a22b7ca41c
Merge pull request #6451 from cli/pr-prompter
use Prompter in pr package
2022-12-05 13:43:44 -06:00
vilmibm
91445d2df3 Merge remote-tracking branch 'origin/trunk' into pr-prompter 2022-12-05 11:27:55 -08:00
Mislav Marohnić
3017168dc3
Merge pull request #6632 from luanzeba/gh_release_verify_tag
Add --verify-tag flag for release creation command
2022-11-28 13:27:48 +01:00
Mislav Marohnić
590dc84a09
Merge pull request #6653 from cli/devcontainer-docs
Document installing GitHub CLI in Codespaces
2022-11-23 13:02:48 +01:00