Skip to content

Commit 6605489

Browse files
authored
ci: skip "test files required" for Merge prs #5907
## Problem bot is adding unhelpful comments on Merge prs. ## Solution skip Merge prs.
1 parent afd3e4b commit 6605489

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/notify.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ function requiresChangelogMessage(filenames, title) {
6969
* Require the test files message if there are changes to source files but aren't any
7070
* changes to the test files
7171
*/
72-
function requiresTestFilesMessage(filenames) {
72+
function requiresTestFilesMessage(filenames, title) {
73+
if (/^\s*[mM]erge/.test(title)) {
74+
console.log('"Merge" pull request')
75+
return
76+
}
77+
7378
// Check if src directory changed
7479
if (!hasPath(filenames, 'src/')) {
7580
console.log('Did not find src files in the code changes')

0 commit comments

Comments
 (0)