pm-skill 1.1.0 → 1.1.1
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/dist/workflows.js +7 -7
- package/package.json +1 -1
package/dist/workflows.js
CHANGED
|
@@ -192,7 +192,7 @@ async function setup(ctx, args) {
|
|
|
192
192
|
async function startFeature(ctx, args) {
|
|
193
193
|
const title = args._[0];
|
|
194
194
|
if (!title) {
|
|
195
|
-
throw new Error("Usage: pm-skill start-feature <title>");
|
|
195
|
+
throw new Error("Usage: npx pm-skill start-feature <title>");
|
|
196
196
|
}
|
|
197
197
|
const tmpl = getTemplate(ctx.config, "feature");
|
|
198
198
|
const teamLabels = await getTeamLabels(ctx.linear, ctx.env.LINEAR_DEFAULT_TEAM_ID);
|
|
@@ -222,7 +222,7 @@ async function startFeature(ctx, args) {
|
|
|
222
222
|
async function reportBug(ctx, args) {
|
|
223
223
|
const title = args._[0];
|
|
224
224
|
if (!title) {
|
|
225
|
-
throw new Error("Usage: pm-skill report-bug <title> [--severity high]");
|
|
225
|
+
throw new Error("Usage: npx pm-skill report-bug <title> [--severity high]");
|
|
226
226
|
}
|
|
227
227
|
const severity = args.severity ?? "medium";
|
|
228
228
|
const priority = resolveSeverity(ctx.config, severity);
|
|
@@ -267,7 +267,7 @@ async function addTask(ctx, args) {
|
|
|
267
267
|
const parentIdentifier = args._[0];
|
|
268
268
|
const title = args._[1];
|
|
269
269
|
if (!parentIdentifier || !title) {
|
|
270
|
-
throw new Error("Usage: pm-skill add-task <parent-issue> <title>");
|
|
270
|
+
throw new Error("Usage: npx pm-skill add-task <parent-issue> <title>");
|
|
271
271
|
}
|
|
272
272
|
const parent = await getIssue(ctx.linear, parentIdentifier);
|
|
273
273
|
const child = await createIssue(ctx.linear, {
|
|
@@ -282,7 +282,7 @@ async function relate(ctx, args) {
|
|
|
282
282
|
const id1 = args._[0];
|
|
283
283
|
const id2 = args._[1];
|
|
284
284
|
if (!id1 || !id2) {
|
|
285
|
-
throw new Error("Usage: pm-skill relate <issue1> <issue2> [--type related]");
|
|
285
|
+
throw new Error("Usage: npx pm-skill relate <issue1> <issue2> [--type related]");
|
|
286
286
|
}
|
|
287
287
|
const type = args.type ?? "related";
|
|
288
288
|
if (type !== "related" && type !== "similar") {
|
|
@@ -297,7 +297,7 @@ async function block(ctx, args) {
|
|
|
297
297
|
const id1 = args._[0];
|
|
298
298
|
const id2 = args._[1];
|
|
299
299
|
if (!id1 || !id2) {
|
|
300
|
-
throw new Error("Usage: pm-skill block <blocker> <blocked>");
|
|
300
|
+
throw new Error("Usage: npx pm-skill block <blocker> <blocked>");
|
|
301
301
|
}
|
|
302
302
|
const issue1 = await getIssue(ctx.linear, id1);
|
|
303
303
|
const issue2 = await getIssue(ctx.linear, id2);
|
|
@@ -310,7 +310,7 @@ async function attachDoc(ctx, args) {
|
|
|
310
310
|
const title = args.title;
|
|
311
311
|
const type = args.type;
|
|
312
312
|
if (!identifier || !url || !title || !type) {
|
|
313
|
-
throw new Error('Usage: pm-skill attach-doc <issue> --url "URL" --title "Title" --type <type>');
|
|
313
|
+
throw new Error('Usage: npx pm-skill attach-doc <issue> --url "URL" --title "Title" --type <type>');
|
|
314
314
|
}
|
|
315
315
|
validateDocType(ctx.config, type);
|
|
316
316
|
const issue = await getIssue(ctx.linear, identifier);
|
|
@@ -320,7 +320,7 @@ async function attachDoc(ctx, args) {
|
|
|
320
320
|
async function get(ctx, args) {
|
|
321
321
|
const identifier = args._[0];
|
|
322
322
|
if (!identifier) {
|
|
323
|
-
throw new Error("Usage: pm-skill get <issue>");
|
|
323
|
+
throw new Error("Usage: npx pm-skill get <issue>");
|
|
324
324
|
}
|
|
325
325
|
const detail = await getIssueDetail(ctx.linear, identifier);
|
|
326
326
|
const { issue, children, relations, attachments } = detail;
|