Commit graph

7703 commits

Author SHA1 Message Date
Zach Steindler
658f125ab3
Update sigstore-go in gh CLI to v0.5.1 (#9366)
Signed-off-by: Zach Steindler <steiza@github.com>
2024-07-25 20:59:39 +02:00
Andy Feller
8da9ee2437
Merge pull request #9358 from cli/9338-gh-attestation-can-fail-with-http-401-without-exiting-with-exitcode-4
Slightly clarify when CLI exits with code 4
2024-07-24 11:56:03 -04:00
Hiran Wijesinghe
fd51a69308
Handle --bare clone targets (#9271)
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-07-24 12:35:24 +02:00
William Martin
adc8b82d11
Merge pull request #9355 from cli/wm/9241-fulldatabaseid
Expose fullDatabaseId for PR json export
2024-07-24 07:45:19 +02:00
William Martin
c16becc07e Slightly clarify when CLI will exit with 4 2024-07-23 16:44:49 +02:00
Andy Feller
78c33617cf
Merge pull request #9356 from cli/9278-gh-release-view-with-json-parser-outputs-node_id-instead-of-id
Expose json databaseId field for release commands
2024-07-23 10:06:57 -04:00
Andy Feller
5df84b5019
Merge pull request #9354 from cli/9220-getting-template-not-found-errors-for-gh-pr-create-template=
Clarify usage of template flags for PR and issue creation
2024-07-23 08:45:35 -04:00
William Martin
c13d161271 Export databaseId for releases 2024-07-23 13:41:56 +02:00
William Martin
99ff84bdd9 Alphabetise release json fields 2024-07-23 13:41:56 +02:00
William Martin
13dea3e35d Add test for release view json export fields 2024-07-23 13:41:56 +02:00
William Martin
8a0d361bac Expose fullDatabaseId for PR json export 2024-07-23 13:23:10 +02:00
William Martin
32e499e090 Add examples for template usage in PR and issue creation 2024-07-23 13:14:27 +02:00
William Martin
a4da98d49a
Merge pull request #9352 from cmbuckley/docs-api-patch
Update documentation for gh api PATCH
2024-07-22 21:07:49 +02:00
Chris Buckley
a6a1a58dd8
Update documentation for gh api PATCH 2024-07-22 19:36:20 +01:00
Zach Steindler
a81a1f7e90
Remove attestation test that requires being online (#9340)
Signed-off-by: Zach Steindler <steiza@github.com>
2024-07-19 09:24:47 -04:00
William Martin
d02f58f8d5
Merge pull request #9334 from jessehouwing/patch-1
Remove redundant whitespace
2024-07-18 10:54:08 +02:00
Jesse Houwing
e0c03fc603
Remove redundant whitespace 2024-07-18 10:20:44 +02:00
William Martin
d3d73d9390
Merge pull request #8953 from babakks/8426-add-pr-update-cmd-no-local-update
Add `pr update-branch` command
2024-07-17 20:03:29 +02:00
Babak K. Shandiz
5b918cfdf0
Rename package directory and files
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-17 18:52:23 +01:00
Babak K. Shandiz
5b71586f39
Rename package name to update_branch
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-17 18:50:59 +01:00
Babak K. Shandiz
b584895ad8
Rename gh pr update to gh pr update-branch
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-17 18:50:39 +01:00
Babak K. Shandiz
989152e64f
Add test case for merge conflict error
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 17:33:59 +01:00
Babak K. Shandiz
5d2378dc1d
Handle merge conflict error
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 17:30:48 +01:00
Babak K. Shandiz
497a915a46
Return error if PR is not mergeable
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 15:54:59 +01:00
Babak K. Shandiz
28c72eb5b7
Replace literals with consts for Mergeable field values
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 15:29:11 +01:00
Babak K. Shandiz
feb5aa55b9
Add separate type for PullRequest.Mergeable field
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 15:28:27 +01:00
Babak K. Shandiz
1a6f59820e
Remove unused flag
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 15:05:43 +01:00
Babak K. Shandiz
171e8d33f8
Print message on stdout instead of stderr
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-07-16 15:02:22 +01:00
Babak K. Shandiz
c70479ac5d
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update 2024-07-16 14:57:33 +01:00
Andy Feller
9b7ee3acef
Merge pull request #7193 from notomo/add-issue-create-editor
Add `issue create --editor`
2024-07-15 15:37:11 -04:00
Andy Feller
ae5a71bbe4
Merge branch 'trunk' into add-issue-create-editor 2024-07-15 15:21:03 -04:00
notomo
28cc56cd45 Raise error if editor is used in non-tty mode 2024-07-13 11:01:48 +09:00
William Martin
f44f9a4e15
Merge pull request #9307 from cli/wm/9160-stateReason-panic
Fix panic when calling `gh pr view --json stateReason`
2024-07-12 17:46:45 +02:00
William Martin
940b54c708 Add tests for JSON field support on issue and pr view commands 2024-07-12 17:35:54 +02:00
William Martin
ca1f2a4c48
Merge pull request #9309 from jessehouwing/docs/gh-repo-create-owner
docs: Update documentation for `gh repo create` to clarify owner
2024-07-12 16:10:45 +02:00
William Martin
db733e1ac3
Merge pull request #9305 from cli/dependabot/github_actions/actions/attest-build-provenance-1.3.3
build(deps): bump actions/attest-build-provenance from 1.3.2 to 1.3.3
2024-07-12 14:57:38 +02:00
Jesse Houwing
3b2ba9e1fa
docs: Update documentation for gh repo create to clarify owner 2024-07-12 13:20:43 +02:00
William Martin
172a9de2fe Ensure PR does not panic when stateReason is requested 2024-07-11 16:30:35 +02:00
dependabot[bot]
4511a8b4c4
build(deps): bump actions/attest-build-provenance from 1.3.2 to 1.3.3
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](bdd51370e0...5e9cb68e95)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 14:21:15 +00:00
notomo
0b32e66bba Enable to use --web even though editor is enabled by config 2024-07-09 21:01:51 +09:00
notomo
0d37174076 Add editor hint message 2024-07-09 21:01:50 +09:00
notomo
50d0cb7279 Use prefer_editor_prompt config by issue create 2024-07-09 21:01:50 +09:00
notomo
30b3286533 Add prefer_editor_prompt config 2024-07-09 21:01:50 +09:00
notomo
8f77b4a23f Add issue create --editor 2024-07-09 21:01:50 +09:00
William Martin
0df5596512
Merge pull request #9296 from cchristous/patch-1
fix: indentation in 'gh release create --help'
2024-07-08 10:45:20 +02:00
Corey Christous
9b40e0ca15
Update create.go 2024-07-07 13:57:05 -04:00
Zach Steindler
f972050dc9
gh attestation trusted-root subcommand (#9206)
Adds `trusted-root` subcommand to `gh attestation`.

For use in upcoming docs on how to do offline verification with artifact
attestations.

---------

Signed-off-by: Zach Steindler <steiza@github.com>
Co-authored-by: Fredrik Skogman <kommendorkapten@github.com>
2024-07-01 11:50:39 -04:00
Babak K. Shandiz
a994edda93
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update 2024-06-27 22:36:36 +01:00
William Martin
0f2e1ed9d1
Merge pull request #9250 from cli/dependabot/go_modules/github.com/hashicorp/go-retryablehttp-0.7.7
build(deps): bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7
2024-06-25 18:05:11 +02:00
Andy Feller
c7267039ef
Merge pull request #9256 from cli/9255-gh-variable-list-json-numselectedrepos-provides-different-results-depending-on-tty-or-not
Fetch variable selected repo relationship when required
2024-06-25 12:01:35 -04:00