Skip to content

Commit

Permalink
chore: add warning to squash commits
Browse files Browse the repository at this point in the history
chore: add a second commit
  • Loading branch information
PeterSchafer committed Sep 4, 2024
1 parent cc37b6a commit 8e84ed1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ if (danger.github && danger.github.pr) {
const prTitle = danger.github.pr.title;

checkCommitMessage(prTitle, danger.github.pr.html_url);

warn(
`There are multiple commits on your branch, please squash them locally before merging!`,
);
}

// Forgotten tests check
Expand Down

0 comments on commit 8e84ed1

Please sign in to comment.