gh-setup-git-identity 0.2.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # gh-setup-git-identity
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Test patch release
8
+
9
+ ## 0.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - cead870: Add NPM version badge to README.md to display current package version from npm registry
14
+
15
+ ## 0.2.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 6158223: Update gh auth login command in docs and CLI to use `--git-protocol https --web` flags for improved browser-based authentication flow
20
+
3
21
  ## 0.2.0
4
22
 
5
23
  ### Minor Changes
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  A tool to setup git identity based on current GitHub user.
4
4
 
5
+ [![npm version](https://img.shields.io/npm/v/gh-setup-git-identity)](https://www.npmjs.com/package/gh-setup-git-identity)
5
6
  [![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](http://unlicense.org/)
6
7
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg)](https://nodejs.org/)
7
8
 
@@ -12,7 +13,7 @@ A tool to setup git identity based on current GitHub user.
12
13
  Instead of manually running:
13
14
 
14
15
  ```bash
15
- gh auth login -h github.com -s repo,workflow,user,read:org,gist
16
+ printf "\n" | gh auth login -s repo,workflow,user,read:org,gist --git-protocol https --web
16
17
 
17
18
  USERNAME=$(gh api user --jq '.login')
18
19
  EMAIL=$(gh api user/emails --jq '.[] | select(.primary==true) | .email')
@@ -99,7 +100,7 @@ GitHub CLI is not authenticated.
99
100
 
100
101
  Please run the following command to login:
101
102
 
102
- gh auth login -h github.com -s repo,workflow,user,read:org,gist
103
+ printf "\n" | gh auth login -s repo,workflow,user,read:org,gist --git-protocol https --web
103
104
 
104
105
  After logging in, run gh-setup-git-identity again.
105
106
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gh-setup-git-identity",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "description": "A tool to setup git identity based on current gh user",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/cli.js CHANGED
@@ -71,7 +71,7 @@ async function main() {
71
71
  console.log('');
72
72
  console.log('Please run the following command to login:');
73
73
  console.log('');
74
- console.log(' gh auth login -h github.com -s repo,workflow,user,read:org,gist');
74
+ console.log(' printf "\\n" | gh auth login -s repo,workflow,user,read:org,gist --git-protocol https --web');
75
75
  console.log('');
76
76
  console.log('After logging in, run gh-setup-git-identity again.');
77
77
  process.exit(1);