Releases: cli/go-gh
v2.12.0
Introducing experimental support for rendering markdown with customizable, accessible colors
Users with low vision or color blindness rely upon the terminal's ability to change how colors appear, however this requires CLIs to use a limited set of colors:

The markdown rendered for GitHub CLI and extensions defaults to 8-bit colors that users cannot easily customize in this way.
Now, users can force rendered markdown to use customizable, accessible colors by doing one of the following:
-
Set
GH_ACCESSIBLE_COLORS
environment variable to a truthy valueexport GH_ACCESSIBLE_COLORS=1
-
Set
accessible_colors
configuration settinggh config set accessible_colors enabled
Experimental.accessible.markdown.colors.mp4
Users with a customcharmbracelet/glamour
style will continue to have markdown rendered using it.
For more information, see #186
Introducing new experimental github.com/cli/go-gh/v2/pkg/x
package
cli/go-gh
provides capabilities used by both the GitHub CLI and CLI extensions. Some of these packages are stable, however some like the new experimental markdown support are not.
The github.com/cli/go-gh/v2/pkg/x
package has been created to contain experimental features that are subject to change without notice.
Introducing new string matcher functions for Go templates
The following string matcher functions from Masterminds/sprig have been incorporated for more robust Go template support in GitHub CLI and CLI extensions:
For more information, see cli/cli#6370 and sprig documentation
What's Changed
✨ Features
- Integrate sprig library by @iamazeem in #184
- Introduce experimental accessible colors in markdown rendering by @andyfeller in #186
New Contributors
Full Changelog: v2.11.2...v2.12.0
v2.11.2
v2.11.1
Security
-
A security vulnerability has been identified in go-gh that could leak authentication tokens intended for GitHub hosts to non-GitHub hosts when within a codespace.
For more information, see GHSA-55v3-xh23-96gh
Full Changelog: v2.11.0...v2.11.1
v2.11.0
v2.10.0
What's Changed
- Use api subdomain for REST and GQL clients when host is tenant by @williammartin in #172
Full Changelog: v2.9.0...v2.10.0
v2.9.0
What's Changed
- Allow reuse of host checks for extension authors by @andyfeller in #152
- Use
lipgloss.Width
to calculateDisplayWidth
by @maaslalani in #159
New Contributors
- @andyfeller made their first contribution in #152
- @maaslalani made their first contribution in #159
Full Changelog: v2.8.0...v2.9.0
v2.8.0
What's Changed
- jq: bump up gojq, better query parse error, handle halt error gracefully by @itchyny in #155
- Bump glamour to v0.7.0 and go mod tidy by @williammartin in #156
Full Changelog: v2.7.0...v2.8.0
v2.7.0
What's Changed
- Attempt to use user configured dirs for caching by @williammartin in #153
Full Changelog: v2.6.0...v2.7.0
v2.6.0
What's Changed
- Treat tenancy as non enterprise by @williammartin in #151
Full Changelog: v2.5.0...v2.6.0
v2.5.0
What's Changed
- Add header support to tableprinter by @heaths in #139
- Remove default configuration and add fallback configuration by @samcoe in #142
- Add support to config for setting and writing blank values by @samcoe in #143
- Fix sanitization bug by @samcoe in #145
- Config should load as unmodified by @williammartin in #147
New Contributors
- @williammartin made their first contribution in #147
Full Changelog: v2.4.0...v2.5.0