Commit graph

10636 commits

Author SHA1 Message Date
majiayu000
3f0044fd94 fix: error when --remote flag used with repo argument
When a repository argument is provided to `gh repo fork`, the command
operates independently of the current local repository. Using --remote
in this context is incompatible because there's no local repository to
add the remote to.

This change returns an explicit error when these flags are combined,
providing clear feedback instead of silently ignoring the --remote flag.

Fixes #2722

Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-26 14:43:52 +08:00
Andy Feller
6acf74e04e
Merge pull request #12324 from chrishenzie/nil-ptr-deref
fix: prevent panic when processing null project items
2025-12-22 10:28:20 -05:00
Andy Feller
1117477da2 Add test to ensure null values are skipped 2025-12-22 10:16:21 -05:00
Babak K. Shandiz
baf6299183
Merge pull request #12339 from cli/dependabot/github_actions/actions/attest-build-provenance-3.1.0
chore(deps): bump actions/attest-build-provenance from 3.0.0 to 3.1.0
2025-12-19 19:34:03 +00:00
Babak K. Shandiz
aed52d5ee1
ci: disable create storage record for artifacts
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-19 19:17:44 +00:00
dependabot[bot]
4f5e755c24
chore(deps): bump actions/attest-build-provenance from 3.0.0 to 3.1.0
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](977bb373ed...00014ed6ed)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-19 19:13:50 +00:00
Babak K. Shandiz
146e886761
Merge pull request #12318 from cli/babakks/upgrade-to-goreleaser-v2
ci: upgrade to GoReleaser `v2`
2025-12-19 19:12:19 +00:00
Babak K. Shandiz
b3aae1f868
Merge pull request #12337 from cli/babakks/upgrade-cli-oauth
chore: upgrade to `cli/oauth@v1.2.1`
2025-12-19 13:25:42 +00:00
Babak K. Shandiz
c13b8285b1
chore: run go mod tidy
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-19 11:49:55 +00:00
Babak K. Shandiz
00e44beee5
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-19 11:46:15 +00:00
Babak K. Shandiz
d77eb7f67b
chore: upgrade github.com/cli/oauth to v1.2.1
The new version ships with fixes to handling of `slow_down` errors.

