@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 +1 -1
- package/src/commands/validate.mjs +3 -1
- package/src/config.mjs +5 -4
package/package.json
CHANGED
|
@@ -114,7 +114,9 @@ export async function validate({ issueNumber }) {
|
|
|
114
114
|
process.exit(1);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
// Validação passou:
|
|
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',
|
|
133
|
-
{ name: 'spec-wave:plan',
|
|
134
|
-
{ name: 'spec-wave:ready',
|
|
135
|
-
{ name: 'spec-wave:
|
|
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];
|