contribute-now 0.2.0-dev.7c81c96 → 0.2.0-dev.8e07e2c

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 (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -704,24 +704,25 @@ var BRANCH_NAME_SYSTEM_PROMPT = `Git branch name generator. Format: <prefix>/<ke
704
704
  Prefixes: feature, fix, docs, chore, test, refactor
705
705
  Rules: lowercase kebab-case, 2-5 words max. Return ONLY the branch name.
706
706
  Examples: fix/login-timeout | feature/user-profile-page | docs/update-readme`;
707
- var PR_DESCRIPTION_SYSTEM_PROMPT_BASE = `GitHub PR description generator. Return JSON: {"title":"<72 chars>","body":"## Summary\\n...\\n\\n## Changes\\n- ...\\n\\n## Test Plan\\n..."}`;
707
+ var PR_DESCRIPTION_SYSTEM_PROMPT_BASE = `GitHub PR description generator. Return JSON: {"title":"<72 chars>","body":"## Summary\\n...\\n\\n## Changes\\n- ...\\n\\n## Test Plan\\n..."}
708
+ IMPORTANT: The title must capture the overall theme or goal of the PR — NOT enumerate individual changes. Think: what problem does this PR solve or what capability does it add? Keep it focused and specific but high-level.`;
708
709
  function getPRDescriptionSystemPrompt(convention) {
709
710
  if (convention === "clean-commit") {
710
711
  return `${PR_DESCRIPTION_SYSTEM_PROMPT_BASE}
711
712
  CRITICAL: The PR title MUST follow the Clean Commit format exactly: <emoji> <type>: <description>
712
713
  Emoji/type table: \uD83D\uDCE6 new, \uD83D\uDD27 update, \uD83D\uDDD1️ remove, \uD83D\uDD12 security, ⚙️ setup, ☕ chore, \uD83E\uDDEA test, \uD83D\uDCD6 docs, \uD83D\uDE80 release
713
714
  Title examples: \uD83D\uDCE6 new: add user authentication | \uD83D\uDD27 update: improve error handling | \uD83D\uDDD1️ remove: drop legacy API
714
- Rules: title follows convention, present tense, max 72 chars; body has Summary, Changes (bullets), Test Plan sections. Return ONLY the JSON object, no fences.`;
715
+ Rules: title follows convention, present tense, max 72 chars, describes the PR theme not individual commits; body has Summary, Changes (bullets), Test Plan sections. Return ONLY the JSON object, no fences.`;
715
716
  }
716
717
  if (convention === "conventional") {
717
718
  return `${PR_DESCRIPTION_SYSTEM_PROMPT_BASE}
718
719
  CRITICAL: The PR title MUST follow Conventional Commits format: <type>[(<scope>)]: <description>
719
720
  Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
720
721
  Title examples: feat: add user authentication | fix(auth): resolve token expiry | docs: update contributing guide
721
- Rules: title follows convention, present tense, max 72 chars; body has Summary, Changes (bullets), Test Plan sections. Return ONLY the JSON object, no fences.`;
722
+ Rules: title follows convention, present tense, max 72 chars, describes the PR theme not individual commits; body has Summary, Changes (bullets), Test Plan sections. Return ONLY the JSON object, no fences.`;
722
723
  }
723
724
  return `${PR_DESCRIPTION_SYSTEM_PROMPT_BASE}
724
- Rules: title concise present tense; body has Summary, Changes (bullets), Test Plan sections. Return ONLY the JSON object, no fences.`;
725
+ Rules: title concise present tense, describes the PR theme not individual commits; body has Summary, Changes (bullets), Test Plan sections. Return ONLY the JSON object, no fences.`;
725
726
  }
726
727
  var CONFLICT_RESOLUTION_SYSTEM_PROMPT = `Git merge conflict advisor. Explain each side, suggest resolution strategy. Never auto-resolve — guidance only. Be concise and actionable.`;
727
728
  function suppressSubprocessWarnings() {
@@ -2616,7 +2617,7 @@ import pc14 from "picocolors";
2616
2617
  // package.json
2617
2618
  var package_default = {
2618
2619
  name: "contribute-now",
2619
- version: "0.2.0-dev.7c81c96",
2620
+ version: "0.2.0-dev.8e07e2c",
2620
2621
  description: "Git workflow CLI for squash-merge two-branch models. Keeps dev in sync with main after squash merges.",
2621
2622
  type: "module",
2622
2623
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contribute-now",
3
- "version": "0.2.0-dev.7c81c96",
3
+ "version": "0.2.0-dev.8e07e2c",
4
4
  "description": "Git workflow CLI for squash-merge two-branch models. Keeps dev in sync with main after squash merges.",
5
5
  "type": "module",
6
6
  "bin": {