glab-setup-git-identity 0.6.0
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/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/.github/workflows/release.yml +372 -0
- package/.husky/pre-commit +1 -0
- package/.jscpd.json +20 -0
- package/.prettierignore +7 -0
- package/.prettierrc +10 -0
- package/CHANGELOG.md +143 -0
- package/LICENSE +24 -0
- package/README.md +455 -0
- package/bunfig.toml +3 -0
- package/deno.json +7 -0
- package/docs/case-studies/issue-13/README.md +195 -0
- package/docs/case-studies/issue-13/hive-mind-issue-960.json +23 -0
- package/docs/case-studies/issue-13/hive-mind-pr-961-diff.txt +773 -0
- package/docs/case-studies/issue-13/hive-mind-pr-961.json +126 -0
- package/docs/case-studies/issue-21/README.md +384 -0
- package/docs/case-studies/issue-21/ci-logs/run-20803315337.txt +1188 -0
- package/docs/case-studies/issue-21/ci-logs/run-20885464993.txt +1310 -0
- package/docs/case-studies/issue-21/issue-111-data.txt +15 -0
- package/docs/case-studies/issue-21/issue-113-data.txt +15 -0
- package/docs/case-studies/issue-21/pr-112-data.json +109 -0
- package/docs/case-studies/issue-21/pr-112-diff.patch +1336 -0
- package/docs/case-studies/issue-21/pr-114-data.json +126 -0
- package/docs/case-studies/issue-21/pr-114-diff.patch +879 -0
- package/docs/case-studies/issue-3/README.md +338 -0
- package/docs/case-studies/issue-3/created-issues.md +32 -0
- package/docs/case-studies/issue-3/issue-data.json +29 -0
- package/docs/case-studies/issue-3/original-format-release-notes.mjs +212 -0
- package/docs/case-studies/issue-3/reference-pr-59-diff.txt +614 -0
- package/docs/case-studies/issue-3/reference-pr-59.json +109 -0
- package/docs/case-studies/issue-3/release-v0.1.0.json +9 -0
- package/docs/case-studies/issue-3/repositories-with-same-script.json +22 -0
- package/docs/case-studies/issue-3/research-notes.md +33 -0
- package/docs/case-studies/issue-7/BEST-PRACTICES-COMPARISON.md +334 -0
- package/docs/case-studies/issue-7/FORMATTER-COMPARISON.md +649 -0
- package/docs/case-studies/issue-7/current-repository-analysis.json +70 -0
- package/docs/case-studies/issue-7/effect-template-analysis.json +178 -0
- package/eslint.config.js +91 -0
- package/examples/basic-usage.js +64 -0
- package/experiments/test-changeset-scripts.mjs +303 -0
- package/experiments/test-failure-detection.mjs +143 -0
- package/experiments/test-format-major-changes.mjs +49 -0
- package/experiments/test-format-minor-changes.mjs +52 -0
- package/experiments/test-format-no-hash.mjs +43 -0
- package/experiments/test-format-patch-changes.mjs +46 -0
- package/package.json +80 -0
- package/scripts/changeset-version.mjs +75 -0
- package/scripts/check-changesets.mjs +67 -0
- package/scripts/check-version.mjs +129 -0
- package/scripts/create-github-release.mjs +93 -0
- package/scripts/create-manual-changeset.mjs +89 -0
- package/scripts/detect-code-changes.mjs +194 -0
- package/scripts/format-github-release.mjs +83 -0
- package/scripts/format-release-notes.mjs +219 -0
- package/scripts/instant-version-bump.mjs +172 -0
- package/scripts/js-paths.mjs +177 -0
- package/scripts/merge-changesets.mjs +263 -0
- package/scripts/publish-to-npm.mjs +302 -0
- package/scripts/setup-npm.mjs +37 -0
- package/scripts/validate-changeset.mjs +265 -0
- package/scripts/version-and-commit.mjs +284 -0
- package/src/cli.js +386 -0
- package/src/index.d.ts +255 -0
- package/src/index.js +563 -0
- package/tests/index.test.js +137 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"additions": 615,
|
|
3
|
+
"author": {
|
|
4
|
+
"id": "MDQ6VXNlcjE0MzE5MDQ=",
|
|
5
|
+
"is_bot": false,
|
|
6
|
+
"login": "konard",
|
|
7
|
+
"name": "Konstantin Diachenko"
|
|
8
|
+
},
|
|
9
|
+
"body": "## Summary\n\nThis PR enhances the release scripts to support both single-language and multi-language repository structures by adding automatic package root detection.\n\n**New utility modules:**\n- `scripts/js-paths.mjs` - JavaScript package root detection\n- `scripts/rust-paths.mjs` - Rust package root detection\n\n**Updated scripts:**\n- `scripts/version-and-commit.mjs`\n- `scripts/instant-version-bump.mjs`\n- `scripts/publish-to-npm.mjs`\n- `scripts/rust-version-and-commit.mjs`\n- `scripts/rust-collect-changelog.mjs`\n- `scripts/rust-get-bump-type.mjs`\n\n## How It Works\n\nThe utilities automatically detect the package root:\n\n1. **Single-language repository**: Check for `./package.json` or `./Cargo.toml` in root\n2. **Multi-language repository**: Check for `./js/package.json` or `./rust/Cargo.toml`\n3. If neither exists, throw an error with helpful suggestions\n\n### Configuration Options\n\nScripts support explicit configuration via:\n- CLI arguments: `--js-root <path>` or `--rust-root <path>`\n- Environment variables: `JS_ROOT` or `RUST_ROOT`\n\n### Example Usage\n\n```bash\n# Auto-detection (default)\nnode scripts/version-and-commit.mjs --mode changeset\n\n# Explicit configuration\nnode scripts/version-and-commit.mjs --mode changeset --js-root js\n\n# Via environment variable\nJS_ROOT=js node scripts/version-and-commit.mjs --mode changeset\n```\n\n## Root Cause (Original Issue)\n\nThe original issue (#113) was that `command-stream` library's `cd` command calls `process.chdir()`, which permanently changes the working directory. This caused file operations to fail after running commands like `cd js && npm run ...`.\n\nThis PR addresses the issue comprehensively by:\n1. ā
Preserving and restoring the working directory after `cd` commands (previous fix)\n2. ā
Adding auto-detection of package root to support both repo structures (this enhancement)\n\n## Test Plan\n\n- [x] Verified syntax check passes for all modified scripts\n- [x] Tested `js-paths.mjs` utility - correctly detects `js/` as package root\n- [x] Tested `rust-paths.mjs` utility - correctly detects `rust/` as package root\n- [ ] Verify CI pipeline passes\n- [ ] Manual test in a single-language repository (optional)\n\nFixes #113\n\n---\nš¤ Generated with [Claude Code](https://claude.com/claude-code)",
|
|
10
|
+
"commits": [
|
|
11
|
+
{
|
|
12
|
+
"authoredDate": "2026-01-10T22:42:05Z",
|
|
13
|
+
"authors": [
|
|
14
|
+
{
|
|
15
|
+
"email": "drakonard@gmail.com",
|
|
16
|
+
"id": "MDQ6VXNlcjE0MzE5MDQ=",
|
|
17
|
+
"login": "konard",
|
|
18
|
+
"name": "konard"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"committedDate": "2026-01-10T22:42:05Z",
|
|
22
|
+
"messageBody": "Adding CLAUDE.md with task information for AI processing.\nThis file will be removed when the task is complete.\n\nIssue: https://github.com/link-assistant/agent/issues/113",
|
|
23
|
+
"messageHeadline": "Initial commit with task details",
|
|
24
|
+
"oid": "43e241ab09e1ac47e3abba0b1f3235ee6b33c130"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"authoredDate": "2026-01-10T22:49:32Z",
|
|
28
|
+
"authors": [
|
|
29
|
+
{
|
|
30
|
+
"email": "drakonard@gmail.com",
|
|
31
|
+
"id": "MDQ6VXNlcjE0MzE5MDQ=",
|
|
32
|
+
"login": "konard",
|
|
33
|
+
"name": "konard"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"email": "noreply@anthropic.com",
|
|
37
|
+
"id": "MDQ6VXNlcjgxODQ3",
|
|
38
|
+
"login": "claude",
|
|
39
|
+
"name": "Claude Opus 4.5"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"committedDate": "2026-01-10T22:49:32Z",
|
|
43
|
+
"messageBody": "The command-stream library's cd command is a virtual command that\ncalls process.chdir(), permanently changing the Node.js process's\nworking directory. This caused release scripts to fail when trying\nto read ./js/package.json after running cd js && npm run ...\n\nRoot cause: After `cd js && npm run changeset:version` completed,\nthe process was still in the js/ directory, so reading\n./js/package.json tried to access js/js/package.json which doesn't\nexist.\n\nFixed by saving the original cwd before cd commands and restoring\nit after each command that changes directory.\n\nAlso fixed publish-to-npm.mjs which was missing the cd js prefix\nfor npm run changeset:publish (the script is in js/package.json).\n\nFixes #113\n\nš¤ Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>",
|
|
44
|
+
"messageHeadline": "fix: Restore working directory after cd commands in release scripts",
|
|
45
|
+
"oid": "583f7cce33ffeecc7e0d1ebeba7ef86e4911e674"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"authoredDate": "2026-01-10T22:52:49Z",
|
|
49
|
+
"authors": [
|
|
50
|
+
{
|
|
51
|
+
"email": "drakonard@gmail.com",
|
|
52
|
+
"id": "MDQ6VXNlcjE0MzE5MDQ=",
|
|
53
|
+
"login": "konard",
|
|
54
|
+
"name": "konard"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"committedDate": "2026-01-10T22:52:49Z",
|
|
58
|
+
"messageBody": "This reverts commit 43e241ab09e1ac47e3abba0b1f3235ee6b33c130.",
|
|
59
|
+
"messageHeadline": "Revert \"Initial commit with task details\"",
|
|
60
|
+
"oid": "cc35a3720bca86104d66849ef31f725a3093e9ab"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"authoredDate": "2026-01-10T23:04:45Z",
|
|
64
|
+
"authors": [
|
|
65
|
+
{
|
|
66
|
+
"email": "drakonard@gmail.com",
|
|
67
|
+
"id": "MDQ6VXNlcjE0MzE5MDQ=",
|
|
68
|
+
"login": "konard",
|
|
69
|
+
"name": "konard"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"email": "noreply@anthropic.com",
|
|
73
|
+
"id": "MDQ6VXNlcjgxODQ3",
|
|
74
|
+
"login": "claude",
|
|
75
|
+
"name": "Claude Opus 4.5"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"committedDate": "2026-01-10T23:04:45Z",
|
|
79
|
+
"messageBody": "Add js-paths.mjs and rust-paths.mjs utilities that automatically detect\nthe package root for both single-language and multi-language repositories:\n\n- Check for ./package.json or ./Cargo.toml first (single-language repo)\n- If not found, check ./js/ or ./rust/ subfolder (multi-language repo)\n- Support explicit configuration via --js-root/--rust-root CLI options\n- Support environment variables JS_ROOT and RUST_ROOT\n\nUpdated scripts to use the shared utilities:\n- version-and-commit.mjs\n- instant-version-bump.mjs\n- publish-to-npm.mjs\n- rust-version-and-commit.mjs\n- rust-collect-changelog.mjs\n- rust-get-bump-type.mjs\n\nThis makes the scripts work seamlessly in both single-language repositories\n(where package.json/Cargo.toml is in the root) and multi-language repositories\n(where they are in js/ and rust/ subfolders).\n\nš¤ Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>",
|
|
80
|
+
"messageHeadline": "feat: Add configurable package root for release scripts",
|
|
81
|
+
"oid": "b4b1d66d59b6d563ed1d8395917b575974e692d0"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"createdAt": "2026-01-10T22:42:12Z",
|
|
85
|
+
"deletions": 30,
|
|
86
|
+
"files": [
|
|
87
|
+
{
|
|
88
|
+
"path": "docs/case-studies/issue-113/README.md",
|
|
89
|
+
"additions": 111,
|
|
90
|
+
"deletions": 0
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "scripts/instant-version-bump.mjs",
|
|
94
|
+
"additions": 38,
|
|
95
|
+
"deletions": 5
|
|
96
|
+
},
|
|
97
|
+
{ "path": "scripts/js-paths.mjs", "additions": 159, "deletions": 0 },
|
|
98
|
+
{ "path": "scripts/publish-to-npm.mjs", "additions": 41, "deletions": 8 },
|
|
99
|
+
{
|
|
100
|
+
"path": "scripts/rust-collect-changelog.mjs",
|
|
101
|
+
"additions": 25,
|
|
102
|
+
"deletions": 4
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "scripts/rust-get-bump-type.mjs",
|
|
106
|
+
"additions": 12,
|
|
107
|
+
"deletions": 1
|
|
108
|
+
},
|
|
109
|
+
{ "path": "scripts/rust-paths.mjs", "additions": 169, "deletions": 0 },
|
|
110
|
+
{
|
|
111
|
+
"path": "scripts/rust-version-and-commit.mjs",
|
|
112
|
+
"additions": 17,
|
|
113
|
+
"deletions": 4
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "scripts/version-and-commit.mjs",
|
|
117
|
+
"additions": 43,
|
|
118
|
+
"deletions": 8
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"mergedAt": "2026-01-10T23:07:46Z",
|
|
122
|
+
"number": 114,
|
|
123
|
+
"state": "MERGED",
|
|
124
|
+
"title": "feat: Add configurable package root for release scripts",
|
|
125
|
+
"url": "https://github.com/link-assistant/agent/pull/114"
|
|
126
|
+
}
|