Skip to content

Commit dcb253b

Browse files
committed
chore: add post merge validation bot
1 parent 5ee283a commit dcb253b

2 files changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/post-merge-validation.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ jobs:
5454
const pull_number = parseInt(prNumStr, 10);
5555
5656
// Check if PR title starts with "feat" or "perf" (conventional commits)
57-
57+
const titleLower = title.toLowerCase();
58+
if (!titleLower.startsWith('feat:') && !titleLower.startsWith('feat(') &&
59+
!titleLower.startsWith('perf:') && !titleLower.startsWith('perf(')) {
60+
console.log(`❌ PR #${pull_number} title doesn't start with feat or perf - skipping.`);
61+
return;
62+
}
5863
5964
const body = `Hi @${author},
6065

.github/workflows/test-post-merge-validation.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)