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 +18 -0
- package/README.md +3 -2
- package/package.json +1 -1
- package/src/cli.js +1 -1
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
|
+
[](https://www.npmjs.com/package/gh-setup-git-identity)
|
|
5
6
|
[](http://unlicense.org/)
|
|
6
7
|
[](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 -
|
|
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 -
|
|
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
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 -
|
|
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);
|