@@ -51,6 +51,7 @@ import {
5151 commandStatusMarkerPrefix ,
5252 existingCommandStatusBlocksReplay ,
5353 existingModeStatusBlocksReplay ,
54+ existingRepairLoopModeOutcome ,
5455 freshExactHeadReviewStartLease ,
5556 isAuthorReadOnlyCommandAllowed ,
5657 isMaintainerCommandAllowed ,
@@ -401,7 +402,7 @@ if (execute && !exactCommentVersionFastPath.suppress) {
401402 for ( const command of claimedCommands ) recordCommandClaimed ( command ) ;
402403 }
403404 for ( const command of commands ) convergePrecreatedCommandAckComments ( command ) ;
404- for ( const command of commands ) acknowledgeSkippedMaintainerCommand ( command ) ;
405+ for ( const command of commands ) acknowledgeTerminalNoopMaintainerCommand ( command ) ;
405406 for ( const command of commands ) {
406407 if ( command . status !== "ready" ) {
407408 recordCommandOutcome ( command ) ;
@@ -1070,7 +1071,13 @@ function classifyCommand(command: LooseRecord): JsonValue {
10701071 forceReprocess ,
10711072 } )
10721073 ) {
1073- return { ...next , status : "skipped" , reason : `${ mode } already enabled for this PR` } ;
1074+ return {
1075+ ...next ,
1076+ ...existingRepairLoopModeOutcome ( {
1077+ intent : command . intent ,
1078+ trustedBot : command . trusted_bot ,
1079+ } ) ,
1080+ } ;
10741081 }
10751082 const approvedProofOverride =
10761083 command.intent === "automerge" && ! activationRepairReason
@@ -2754,8 +2761,10 @@ function applyRepairLoopOptIn(command: LooseRecord) {
27542761 command . target = { ...command . target , labels : [ ...labels ] } ;
27552762}
27562763
2757- function acknowledgeSkippedMaintainerCommand ( command : LooseRecord ) {
2758- if ( command . trusted_bot || command . status !== "skipped" ) return ;
2764+ function acknowledgeTerminalNoopMaintainerCommand ( command : LooseRecord ) {
2765+ if ( command . trusted_bot || ! [ "executed" , "skipped" ] . includes ( String ( command . status ?? "" ) ) ) {
2766+ return ;
2767+ }
27592768 const reason = String ( command . reason ?? "" ) ;
27602769 if ( reason === SUPERSEDED_RE_REVIEW_REASON ) {
27612770 clearTerminalMaintainerCommandReaction ( command ) ;
0 commit comments