contribute-now 0.8.0-dev.703cd39 → 0.8.0-dev.74baa81

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.
Files changed (4) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +33 -1
  3. package/dist/cli.js +8507 -7688
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # contribute-now
2
2
 
3
- ![GitHub Repo Banner](https://ghrb.waren.build/banner?header=contribute-now+%F0%9F%94%84&subheader=Any+workflow.+Clean+commits.+Zero+friction.&bg=0D1117-21262D&color=FFFFFF&headerfont=Google+Sans+Code&subheaderfont=Sour+Gummy&support=true)
3
+ ![GitHub Repo Banner](https://ghrb.waren.build/banner?header=>_contribute-now&subheader=Ship+faster+with+clean+git+flow&bg=431586-9231A8&color=FFFFFF&headerfont=Google+Sans+Code&subheaderfont=Google+Sans+Code&support=true)
4
4
  <!-- Created with GitHub Repo Banner by Waren Gonzaga: https://ghrb.waren.build -->
5
5
 
6
6
  **contribute-now** is a developer CLI that automates git workflows — branching, syncing, staging, committing, and opening PRs — so you can focus on shipping, not on memorizing git commands.
@@ -274,6 +274,8 @@ List branches with workflow-aware labels and tracking status.
274
274
  cn branch # local branches
275
275
  cn branch --all # local + remote branches
276
276
  cn branch --remote # remote branches only
277
+ cn branch --sync # sync refs (friendly alias of --prune)
278
+ cn branch --prune # fetch remotes + prune deleted remote branches
277
279
  ```
278
280
 
279
281
  Branches are annotated with workflow labels (e.g., base, dev, feature) and tracking info (upstream, gone, no remote).
@@ -324,6 +326,27 @@ cn label suggest --issue 42
324
326
 
325
327
  # Get ranked label suggestions for a PR
326
328
  cn label suggest --pr 7
329
+
330
+ # Auto-apply top labels to a PR
331
+ cn label apply --pr 7
332
+
333
+ # Auto-apply top labels to an issue
334
+ cn label apply --issue 42
335
+
336
+ # Bulk preview (safe default): inspect open issues and PRs
337
+ cn label apply
338
+
339
+ # Bulk apply to open issues and PRs
340
+ cn label apply --yes
341
+
342
+ # Bulk apply to PRs only with custom limits
343
+ cn label apply --prs --yes --limit 30 --count 2 --min-score 5
344
+
345
+ # Force heuristic-only ranking (no AI)
346
+ cn label apply --pr 7 --no-ai
347
+
348
+ # Use a specific AI model for ranking
349
+ cn label apply --pr 7 --model gpt-4.1
327
350
  ```
328
351
 
329
352
  **Label source strategy:**
@@ -333,6 +356,15 @@ cn label suggest --pr 7
333
356
  4. The local cache is used by default — no repeated `gh` API calls.
334
357
  5. On label-not-found errors, the cache is automatically resynced and the operation is retried once.
335
358
 
359
+ **Auto-apply behavior (`cn label apply`):**
360
+ - Uses the same label scoring engine as `cn label suggest` (label names + descriptions vs issue/PR content).
361
+ - Applies only existing repository labels (never creates labels).
362
+ - Filters out labels that are already present on the target issue/PR.
363
+ - In bulk mode (no `--issue`/`--pr`), defaults to dry-run unless `--yes` is provided.
364
+ - Supports tunable controls: `--count`, `--min-score`, `--limit`, `--issues`, `--prs`, and `--dry-run`.
365
+ - Uses AI ranking by default when AI is enabled in your config, with automatic fallback to heuristic scoring.
366
+ - Pass `--no-ai` to force heuristic-only scoring or `--model <name>` to pick a specific AI model.
367
+
336
368
  **Label input format:**
337
369
  - Commas are the separator between labels.
338
370
  - Spaces are part of a label name (`good first issue` is one label, not three words).