Commit graph

11281 commits

Author SHA1 Message Date
79fff69b3e
Update AGENTS.md 2026-05-13 15:41:04 +00:00
dependabot[bot]
712826a83e
chore(deps): bump golang.org/x/crypto from 0.50.0 to 0.51.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.50.0 to 0.51.0.
- [Commits](https://github.com/golang/crypto/compare/v0.50.0...v0.51.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.51.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-13 14:19:14 +00:00
William Martin
2b7e776748
Merge pull request #12581 from cli/copilot/update-bump-go-script-resilience
Fix bump-go.sh to tolerate missing toolchain directive
2026-05-13 15:49:10 +02:00
William Martin
e5f5427b97 Simplify bump-go.sh toolchain logic
Address review feedback: always set both go and toolchain
directives via go mod edit, then let go mod tidy normalize.
This eliminates complex conditional toolchain handling.

Additional fixes:
- Add go mod tidy after edits to reconcile dependencies
- Commit go.sum alongside go.mod
- Filter PR search to open PRs only (--state open)
- Use GITHUB_REPOSITORY for repo instead of hardcoding
- Use git diff to detect no-op bumps post-tidy
- Read go.mod state via go mod edit -json instead of grep

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-13 15:29:49 +02:00
copilot-swe-agent[bot]
d2cc91bdd4 Remove unnecessary null checks in jq output handling
The jq -r flag with // "" operator already returns empty string
for null/missing values, never the literal string "null".
The checks for == "null" are unnecessary.

Co-authored-by: babakks <36728931+babakks@users.noreply.github.com>
2026-05-13 14:41:02 +02:00
copilot-swe-agent[bot]
355f507c62 Rewrite script to use go mod edit instead of grep/sed
Replace manual parsing and editing with go mod edit:
- Use 'go mod edit -json' to read current go and toolchain directives
- Use 'go mod edit -go' to update go directive
- Use 'go mod edit -toolchain' to update toolchain directive
- Remove manual sed/grep parsing and .bak file handling
- More reliable and maintainable than custom text manipulation

Co-authored-by: williammartin <1611510+williammartin@users.noreply.github.com>
2026-05-13 14:41:02 +02:00
copilot-swe-agent[bot]
209ef1d3b8 Address code review comments
- Clarify comment to say "matches" instead of "matches or exceeds"
- Update PR body to accurately reflect final go.mod state
- Show actual toolchain if present, or note it's not specified
- Provide clear explanation when toolchain is omitted

Co-authored-by: williammartin <1611510+williammartin@users.noreply.github.com>
2026-05-13 14:41:02 +02:00
copilot-swe-agent[bot]
653ffc23ca Improve version comparison to handle both X.Y.0 and X.Y.Z formats
- Compare major.minor versions instead of exact string match
- Preserve go directive if already at latest major.minor
- Handle cases where go.mod has full patch version (e.g., 1.25.6)
- Update PR body to use actual go directive from modified go.mod
- Add detailed comments explaining version handling logic

Co-authored-by: williammartin <1611510+williammartin@users.noreply.github.com>
2026-05-13 14:41:02 +02:00
copilot-swe-agent[bot]
f5610036b9 Update bump-go.sh to handle missing toolchain directive
- Add early trap setup to avoid exit code issues
- Handle missing toolchain directive gracefully with `|| true`
- Add logic to detect when toolchain is expected to be missing
- Add informative messages about missing toolchain
- Implement smart toolchain handling:
  - Skip toolchain when go version matches latest (redundant)
  - Add toolchain when go version is older than latest
  - Update toolchain when it exists but is outdated

Co-authored-by: williammartin <1611510+williammartin@users.noreply.github.com>
2026-05-13 14:41:02 +02:00
copilot-swe-agent[bot]
8c69492de8 Initial plan 2026-05-13 14:41:02 +02:00
William Martin
1e6bb88c6d
Merge pull request #13353 from adehad/fix/telemetry-windows-console-flash
fix(telemetry): prevent tzutil console flash on Windows
2026-05-13 13:11:09 +02:00
William Martin
b88de96866
Merge pull request #13416 from cli/williammartin-patch-1
Update CODEOWNERS for skills directory ownership
2026-05-13 13:10:56 +02:00
William Martin
83bc3de748
Update CODEOWNERS for skills directory ownership 2026-05-13 12:43:28 +02:00
Babak K. Shandiz
ddf510652e
Merge pull request #13397 from cli/dependabot/go_modules/golang.org/x/text-0.37.0
chore(deps): bump golang.org/x/text from 0.36.0 to 0.37.0
2026-05-12 23:59:25 +01:00
dependabot[bot]
dc5d3927b2
chore(deps): bump golang.org/x/text from 0.36.0 to 0.37.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.36.0 to 0.37.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-12 22:50:45 +00:00
Babak K. Shandiz
b2e6abdea0
Merge pull request #13346 from cli/dependabot/go_modules/google.golang.org/grpc-1.81.0
chore(deps): bump google.golang.org/grpc from 1.80.0 to 1.81.0
2026-05-12 23:49:17 +01:00
dependabot[bot]
6b3421b145
chore(deps): bump google.golang.org/grpc from 1.80.0 to 1.81.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.80.0 to 1.81.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.80.0...v1.81.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.81.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-12 22:40:29 +00:00
Babak K. Shandiz
eeaa3daf34
Merge pull request #13396 from cli/dependabot/go_modules/golang.org/x/term-0.43.0
chore(deps): bump golang.org/x/term from 0.42.0 to 0.43.0
2026-05-12 23:39:06 +01:00
dependabot[bot]
965f63b31a
chore(deps): bump golang.org/x/term from 0.42.0 to 0.43.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.42.0 to 0.43.0.
- [Commits](https://github.com/golang/term/compare/v0.42.0...v0.43.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-12 21:46:30 +00:00
Babak K. Shandiz
30d596f4af
Merge pull request #13381 from cli/dependabot/go_modules/golang.org/x/sys-0.44.0
chore(deps): bump golang.org/x/sys from 0.43.0 to 0.44.0
2026-05-12 22:45:09 +01:00
Babak K. Shandiz
2733bfbc5e
Merge pull request #13126 from sassdawe/patch-1
Update installation commands for GitHub CLI
2026-05-12 20:29:23 +01:00
Babak K. Shandiz
fe996d33ac
Merge pull request #13393 from cli/babakks/improve-gh-copilot-error
fix(copilot): hint to run copilot directly when exec fails
2026-05-12 14:14:02 +01:00
copilot-swe-agent[bot]
24c7b25afd
fix(copilot): update test assertion to match updated error message 2026-05-12 13:04:19 +00:00
Babak K. Shandiz
ae7bd54d43
fix(copilot): provide full path to copilot binary on exec error
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
2026-05-12 12:24:29 +01:00
Babak K. Shandiz
601dd346b0
fix(copilot): hint to run copilot directly when exec fails
When the copilot binary is found in PATH but exec fails (e.g., due to
unusual characters like parentheses in the path on Windows), append a
hint suggesting the user run `copilot` directly without `gh`.

The hint is only shown when the binary was already present on the host,
not when it was freshly downloaded and installed by `gh`.

Closes cli/cli#13106

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 14:32:49 +01:00
adehad
3d9f22c115 fix(telemetry): use CREATE_NO_WINDOW to prevent tzutil console flash on Windows
DETACHED_PROCESS leaves the gh send-telemetry child with no console at
all. When the transitive dependency thlib/go-timezone-local invokes
`tzutil /g` to resolve the local IANA timezone, the console-subsystem
tzutil binary allocates a fresh conhost — producing a visible window
flash on every gh invocation, which accumulates as orphan terminals
under terminal configurations that keep windows open on exit.

CREATE_NO_WINDOW gives the child a non-visible console that descendants
inherit, suppressing the flash. CREATE_NEW_PROCESS_GROUP is preserved
so Ctrl+C still does not propagate to the detached telemetry child.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 08:35:38 +01:00
Babak K. Shandiz
9b505c3fb8
Merge pull request #13383 from cli/kw/triage-fix-ready-for-review
Trigger triage check-requirements on ready_for_review
2026-05-09 08:04:27 +01:00
Kynan Ware
8fb4f3354c Fix triage-pull-requests skipping PRs that open as draft
When a PR is opened as draft and later marked ready for review, the
check-requirements job's if filter excluded the ready_for_review action,
so the screening workflow never ran and unmet-requirements was never
applied. Add ready_for_review to the action filter so screening runs
when a draft PR transitions to requesting review.

Companion fix in desktop/gh-cli-and-desktop-shared-workflows updates the
called workflow's own filters to handle ready_for_review consistently.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-08 11:44:07 -06:00
dependabot[bot]
701492b06b
chore(deps): bump golang.org/x/sys from 0.43.0 to 0.44.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.43.0 to 0.44.0.
- [Commits](https://github.com/golang/sys/compare/v0.43.0...v0.44.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-08 14:03:46 +00:00
Kynan Ware
7cf93e72f2
Merge pull request #13367 from cli/copilot/bump-go-to-1-26-3
Bump Go toolchain to 1.26.3
2026-05-07 18:05:00 -06:00
copilot-swe-agent[bot]
cdda57e360
Bump Go toolchain to 1.26.3
Agent-Logs-Url: https://github.com/cli/cli/sessions/74d21df5-9f54-4a76-97ee-7b2e2d7bd6be

Co-authored-by: BagToad <47394200+BagToad@users.noreply.github.com>
2026-05-07 21:56:04 +00:00
Babak K. Shandiz
b77d79c4e1
Merge pull request #13365 from cli/wm-fix-skills-acceptance-tests
Fix skills acceptance tests
2026-05-07 22:21:54 +01:00
William Martin
f47e459cf5 Fix skills acceptance tests 2026-05-07 20:47:00 +02:00
William Martin
2297f1f2eb
Merge pull request #13325 from scop/chore/actions-attest
Switch from actions/attest-build-provenance to actions/attest
2026-05-07 20:44:56 +02:00
William Martin
b698aa7462
Merge pull request #13305 from pdostal/fix/poll-tty-echo-mode-in-password-tests
Poll TTY echo mode instead of sleeping in password tests
2026-05-07 20:32:56 +02:00
William Martin
a44721d233 Add explicit build tags to platform-specific echo test files
The Go toolchain infers constraints from _darwin/_linux filename suffixes,
but explicit //go:build tags make the constraint visible without relying
on filename conventions, consistent with modern Go style.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 20:20:39 +02:00
Pavel Dostál
9c4184de6f Address review feedback on echo mode polling
- Rename echo_test_{linux,darwin}.go to echo_{linux,darwin}_test.go so
  they are only compiled during tests
- Narrow build tag from !windows to linux || darwin to avoid compile
  failures on other Unix platforms
- Return error from waitForEchoDisabled instead of calling t.Fatal,
  since the function is called from goroutines where FailNow would only
  terminate the calling goroutine
2026-05-07 20:20:39 +02:00
Pavel Dostál
c48bc1a7d1 Poll TTY echo mode instead of sleeping in password tests
Replace the fixed-duration sleep with a polling loop that checks the
actual TTY echo flag before sending password input. This eliminates the
race condition where huh has not yet disabled echo mode, which caused
flaky test failures in slow environments.

Follow-up to #13304.
2026-05-07 20:20:39 +02:00
William Martin
9b457e8aa2
Merge pull request #13328 from cli/dependabot/go_modules/github.com/klauspost/compress-1.18.6
chore(deps): bump github.com/klauspost/compress from 1.18.5 to 1.18.6
2026-05-07 20:09:00 +02:00
William Martin
2bc88628dc
Merge pull request #13363 from cli/wm-accessible-telemetry
Record accessibility feature state in telemetry
2026-05-07 18:48:28 +02:00
William Martin
6176c3eee4
Merge pull request #13362 from cli/wm-copilot-sampling-100
Bump `gh copilot` telemetry sampling to 100%
2026-05-07 18:41:13 +02:00
William Martin
acf2f730c1 Record accessibility state in telemetry
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 17:34:09 +02:00
William Martin
1caa3b7475 Bump copilot telemetry sampling to 100%
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 17:23:45 +02:00
William Martin
3c162a78ef
Merge pull request #13326 from scop/style/grammar
Grammar fixes
2026-05-06 08:53:54 +02:00
Kynan Ware
7c439196c1
Merge pull request #13068 from 333fred/print-refresh-for-401s
Print `gh auth refresh` for 401 returns
2026-05-05 11:43:37 -06:00
Babak K. Shandiz
50d6008f4d
Merge pull request #13327 from cli/wm/fix-pr-view-number-only-optimization
fix(pr): remove numberFieldOnly optimization that skips API validation
2026-05-02 07:53:33 +01:00
dependabot[bot]
6dc432ec47
chore(deps): bump github.com/klauspost/compress from 1.18.5 to 1.18.6
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.18.5 to 1.18.6.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Commits](https://github.com/klauspost/compress/compare/v1.18.5...v1.18.6)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-version: 1.18.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-01 16:42:15 +00:00
William Martin
8ff70e6e7a Remove numberFieldOnly API shortcut
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-01 17:23:01 +02:00
Ville Skyttä
d8b8655f21 Grammar fixes 2026-05-01 10:22:13 +03:00
Ville Skyttä
4ed7002681 Switch from actions/attest-build-provenance to actions/attest
https://github.com/actions/attest-build-provenance#usage

> As of version 4, actions/attest-build-provenance is simply a wrapper
> on top of actions/attest.
>
> Existing applications may continue to use the attest-build-provenance
> action, but new implementations should use actions/attest instead.
2026-05-01 10:16:14 +03:00