(See https://github.com/cli/oauth/releases/tag/v1.2.1)

Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-19 11:44:25 +00:00
Chris Henzie
4a106c1acf fix: prevent panic when processing null project items
The GraphQL API can return `null` nodes in the `projectItems`
connection, causing a runtime panic (nil pointer dereference) when the
CLI attempted to access fields on these nil nodes. This crash occurs
even with personal access tokens with full read access.

Adds a check to safely skip `nil` nodes in `ProjectsV2ItemsForIssue` and
`ProjectsV2ItemsForPullRequest`.

Signed-off-by: Chris Henzie <chrishenzie@google.com>
2025-12-16 11:14:55 -08:00
Babak K. Shandiz
045afa4fc6
ci: fix binary artficat dirs used in macos job
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:56:38 +00:00
Babak K. Shandiz
dd6783868b
ci: fix binary artifact dir paths used in Windows job
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:56:07 +00:00
Babak K. Shandiz
89c66542b8
ci: upgrade to GoReleaser v2 CLI syntax for --skip
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:55:31 +00:00
Babak K. Shandiz
aeb2c43aed
ci: limit deb/rpm packages to linux build
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:54:38 +00:00
Babak K. Shandiz
536bc9e895
ci: replace archives.format with archives.formats array
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:53:54 +00:00
Babak K. Shandiz
b76ee8d74d
ci: remove redundant archives.rlcp
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:53:26 +00:00
Babak K. Shandiz
5bd0626dc6
ci: replace archives.builds with archives.ids
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:46:23 +00:00
Babak K. Shandiz
c77471a7f4
ci: quote 386 arch
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:45:20 +00:00
Babak K. Shandiz
5b9b012690
ci: upgrade .goreleaser.yml to v2
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:44:57 +00:00
Babak K. Shandiz
a777a95e9a
ci: upgrade to GoReleaser v2
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-15 18:44:25 +00:00
Babak K. Shandiz
51dfeeaa72
Merge pull request #12300 from cli/dependabot/go_modules/golang.org/x/crypto-0.46.0
chore(deps): bump golang.org/x/crypto from 0.45.0 to 0.46.0
2025-12-12 22:22:38 +00:00
Babak K. Shandiz
2894b786e4
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 22:11:22 +00:00
dependabot[bot]
1d2a5873d4
chore(deps): bump golang.org/x/crypto from 0.45.0 to 0.46.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.45.0 to 0.46.0.
- [Commits](https://github.com/golang/crypto/compare/v0.45.0...v0.46.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 16:28:55 +00:00
Babak K. Shandiz
bb0c794c9a
Merge pull request #12302 from cli/dependabot/go_modules/github.com/gdamore/tcell/v2-2.13.4
chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.2 to 2.13.4
2025-12-12 16:26:29 +00:00
Babak K. Shandiz
9526c3d8d3
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 16:12:57 +00:00
dependabot[bot]
d3dc792e93
chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.2 to 2.13.4
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.13.2 to 2.13.4.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv3.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.13.2...v2.13.4)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-version: 2.13.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 14:03:26 +00:00
Babak K. Shandiz
b18776626f
Merge pull request #12252 from cli/dependabot/github_actions/golangci/golangci-lint-action-9.2.0
chore(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0
2025-12-12 12:16:23 +00:00
dependabot[bot]
67559b67a4
chore(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 9.1.0 to 9.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](e7fa5ac41e...1e7e51e771)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: 9.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 12:05:50 +00:00
Babak K. Shandiz
8b5ec86986
Merge pull request #12262 from cli/dependabot/go_modules/github.com/gdamore/tcell/v2-2.13.2
chore(deps): bump github.com/gdamore/tcell/v2 from 2.13.1 to 2.13.2
2025-12-12 12:04:27 +00:00
Babak K. Shandiz
ee64ac6f79
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 11:54:10 +00:00
Babak K. Shandiz
343f6d379d
Merge pull request #12255 from cli/dependabot/go_modules/github.com/spf13/cobra-1.10.2
chore(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2
2025-12-12 11:43:16 +00:00
Babak K. Shandiz
cc8ba92062
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 11:31:56 +00:00
dependabot[bot]
0bbbe3bae8
chore(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.10.1...v1.10.2)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-version: 1.10.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 11:16:24 +00:00
Babak K. Shandiz
32d35c4f7e
Merge pull request #12282 from cli/dependabot/go_modules/golang.org/x/term-0.38.0
chore(deps): bump golang.org/x/term from 0.37.0 to 0.38.0
2025-12-12 11:07:53 +00:00
Babak K. Shandiz
5f5b68f4bc
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 10:55:52 +00:00
dependabot[bot]
833c95718b
chore(deps): bump golang.org/x/term from 0.37.0 to 0.38.0
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/term/compare/v0.37.0...v0.38.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 10:42:21 +00:00
Babak K. Shandiz
f1e4ec8286
Merge pull request #12281 from cli/dependabot/go_modules/golang.org/x/text-0.32.0
chore(deps): bump golang.org/x/text from 0.31.0 to 0.32.0
2025-12-12 10:40:58 +00:00
Babak K. Shandiz
3096289803
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 10:27:46 +00:00
dependabot[bot]
7a05935e34
chore(deps): bump golang.org/x/text from 0.31.0 to 0.32.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.31.0 to 0.32.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.31.0...v0.32.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 10:18:32 +00:00
Babak K. Shandiz
b0f1e1a4de
Merge pull request #12274 from cli/dependabot/go_modules/golang.org/x/sync-0.19.0
chore(deps): bump golang.org/x/sync from 0.18.0 to 0.19.0
2025-12-12 10:16:51 +00:00
Babak K. Shandiz
b3b99959d6
chore: update licenses
Signed-off-by: Babak K. Shandiz <babakks@github.com>
2025-12-12 10:06:23 +00:00
dependabot[bot]
91b5866765
chore(deps): bump golang.org/x/sync from 0.18.0 to 0.19.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/sync/compare/v0.18.0...v0.19.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:59:35 +00:00
Andy Feller
f72929a3bb
Merge pull request #12291 from cli/af/12290-community-debian-stable-url
Fix Debian CLI package link in installation guide
2025-12-11 11:43:56 -05:00
Andy Feller
d994a9cf5e
Fix Debian CLI package link in installation guide
Update the GitHub CLI package link for Debian.
2025-12-11 11:32:27 -05:00
Babak K. Shandiz
adbc7178c1
Merge pull request #12091 from rneatherway/browse-actions
Add gh browse --actions flag
2025-12-11 11:57:10 +00:00
Robin Neatherway
a1fbfba9e1 Add tests of browse --actions 2025-12-11 11:31:12 +00:00
Robin Neatherway
786d276bfb Add gh browse --actions flag 2025-12-11 10:33:01 +00:00
Sam Byng
560ea94fc7 Update licences 2025-12-10 15:58:48 +01:00