@spec-wave/cli 0.5.1 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spec-wave/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Setup spec-driven GitHub workflow with Projects v2, labels, issue templates, and AI-powered Actions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -114,7 +114,9 @@ export async function validate({ issueNumber }) {
114
114
  process.exit(1);
115
115
  }
116
116
 
117
- // Validação passou: move a issue para "🎉 Done" no board (best-effort).
117
+ // Validação passou: adiciona label plan-approved e move board para Done.
118
+ await addLabel(token, owner, repo, parseInt(issueNumber, 10), 'spec-wave:plan-approved');
119
+
118
120
  let doneOk = false;
119
121
  try {
120
122
  await moveToDone(token, issue);
package/src/config.mjs CHANGED
@@ -129,10 +129,11 @@ export const PRIORITY_LABELS = [
129
129
  ];
130
130
 
131
131
  export const TRIGGER_LABELS = [
132
- { name: 'spec-wave:spec', color: 'BFD4F2', description: 'Gerar spec.md via GitHub Action' },
133
- { name: 'spec-wave:plan', color: 'BFD4F2', description: 'Gerar plan.md via GitHub Action' },
134
- { name: 'spec-wave:ready', color: '0E8A16', description: 'Validar spec+plan e mover para Ready' },
135
- { name: 'spec-wave:decompose', color: 'BFD4F2', description: 'Decompor em Stories e Tasks' },
132
+ { name: 'spec-wave:spec', color: 'BFD4F2', description: 'Gerar spec.md via GitHub Action' },
133
+ { name: 'spec-wave:plan', color: 'BFD4F2', description: 'Gerar plan.md via GitHub Action' },
134
+ { name: 'spec-wave:ready', color: '0E8A16', description: 'Validar spec+plan e mover para Ready' },
135
+ { name: 'spec-wave:plan-approved', color: '0E8A16', description: 'Spec+plan validados com sucesso' },
136
+ { name: 'spec-wave:decompose', color: 'BFD4F2', description: 'Decompor em Stories e Tasks' },
136
137
  ];
137
138
 
138
139
  export const ALL_LABELS = [...TYPE_LABELS, ...PRIORITY_LABELS, ...TRIGGER_LABELS];