@shailesh-714/git-bot 0.1.0 → 0.1.2
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 +33 -3
- package/bundle/git-bot.cjs +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -16,10 +16,12 @@ configurable conventions, and can also create a matching branch name when you st
|
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
|
-
Published to the public npm registry.
|
|
20
|
-
|
|
21
19
|
Requires **Node.js >= 20**.
|
|
22
20
|
|
|
21
|
+
### npm (recommended)
|
|
22
|
+
|
|
23
|
+
Published to the public npm registry.
|
|
24
|
+
|
|
23
25
|
```bash
|
|
24
26
|
npm install -g @shailesh-714/git-bot
|
|
25
27
|
```
|
|
@@ -30,6 +32,20 @@ Run without installing:
|
|
|
30
32
|
npx @shailesh-714/git-bot commit --dry-run
|
|
31
33
|
```
|
|
32
34
|
|
|
35
|
+
### curl (GitHub Releases)
|
|
36
|
+
|
|
37
|
+
Install the latest release directly from GitHub:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
curl -fsSL https://github.com/Shailesh-714/git-bot/releases/latest/download/install.sh | bash
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Install a specific version:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
curl -fsSL https://github.com/Shailesh-714/git-bot/releases/latest/download/install.sh | bash -s -- --version 0.1.1
|
|
47
|
+
```
|
|
48
|
+
|
|
33
49
|
### Manual
|
|
34
50
|
|
|
35
51
|
If you already have the repo cloned:
|
|
@@ -117,11 +133,25 @@ npm run build
|
|
|
117
133
|
|
|
118
134
|
## Releasing
|
|
119
135
|
|
|
136
|
+
This project uses [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) via OIDC — no long-lived tokens required.
|
|
137
|
+
|
|
138
|
+
### One-time setup
|
|
139
|
+
|
|
140
|
+
1. Go to your package settings on [npmjs.com](https://www.npmjs.com).
|
|
141
|
+
2. Find **Trusted Publisher** and select **GitHub Actions**.
|
|
142
|
+
3. Fill in:
|
|
143
|
+
- **Organization/user:** `Shailesh-714`
|
|
144
|
+
- **Repository:** `git-bot`
|
|
145
|
+
- **Workflow filename:** `release.yml`
|
|
146
|
+
- **Allowed actions:** `npm publish`
|
|
147
|
+
|
|
148
|
+
### Publishing
|
|
149
|
+
|
|
120
150
|
1. Bump the version in `package.json`.
|
|
121
151
|
2. Push the change to `main`.
|
|
122
152
|
3. Go to **Actions → Release → Run workflow**.
|
|
123
153
|
|
|
124
|
-
The workflow will tag the release, build and test the package, publish it to the
|
|
154
|
+
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
155
|
|
|
126
156
|
## License
|
|
127
157
|
|
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.2" : "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.2",
|
|
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",
|