contribute-now 0.8.0-dev.1cf48ff → 0.8.0-dev.7c6d67f
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/LICENSE +674 -0
- package/README.md +30 -0
- package/dist/cli.js +8316 -7505
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -324,6 +324,27 @@ cn label suggest --issue 42
|
|
|
324
324
|
|
|
325
325
|
# Get ranked label suggestions for a PR
|
|
326
326
|
cn label suggest --pr 7
|
|
327
|
+
|
|
328
|
+
# Auto-apply top labels to a PR
|
|
329
|
+
cn label apply --pr 7
|
|
330
|
+
|
|
331
|
+
# Auto-apply top labels to an issue
|
|
332
|
+
cn label apply --issue 42
|
|
333
|
+
|
|
334
|
+
# Bulk preview (safe default): inspect open issues and PRs
|
|
335
|
+
cn label apply
|
|
336
|
+
|
|
337
|
+
# Bulk apply to open issues and PRs
|
|
338
|
+
cn label apply --yes
|
|
339
|
+
|
|
340
|
+
# Bulk apply to PRs only with custom limits
|
|
341
|
+
cn label apply --prs --yes --limit 30 --count 2 --min-score 5
|
|
342
|
+
|
|
343
|
+
# Force heuristic-only ranking (no AI)
|
|
344
|
+
cn label apply --pr 7 --no-ai
|
|
345
|
+
|
|
346
|
+
# Use a specific AI model for ranking
|
|
347
|
+
cn label apply --pr 7 --model gpt-4.1
|
|
327
348
|
```
|
|
328
349
|
|
|
329
350
|
**Label source strategy:**
|
|
@@ -333,6 +354,15 @@ cn label suggest --pr 7
|
|
|
333
354
|
4. The local cache is used by default — no repeated `gh` API calls.
|
|
334
355
|
5. On label-not-found errors, the cache is automatically resynced and the operation is retried once.
|
|
335
356
|
|
|
357
|
+
**Auto-apply behavior (`cn label apply`):**
|
|
358
|
+
- Uses the same label scoring engine as `cn label suggest` (label names + descriptions vs issue/PR content).
|
|
359
|
+
- Applies only existing repository labels (never creates labels).
|
|
360
|
+
- Filters out labels that are already present on the target issue/PR.
|
|
361
|
+
- In bulk mode (no `--issue`/`--pr`), defaults to dry-run unless `--yes` is provided.
|
|
362
|
+
- Supports tunable controls: `--count`, `--min-score`, `--limit`, `--issues`, `--prs`, and `--dry-run`.
|
|
363
|
+
- Uses AI ranking by default when AI is enabled in your config, with automatic fallback to heuristic scoring.
|
|
364
|
+
- Pass `--no-ai` to force heuristic-only scoring or `--model <name>` to pick a specific AI model.
|
|
365
|
+
|
|
336
366
|
**Label input format:**
|
|
337
367
|
- Commas are the separator between labels.
|
|
338
368
|
- Spaces are part of a label name (`good first issue` is one label, not three words).
|