Skip to content

Latest commit

 

History

History
170 lines (104 loc) · 6.24 KB

File metadata and controls

170 lines (104 loc) · 6.24 KB

gh-setup-git-identity

0.8.0

Minor Changes

  • 0171f4e: 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.

0.7.1

Patch Changes

  • 469bcb7: 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

0.7.0

Minor Changes

  • 42cf449: 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

0.6.0

Minor Changes

  • 1094f06: 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.

0.5.0

Minor Changes

  • 071e6d3: 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

0.4.2

Patch Changes

  • 72d4185: 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

0.4.1

Patch Changes

  • 43e1c63: 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

0.4.0

Minor Changes

  • bda1ef5: 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)

0.3.1

Patch Changes

  • 51dceeb: 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.

0.3.0

Minor Changes

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

0.2.3

Patch Changes

  • Test patch release

0.2.2

Patch Changes

  • cead870: Add NPM version badge to README.md to display current package version from npm registry

0.2.1

Patch Changes

  • 6158223: Update gh auth login command in docs and CLI to use --git-protocol https --web flags for improved browser-based authentication flow

0.2.0

Minor Changes

  • b8ecb63: Update CI/CD pipeline and testing framework to match test-anywhere patterns

    • Consolidate GitHub Actions workflow into single release.yml file
    • Add unified test matrix for Node.js, Bun, and Deno across Ubuntu, macOS, and Windows
    • Add Node.js scripts for release automation (validate-changeset, version-and-commit, publish-to-npm, etc.)
    • Add support for manual releases via workflow_dispatch (instant and changeset-pr modes)
    • Add npm OIDC trusted publishing support
    • Add GitHub release formatting with shields.io badges and PR links
    • Update changeset configuration to use @changesets/cli/changelog
    • Add changeset:status script for checking changeset status