Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 3a3d1dc

Browse files
committed
Don't merge and perform timeline actions
1 parent 04721ee commit 3a3d1dc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/compute-pr-actions.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,14 @@ export function process(prInfo: BotResult,
341341
}
342342
}
343343

344-
if (!actions.shouldMerge && info.mergeRequestUser) {
345-
post(Comments.WaitUntilMergeIsOK(info.mergeRequestUser, headCommitAbbrOid, urls.workflow));
346-
}
344+
if (!actions.shouldMerge) {
345+
if (info.mergeRequestUser) {
346+
post(Comments.WaitUntilMergeIsOK(info.mergeRequestUser, headCommitAbbrOid, urls.workflow));
347+
}
347348

348-
// Timeline-related actions
349-
info.staleness?.doTimelineActions(actions);
349+
// Timeline-related actions
350+
info.staleness?.doTimelineActions(actions);
351+
}
350352

351353
return actions;
352354
}

0 commit comments

Comments
 (0)