Skip to content

Releases: link-foundation/gh-setup-git-identity

0.8.0

16 Jan 11:31

Choose a tag to compare

Add --repair and --no-auto-login CLI options

New Features

--repair option

Repair git identity configuration without triggering the login flow. This is useful when:

  • Git operations fail with "empty ident name not allowed" error
  • The user.name or user.email was accidentally cleared or corrupted
  • You want to reconfigure git identity without going through login again

The --repair option requires existing GitHub CLI authentication.

--no-auto-login option

Disable automatic login if not authenticated. Instead of starting the interactive login process, the tool will exit with an error and show manual authentication instructions.

This is useful in scripts or automated environments where you want to fail fast rather than wait for an interactive login prompt.

Related Pull Request: #29


npm version

0.7.1

28 Dec 21:44

Choose a tag to compare

Add case study documentation and multi-environment usage warning for GitHub OAuth token limits

  • Add comprehensive case study for OAuth token invalidation issue (#26)
  • Update README.md with multi-environment usage section documenting the 10-token limit
  • Add CLI warning when OAuth device flow authentication is triggered

Related Pull Request: #27


npm version

0.7.0

28 Dec 07:26

Choose a tag to compare

Add support for gh auth setup-git command

  • Added new runGhAuthSetupGit() function to configure git to use GitHub CLI as credential helper
  • CLI now automatically runs gh auth setup-git -h <hostname> after successful gh auth login
  • CLI also runs gh auth setup-git when already authenticated to ensure proper configuration
  • Updated documentation with gh auth setup-git information and API reference

This fixes the "could not read Username for 'https://github.com': No such device or address" error that occurs when git operations are attempted without the credential helper being configured.

Fixes #24

Related Pull Request: #25


npm version

0.6.0

27 Dec 17:14

Choose a tag to compare

feat: fully configurable support of gh auth login

Added configurable options for GitHub authentication that mirror all gh auth login flags:

  • --hostname: GitHub hostname (default: github.com) - enables GitHub Enterprise support
  • --scopes / -s: Authentication scopes (default: repo,workflow,user,read:org,gist)
  • --git-protocol / -p: Git protocol - ssh or https (default: https)
  • --web / -w: Open browser to authenticate (default: true)
  • --with-token: Read token from stdin for non-interactive authentication
  • --skip-ssh-key: Skip SSH key generation/upload prompt
  • --insecure-storage: Store credentials in plain text instead of credential store
  • --clipboard: Copy OAuth code to clipboard

These options can be configured via:

  • CLI flags
  • Environment variables (GH_AUTH_HOSTNAME, GH_AUTH_SCOPES, etc.)
  • .lenv configuration file

The library also exports defaultAuthOptions object with all default values.

Related Pull Request: #23


npm version

0.5.0

27 Dec 13:23

Choose a tag to compare

feat: add --verify option to verify git identity configuration

  • Added --verify CLI option to run all 3 verification commands at once
  • Users can now use gh-setup-git-identity --verify instead of running individual commands
  • Works with --local flag for local repository configuration
  • Updated README with verification documentation and code blocks

Related Pull Request: #21


npm version

0.4.2

27 Dec 13:10

Choose a tag to compare

Improve output formatting with better organization and verification commands

  • Added blank lines between major sections for better visual grouping
  • Applied consistent indentation (2 spaces) to detail lines under section headers
  • Added helpful verification commands suggestion at the end of output
  • Updated README.md to reflect the new output format
  • Makes output more readable and professional while providing actionable next steps

Related Pull Request: #19


npm version

0.4.1

27 Dec 12:46

Choose a tag to compare

Reduce excessive blank lines in console output

  • Removed unnecessary blank lines in CLI output to make it more concise
  • Improved readability by minimizing spacing while maintaining logical separation
  • Fixed issue where authentication and configuration messages had too much whitespace

Related Pull Request: #17


npm version

0.4.0

27 Dec 12:30

Choose a tag to compare

Make project bun-first and bun-only

  • Updated all shebangs from #!/usr/bin/env node to #!/usr/bin/env bun
  • Replaced npm commands with bun in package.json scripts
  • Updated README.md to recommend bun installation and usage
  • Modified GitHub Actions workflows to use bun instead of node
  • Changed package.json engines from node to bun
  • Simplified test matrix to only use bun (removed node and deno)

Related Pull Request: #15


npm version

0.3.1

27 Dec 11:55

Choose a tag to compare

Fix release notes formatting to support Major and Minor changes

Previously, the format-release-notes.mjs script only looked for "### Patch Changes" sections in release notes. This caused releases with Minor or Major changes (like v0.3.0) to not be properly formatted with PR links and npm badges.

Updated the regex pattern to handle all three change types (Major, Minor, and Patch), matching the release template from test-anywhere repository.

Related Pull Request: #13


npm version

0.3.0

27 Dec 11:32

Choose a tag to compare

Minor Changes

  • 8c146cc: Automatically run gh auth login when GitHub CLI is not authenticated, enabling single-command setup instead of requiring manual login first