William Martin
13dea3e35d
Add test for release view json export fields
2024-07-23 13:41:56 +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
Jesse Houwing
e0c03fc603
Remove redundant whitespace
2024-07-18 10:20:44 +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
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
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
Jesse Houwing
3b2ba9e1fa
docs: Update documentation for gh repo create to clarify owner
2024-07-12 13:20:43 +02: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
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
d4e33858ef
Fetch variable selected repo relationship when required
2024-06-25 17:11:56 +02:00
William Martin
812889f390
Merge pull request #9128 from babakks/9118-add-json-fields-to-variable-get
...
Add `--json` option to `variable get` command
2024-06-25 15:30:49 +02:00
Phill MV
c9f9fac7dc
Update pkg/cmd/attestation/verify/verify.go
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-06-24 13:33:10 -04:00
Phill MV
c25dacc33e
Update pkg/cmd/attestation/verify/verify.go
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-06-24 13:32:51 -04:00
Phill MV
06607d3e95
s/originated/caller/ workflow
2024-06-24 10:05:58 -04:00
William Martin
d7c56bfb13
Remove beta note from attestation top level command
2024-06-24 15:46:00 +02:00
William Martin
846b6ec20b
Fix whitespacing
2024-06-24 15:41:22 +02:00
Phill MV
8318e7a1de
Actually, let's keep download in beta for now.
2024-06-24 09:32:32 -04:00
Phill MV
40abc9a785
Removed beta note from gh at download.
2024-06-23 21:54:01 -04:00
Phill MV
152607e0e8
Removed beta note from gh at verify, clarified reusable workflows use case.
2024-06-23 21:53:09 -04:00
Babak K. Shandiz
f8e1271132
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update
2024-06-16 14:01:29 +01:00
Forrin
c572383bda
Attestation Verification - Buffer Fix ( #9198 )
...
* swap scanner to readline for attestations
* replace readLine with readBytes
2024-06-14 13:55:58 -04:00
Andy Feller
5e7ba54b56
Merge pull request #9162 from joshuajtward/chore/GH-9038
...
feat: add `-a` flag to `gh run list`
2024-06-13 11:40:08 -04:00
Andy Feller
6190e269a0
Add gh run list tests for workflow selector
...
This commit adds tests to ensure disabled workflows are outputted as expected when called by name and the appropriate flags.
2024-06-13 11:30:38 -04:00
Wing
f647131e1d
Gracefully degrade when fetching annotations fails due to 403 ( #9113 )
...
Co-authored-by: William Martin <williammartin@github.com>
2024-06-13 14:33:06 +02:00
Josh Ward
c2f2753051
add comment to call out potentially brittle use of workflowShared
2024-06-13 09:24:18 +01:00
Babak K. Shandiz
8ac5ad7244
Merge branch 'trunk' into 8426-add-pr-update-cmd-no-local-update
2024-06-07 15:40:28 +01:00
Phill MV
e8a13cfed3
replaced deprecated --json-result flag with --format=json in the gh at docstring.
2024-06-04 15:52:54 -04:00
Josh Ward
a10e532898
feat: add -a flag to gh run list
2024-06-03 09:53:34 +01:00
Meredith Lancaster
cd5562f5ac
Add signer-repo and signer-workflow flags to gh attestation verify ( #9137 )
...
* add signer-repo and signer-workflow flags
Signed-off-by: Meredith Lancaster <malancas@github.com>
* add check for SignerRepo option
Signed-off-by: Meredith Lancaster <malancas@github.com>
* add helper function and comment for clarity
Signed-off-by: Meredith Lancaster <malancas@github.com>
* update flag comment
Signed-off-by: Meredith Lancaster <malancas@github.com>
* reference correct field
Signed-off-by: Meredith Lancaster <malancas@github.com>
* move function to more relevant file
Signed-off-by: Meredith Lancaster <malancas@github.com>
* Update pkg/cmd/attestation/verify/verify.go
Co-authored-by: Zach Steindler <steiza@github.com>
* Update pkg/cmd/attestation/verify/verify.go
Co-authored-by: Zach Steindler <steiza@github.com>
* make all reusable workflow flags mutually exclusive
Signed-off-by: Meredith Lancaster <malancas@github.com>
* accept signer workflow without host
Signed-off-by: Meredith Lancaster <malancas@github.com>
* support client optionally providing host with signer workflow flag
Signed-off-by: Meredith Lancaster <malancas@github.com>
* comment
Signed-off-by: Meredith Lancaster <malancas@github.com>
* add tests for parsing signer workflow
Signed-off-by: Meredith Lancaster <malancas@github.com>
---------
Signed-off-by: Meredith Lancaster <malancas@github.com>
Co-authored-by: Zach Steindler <steiza@github.com>
2024-05-30 07:40:55 -06:00
Meredith Lancaster
8d0518645f
Add integration tests for gh attestation verify shared workflow use case ( #9107 )
...
* add initial shared workflow use case tests and test data
Signed-off-by: Meredith Lancaster <malancas@github.com>
* add more shared workflow tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
* cleanup tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
* pr feedback, replace shared with reusable
Signed-off-by: Meredith Lancaster <malancas@github.com>
* use demo repository with reusable workflow tests
Signed-off-by: Meredith Lancaster <malancas@github.com>
---------
Signed-off-by: Meredith Lancaster <malancas@github.com>
2024-05-28 07:13:34 -06:00
Babak K. Shandiz
4aa6f8f2f3
Add createdAt field to tests
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-26 00:06:25 +01:00
Babak K. Shandiz
94dff4de04
Add createdAt field to Variable type
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-26 00:05:04 +01:00