Commit graph

9839 commits

Author SHA1 Message Date
cli automation
228fbe31dc Bump Go to 1.24.5 2025-07-09 17:58:34 +02:00
Andy Feller
0e27e84084
Merge pull request #11257 from cli/andyfeller/fix-goreleaser-windows-rsyso
Ensure GoReleaser does not break on Mac OS and Linux when skipping Windows `.rsyso` generation script
2025-07-09 10:16:18 -04:00
Andy Feller
c82f02b5bc Quote Windows rsyso script global hook 2025-07-09 08:57:08 -04:00
Kynan Ware
c93136b5f0
Merge pull request #11234 from cli/babakks/pr-merge-handle-404
Handle `HTTP 404` when deleting remote branch in `pr merge`
2025-07-08 07:02:11 -06:00
Andy Feller
28c3424fde
Merge pull request #11244 from cli/babakks/fix-query-mutation-during-pagination
Fix query object state mutation during pagination
2025-07-07 14:23:16 -04:00
Babak K. Shandiz
e7f8bc89df
test(search): verify URL returns quoted query
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-07 15:45:32 +01:00
Babak K. Shandiz
d395172899
test(search): test pagination with multi-word quoted queries
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-07 15:44:56 +01:00
Babak K. Shandiz
81a1ce601c
fix(search): fix mutating query state fields
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-07 15:42:19 +01:00
William Martin
df5e6d92a6
Merge pull request #11237 from cli/wm/add-setup-go-to-bump-go
Add setup-go to bump-go workflow
2025-07-06 07:17:57 +02:00
William Martin
9f18c7dbe9 Add setup-go to bump-go
Ideally, this will ensure that we have an up to date version when we run
go mod tidy.
2025-07-06 07:04:14 +02:00
Andy Feller
d0337704df
Merge pull request #11060 from cli/andyfeller/cli-primer-prototype
Reinstating Primer Style CLI content within `cli/cli` repository
2025-07-05 15:02:16 -04:00
Andy Feller
89f15e9d69 Update contribution design link 2025-07-05 14:53:09 -04:00
Babak K. Shandiz
3e946a356c
test(pr merge): always assert stderr
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-05 15:02:41 +01:00
Babak K. Shandiz
b1e1c8d500
test(pr merge): verify deleteRemoteBranch behaviour when API returns error
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-05 14:54:33 +01:00
Babak K. Shandiz
bafefb345e
fix(pr merge): ignore 404 as error when deleting remote branch
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-05 14:54:28 +01:00
William Martin
1cbfbf8eef
Merge pull request #11233 from cli/wm/bump-go-has-token
Inject token into bump-go workflow
2025-07-05 13:27:27 +02:00
William Martin
00cb1efe83 Ensure go mod tidy is run in bump-go
This is because go mod tidy seems to add minor version to the go mod
directive when it is missing.
2025-07-05 13:17:00 +02:00
William Martin
e29723d0f3 Inject token into bump-go workflow 2025-07-05 12:07:53 +02:00
Babak K. Shandiz
5ac184606f
Merge pull request #11172 from cli/babakks/use-job-run-log-api
Use Actions API to retrieve job run logs as a fallback mechanism
2025-07-04 16:34:47 +01:00
William Martin
7eef7af23d Reformat gh run view help 2025-07-04 17:25:59 +02:00
Babak K. Shandiz
0d8d330eb1
docs(run view): explain restrictions of fallback API calls
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-04 16:20:08 +01:00
Babak K. Shandiz
25ecbed620
test(run view): delete unused ZIP archive
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-04 14:13:08 +01:00
Babak K. Shandiz
53cf65e186
refactor(run view): remove Log field from DTO types
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-04 14:12:34 +01:00
Babak K. Shandiz
555b8f1bf9
test(run view): update tests
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-04 14:12:07 +01:00
Babak K. Shandiz
6d65904fee
refactor(run view): use API as fallback to fetch job logs
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-04 14:11:09 +01:00
Babak K. Shandiz
e0c7a328d2
test: add BinaryResponse helper function
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-04 14:09:09 +01:00
William Martin
0037f90f47
Merge pull request #11229 from cli/wm/fix-bump-go-git
Ensure bump go script has git user configured
2025-07-04 14:57:46 +02:00
William Martin
12b9865a90 Ensure bump go script has git user configured 2025-07-04 14:41:22 +02:00
William Martin
f5134c48c0
Merge pull request #11216 from tklauser/docs-install-linux-apt
docs: consistently use `apt` in installation instructions
2025-07-03 17:25:05 +02:00
William Martin
d64172256a
Merge pull request #11217 from cli/9808-gh-secret-set-using-selected-visibility-requires-a-list-of-repositories-its-optional-in-the-apibrowser
Support `--no-repos-selected` on `gh secret set`
2025-07-03 17:23:58 +02:00
William Martin
502b64582d Support --no-repos-selected on secret set 2025-07-03 17:02:28 +02:00
Tobias Klauser
fbb749613a docs: consistently use apt in installation instructions
Don't mix apt and apt-get, consistently use apt.
2025-07-03 15:16:07 +02:00
William Martin
5450b7f0ba
Merge pull request #11213 from cli/11207-consume-dependabot-minor-upgrades
Consume dependabot minor versions for go modules
2025-07-03 13:37:46 +02:00
William Martin
498ad84fcd Consume dependabot minor versions for go modules 2025-07-03 12:14:44 +02:00
William Martin
329dfa8ee7
Merge pull request #11205 from cli/wm/bump-dev-tunnels
Update microsoft dev-tunnels to v0.1.13
2025-07-03 12:08:40 +02:00
Babak K. Shandiz
3680a1fb22
Merge pull request #11192 from cli/babakks/decouple-arg-parsing-from-pr-finder
Decouple arg parsing from PR finder
2025-07-03 11:02:55 +01:00
Babak K. Shandiz
8ab5e84a12
test: add test for ParseURL
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-03 10:21:55 +01:00
William Martin
ad089d48d9 Update microsoft dev-tunnels to v0.1.13
https://github.com/microsoft/dev-tunnels/pull/322 introduced a few
breaking changes:
 * Port Tags were renamed to Labels
 * Client construction must now provide an API version (of which there is only one)
 * The /api/v1 prefix was dropped from request paths
 * TunnelPortListResponses may now be paginated (but we don't support that)
 * Requests to create a port with a changed protocol began erroring
2025-07-02 16:38:07 +02:00
William Martin
4c47bad604
Merge pull request #11203 from cli/wm/bump-deps
Bump all dependencies except dev-tunnels
2025-07-02 16:35:14 +02:00
William Martin
96956da8de Bump all dependencies except dev-tunnels 2025-07-02 14:56:58 +02:00
William Martin
2b84a3d698
Merge pull request #11194 from Stefan-Heimersheim/patch-1
Fix inconsistent use of tabs and spaces
2025-07-01 13:05:36 +02:00
Stefan Heimersheim
e062330163
Fix inconsistent use of tabs and spaces
The code below used spaces to indent two of the lines, and tabs for the other 6 lines. This makes indenting inconsistent in settings where tabs are not rendered as 8 spaces. I've replaced the spaces with tabs.

```
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
	&& sudo mkdir -p -m 755 /etc/apt/keyrings \
        && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
        && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
	&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
	&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \
	&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
	&& sudo apt update \
	&& sudo apt install gh -y
```
2025-07-01 11:43:04 +01:00
Babak K. Shandiz
b7fa5ea7a9
docs: explain PR URL parsing reason
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:41:07 +01:00
Babak K. Shandiz
dc51226ce2
test: improve test case to highlight host name override
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:21:24 +01:00
William Martin
c58a88a217
Merge pull request #11189 from cli/wm/automate-go-bump
Add workflow to automate go version bumping
2025-07-01 12:21:01 +02:00
Babak K. Shandiz
58ed691a6c
test: remove references to AssignedActorsUsed field
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:19:13 +01:00
Babak K. Shandiz
2c86246a1a
test: verify providing a URL arg affects the base repo
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:18:38 +01:00
Babak K. Shandiz
b85dc94f84
refactor: select PR fields based on detected features
This change is almost a revert to what had already done in #10984.

Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:14:50 +01:00
Babak K. Shandiz
f65683784e
test: remove tests verifying assigne-related behaviour
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:12:58 +01:00
Babak K. Shandiz
12f4794151
fix: remove assignee-related intervention
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-07-01 11:12:16 +01:00