You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`🎯 @${targetUser} has been assigned to this issue by a maintainer. Please share meaningful progress within 3 days, or it may be opened to others.\n`;
338
+
336
339
await github.rest.issues.createComment({
337
340
owner,
338
341
repo,
339
342
issue_number: issueNumber,
340
-
body: `🎯 @${targetUser} has been assigned to this issue by a maintainer. Please share meaningful progress within 3 days, or it may be opened to others.`
@@ -431,7 +431,6 @@ Please share meaningful progress within 3 days, or it may be made available to o
431
431
});
432
432
433
433
} else {
434
-
// Already assigned
435
434
if (lowerCurrentAssignees.includes(commenterLower)) {
436
435
await github.rest.issues.createComment({
437
436
owner,
@@ -441,21 +440,24 @@ Please share meaningful progress within 3 days, or it may be made available to o
441
440
});
442
441
} else {
443
442
const primary = currentAssignees[0];
443
+
const alreadyBody =
444
+
`@${commenter}, first priority for this issue is with @${primary}.\n\n`+
445
+
`If you’d like to be next in queue, please use \`/work <approach>\` and describe how you plan to solve it. `+
446
+
`After the 3-day window, you may be auto-promoted if there is no meaningful progress from the primary assignee.\n`;
447
+
444
448
await github.rest.issues.createComment({
445
449
owner,
446
450
repo,
447
451
issue_number: issueNumber,
448
-
body: `@${commenter}, first priority for this issue is with @${primary}.
449
-
450
-
If you’d like to be next in queue, please use \`/work <approach>\` and describe how you plan to solve it. After the 3-day window, you may be auto-promoted if there is no meaningful progress from the primary assignee.`
452
+
body: alreadyBody
451
453
});
452
454
}
453
455
}
454
456
455
457
return;
456
458
}
457
459
458
-
// COMMAND: /work <approach> (backup claim)
460
+
// /work <approach>
459
461
if (isWorkCommand) {
460
462
if (issue.pull_request) {
461
463
await github.rest.issues.createComment({
@@ -505,20 +507,20 @@ If you’d like to be next in queue, please use \`/work <approach>\` and describ
505
507
body: buildQueueBody(queueState)
506
508
});
507
509
510
+
const workBody =
511
+
`@${commenter}, first priority is with @${primary}. You are now next in the queue for this issue with the following approach:\n\n`+
512
+
`\`${approach}\`\n\n`+
513
+
`Please make sure you:\n`+
514
+
`- Star the repository\n`+
515
+
`- Fork the repository\n`+
516
+
`- Understand the issue clearly\n\n`+
517
+
`If @${primary} doesn’t show meaningful progress within 3 days, you may be auto-promoted to primary assignee.\n`;
518
+
508
519
await github.rest.issues.createComment({
509
520
owner,
510
521
repo,
511
522
issue_number: issueNumber,
512
-
body: `@${commenter}, first priority is with @${primary}. You are now next in the queue for this issue with the following approach:
513
-
514
-
\`${approach}\`
515
-
516
-
Please make sure you:
517
-
- Star the repository
518
-
- Fork the repository
519
-
- Understand the issue clearly
520
-
521
-
If @${primary} doesn’t show meaningful progress within 3 days, you may be auto-promoted to primary assignee.`
523
+
body: workBody
522
524
});
523
525
} else if (queueState.backup.toLowerCase() === commenterLower) {
524
526
await github.rest.issues.createComment({
@@ -539,7 +541,7 @@ If @${primary} doesn’t show meaningful progress within 3 days, you may be auto
0 commit comments