@shailesh-714/git-bot 0.1.0 → 0.1.1
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/README.md +15 -1
- package/bundle/git-bot.cjs +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -117,11 +117,25 @@ npm run build
|
|
|
117
117
|
|
|
118
118
|
## Releasing
|
|
119
119
|
|
|
120
|
+
This project uses [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) via OIDC — no long-lived tokens required.
|
|
121
|
+
|
|
122
|
+
### One-time setup
|
|
123
|
+
|
|
124
|
+
1. Go to your package settings on [npmjs.com](https://www.npmjs.com).
|
|
125
|
+
2. Find **Trusted Publisher** and select **GitHub Actions**.
|
|
126
|
+
3. Fill in:
|
|
127
|
+
- **Organization/user:** `Shailesh-714`
|
|
128
|
+
- **Repository:** `git-bot`
|
|
129
|
+
- **Workflow filename:** `release.yml`
|
|
130
|
+
- **Allowed actions:** `npm publish`
|
|
131
|
+
|
|
132
|
+
### Publishing
|
|
133
|
+
|
|
120
134
|
1. Bump the version in `package.json`.
|
|
121
135
|
2. Push the change to `main`.
|
|
122
136
|
3. Go to **Actions → Release → Run workflow**.
|
|
123
137
|
|
|
124
|
-
The workflow will tag the release, build and test the package, publish it to the
|
|
138
|
+
The workflow will tag the release, build and test the package, publish it to the public npm registry with provenance, and create a GitHub Release.
|
|
125
139
|
|
|
126
140
|
## License
|
|
127
141
|
|
package/bundle/git-bot.cjs
CHANGED
|
@@ -78764,7 +78764,7 @@ async function run(action) {
|
|
|
78764
78764
|
process.exit(1);
|
|
78765
78765
|
}
|
|
78766
78766
|
}
|
|
78767
|
-
var program2 = new Command().name("git-bot").description("git-bot: an LLM-powered CLI assistant for conventional commits and branch names.").version(true ? "0.1.
|
|
78767
|
+
var program2 = new Command().name("git-bot").description("git-bot: an LLM-powered CLI assistant for conventional commits and branch names.").version(true ? "0.1.1" : "0.0.0").option("--config <path>", "Path to config TOML").option("-v, --verbose", "Show additional debug output").configureHelp({ sortSubcommands: true });
|
|
78768
78768
|
program2.command("commit").description("Generate a commit message from staged (or unstaged) changes.").option("--dry-run", "Print the message but do not commit").option("-a, --all", "Stage all changes before committing").option("-b, --branch", "Also create a branch for this commit").option("--issue <id>", "Issue/ticket identifier to include in the branch name").option("--repo <path>", "Path to the git repository").option("-y, --yes", "Skip confirmation prompts").action((options, command) => run(() => commitAction(options, command)));
|
|
78769
78769
|
program2.command("branch").description("Generate a branch name from staged (or unstaged) changes.").option("--dry-run", "Print the branch name but do not create it").option("--issue <id>", "Issue/ticket identifier to include in the branch name").option("--repo <path>", "Path to the git repository").option("-y, --yes", "Skip confirmation prompts").action((options, command) => run(() => branchAction(options, command)));
|
|
78770
78770
|
program2.command("config").description("Show or initialize configuration.").option("--init", "Write an example config file to the default location").action((options, command) => run(() => configAction(options, command)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shailesh-714/git-bot",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "git-bot: an LLM-powered CLI assistant for conventional commits and branch names.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bundle/git-bot.cjs",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"registry": "https://registry.npmjs.org",
|
|
15
|
-
"access": "public"
|
|
15
|
+
"access": "public",
|
|
16
|
+
"provenance": true
|
|
16
17
|
},
|
|
17
18
|
"scripts": {
|
|
18
19
|
"build": "node scripts/build.mjs",
|