Releases: link-foundation/gh-setup-git-identity
0.8.0
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.nameoruser.emailwas 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
0.7.1
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
0.7.0
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 successfulgh auth login - CLI also runs
gh auth setup-gitwhen already authenticated to ensure proper configuration - Updated documentation with
gh auth setup-gitinformation 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
0.6.0
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 -sshorhttps(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.) .lenvconfiguration file
The library also exports defaultAuthOptions object with all default values.
Related Pull Request: #23
0.5.0
feat: add --verify option to verify git identity configuration
- Added
--verifyCLI option to run all 3 verification commands at once - Users can now use
gh-setup-git-identity --verifyinstead of running individual commands - Works with
--localflag for local repository configuration - Updated README with verification documentation and code blocks
Related Pull Request: #21
0.4.2
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
0.4.1
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
0.4.0
Make project bun-first and bun-only
- Updated all shebangs from
#!/usr/bin/env nodeto#!/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
0.3.1
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