Compare commits

...
Author SHA1 Message Date
chichuan f736de4144 ci: keep release seals out of auto-merge 2026-08-06 15:38:14 +08:00
+9
View File
@@ -61,6 +61,9 @@ jobs:
}
const author = pullRequest.user.login.toLowerCase();
const headSha = pullRequest.head.sha;
const isReleaseSeal = /^docs: seal v[^\s]+ changelog$/i.test(
pullRequest.title,
);
const latestPusher =
context.payload.action === 'synchronize'
? context.payload.sender?.login?.toLowerCase()
@@ -214,6 +217,12 @@ jobs:
}
async function enableAutoMerge() {
if (isReleaseSeal) {
core.info(
`PR #${pullNumber} is a release seal; auto-merge stays disabled for its required human merge.`,
);
return;
}
try {
const currentPull = await getReadyEventPull('auto-merge enable');
if (!currentPull) {