Commit graph

9089 commits

Author SHA1 Message Date
William Martin
afa5e744d9
Merge pull request #10491 from cli/kw/update-codespaces-devcontainer
chore: update codespaces Go version
2025-02-24 12:08:13 +01:00
Kynan Ware
1d2fbd5155 chore: update go version in devcontainer
Since `gh` uses Go 1.23, the devcontainer needs to be updated to
allow building `gh` in a fresh codespace.
2025-02-23 18:39:53 +00:00
William Martin
537a22228c
Merge pull request #10479 from latzskim/gh-pr-checkout-with-no-tags
Do not fetch tags on PR checkout.
2025-02-21 13:12:29 +01:00
William Martin
437c52f807 Test pr checkout force on different branch 2025-02-21 13:00:48 +01:00
William Martin
7fa48822e3
Merge pull request #10478 from cli/wm/fix-flaky-tuf-client-race
Allow injection of TUFMetadataDir in tests
2025-02-21 11:58:36 +01:00
latzskim
e331daabce [gh pr checkout] Add --no-tags option to git fetch commands in checkout logic 2025-02-20 19:04:16 +01:00
William Martin
db823c18b8 Allow injection of TUFMetadataDir in tests
This avoids multiple tests using the same dir for metadata, which was causing flakes
2025-02-20 17:04:30 +01:00
William Martin
8365e0b3bb
Merge pull request #10456 from iamazeem/10103-remotes-cache
Fix `remoteResolver` caching issue
2025-02-20 13:27:40 +01:00
William Martin
b61f2efcac Refactor remote resolver caching tests 2025-02-20 13:15:56 +01:00
Azeem Sajid
f236c7efab Fix remoteResolver caching issue 2025-02-20 13:15:23 +01:00
Kynan Ware
ab9f685d0a
Merge pull request #10427 from latzskim/create-if-none
[gh issue/pr comment] Create a comment if no comment already exists
2025-02-19 12:38:15 -07:00
Tyler McGoffin
5aa36de302
Merge pull request #10327 from iamazeem/9897-gh-cache-delete-exit-code
[gh cache delete --all] Add `--succeed-on-no-caches` flag to return exit code 0
2025-02-19 10:34:29 -08:00
latzskim
26414865c4 Address pr comments 2025-02-19 16:56:23 +01:00
William Martin
dbb7de59e1
Merge pull request #10417 from aryanbhosale/trunk
Fix gh project item-edit to allow --number 0 as a valid value
2025-02-19 13:03:24 +01:00
William Martin
94b50caa19 Add test for item-edit --number 0 2025-02-19 12:39:14 +01:00
Aryan Bhosale
bf37ac9a69 Support setting project item number to 0 2025-02-19 12:31:17 +01:00
William Martin
1710f7dace
Merge pull request #10398 from iamazeem/6059-gh-release-create-only-new
[gh release create] Fail when there are no new commits since the last release
2025-02-19 12:13:55 +01:00
Azeem Sajid
8202471910 Wrap error 2025-02-19 16:03:24 +05:00
Azeem Sajid
960017a4f1 Rename flag to --fail-on-no-commits 2025-02-19 15:20:17 +05:00
Azeem Sajid
9389628323 Update tests 2025-02-19 10:31:20 +05:00
Azeem Sajid
db8e81009c Merge branch '9897-gh-cache-delete-exit-code' of github.com:iamazeem/cli into 9897-gh-cache-delete-exit-code 2025-02-19 10:22:53 +05:00
Azeem Sajid
76efb5ac81 Fix non-TTY case 2025-02-19 10:22:31 +05:00
Andy Feller
c69e88ef6b
Merge pull request #10458 from daviddl9/update-pr-create
update default upstream when forking repo during PR creation
2025-02-18 16:24:51 -05:00
Andy Feller
af99c9d495 Suggestions to enhance upstream default handling
This commit brings this code more into alignment with other places:

