Skip to content

Releases: cli/go-gh

v2.12.0

25 Mar 14:28
61bf393
Compare
Choose a tag to compare

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:

Screenshot of Mac Terminal preferences, highlighting ANSI color wells

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:

  1. Set GH_ACCESSIBLE_COLORS environment variable to a truthy value

    export GH_ACCESSIBLE_COLORS=1
  2. Set accessible_colors configuration setting

    gh 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

New Contributors

Full Changelog: v2.11.2...v2.12.0

v2.11.2

06 Jan 19:20
13104ed
Compare
Choose a tag to compare

What's Changed

  • Bump golang.org/x/net to resolve Dependabot alerts by @BagToad in #176

New Contributors

Full Changelog: v2.11.1...v2.11.2

v2.11.1

27 Nov 20:51
65bd8d7
Compare
Choose a tag to compare

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

14 Oct 20:45
7177035
Compare
Choose a tag to compare

What's Changed

  • Replace duplicated IsEnterprise and IsTenancy functions in api pkg with auth pkg by @jtmcg in #173

New Contributors

Full Changelog: v2.10.0...v2.11.0

v2.10.0

16 Sep 11:57
267e1ca
Compare
Choose a tag to compare

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

29 Apr 18:10
dbd982e
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.8.0...v2.9.0

v2.8.0

03 Apr 15:10
ecc5db7
Compare
Choose a tag to compare

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

28 Mar 20:43
288843f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.6.0...v2.7.0

v2.6.0

04 Mar 14:56
45fa8a4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.0...v2.6.0

v2.5.0

31 Jan 13:19
d88d88f
Compare
Choose a tag to compare

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

Full Changelog: v2.4.0...v2.5.0