1. Using a local variable for upstream remote name instead of hardcoding everywhere
2. Raising error raised by setting default remote
3. Removing condition for displaying upstream default message
4. Bring message logic more inline with other places within function
2025-02-18 16:02:50 -05:00
Azeem Sajid
72364562dd Use API REST Client 2025-02-18 21:49:38 +05:00
William Martin
ae2f4b7c5b
Merge pull request #10338 from cli/dependabot/go_modules/github.com/spf13/pflag-1.0.6
Bump github.com/spf13/pflag from 1.0.5 to 1.0.6
2025-02-18 17:06:29 +01:00
William Martin
187a1bbfa8
Merge pull request #10463 from cli/wm/use-subtests-in-attestation-verification-integration
Use subtests in attestation verification integration tests
2025-02-18 16:57:10 +01:00
William Martin
9c90e3aac9 Use subtests in attestation verification integration tests 2025-02-18 16:44:48 +01:00
David
6368d53137
Merge branch 'trunk' into update-pr-create 2025-02-18 16:12:41 +08:00
Kynan Ware
fd376eb6ee
Merge pull request #10445 from iamazeem/fix-typo-in-readme
Fix typo in README
2025-02-17 12:05:48 -07:00
David Livingston
5004ba2b91 update default upstream when forking repo
update default upstream when forking repo

remove unnecessary variable
2025-02-17 11:14:16 +08:00
William Martin
b642da26d0
Merge pull request #10447 from iamazeem/10432-lower-kebab-case-args
Update usage to lower-kebab-case
2025-02-14 18:29:36 +01:00
Azeem Sajid
0fb87903e5 Update usage to lower-kebab-case 2025-02-14 22:12:22 +05:00
Azeem Sajid
d4271d4010 Fix typo in README 2025-02-14 12:42:46 +05:00
Tyler McGoffin
e047d4a611
Merge pull request #10429 from iamazeem/8404-standardize-urls
Standardize URLs
2025-02-13 10:49:18 -08:00
Tyler McGoffin
b4a90c15f9 Add missing <> in gh auth login docs 2025-02-13 10:38:21 -08:00
William Martin
fd6ae5559f
Merge pull request #10439 from cli/attestation-client-race-fix
Add mutex to fix race in attestation test client
2025-02-13 16:30:39 +01:00
Cody Soyland
ad2cfe074f
Add mutex to fix race in attestation test client
Signed-off-by: Cody Soyland <codysoyland@github.com>
2025-02-13 10:18:30 -05:00
William Martin
556e72fc6a
Merge pull request #10430 from iamazeem/remove-trailing-whitespace
Remove trailing whitespace
2025-02-13 16:00:20 +01:00
Azeem Sajid
f9428e7905 Update tests 2025-02-13 11:09:57 +05:00
Azeem Sajid
8b7fb231ec Remove trailing whitespace 2025-02-13 11:06:27 +05:00
Azeem Sajid
026f64ce6f Standardize URLs 2025-02-13 10:41:53 +05:00
latzskim
e516e5ed5d [gh issue/pr comment] Create a comment if no comment already 2025-02-12 21:04:22 +01:00
Andy Feller
cdb44f8298
Merge pull request #10334 from iamazeem/9132-gh-repo-view-set-default
[gh repo view] Improve error message for forked repo
2025-02-12 09:55:13 -05:00
Fredrik Skogman
6899fe21dd
Merge pull request #10421 from cli/exit1-wrong-predicate-type
Exit with error if no matching predicate type exists
2025-02-11 15:31:07 +01:00
Fredrik Skogman
bf3a40aef3
Exit with error if no matching predicate type exists
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
2025-02-11 09:07:51 +01:00
Azeem Sajid
eb44ec2d86 Update tests 2025-02-11 10:34:10 +05:00
Azeem Sajid
cdc7cae29c Address review comments 2025-02-11 09:35:16 +05:00
Andy Feller
81eeaca959 Align no default repo message with other uses 2025-02-10 17:24:43 -05:00
Azeem Sajid
49fd7a5756 [gh release create] Fail when there are no new commits since the most recent release 2025-02-08 18:20:43 +05:00