Skip to content

Commit 8bd8627

Browse files
committed
chore: add reapply as valid commit type
When you revert a revert commit, most version control systems (like Git) will suggest a default commit message that starts with "Reapply" followed by the original commit message that was reverted. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 8bc41ff commit 8bd8627

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/isValidCommitMesage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ const DEFAULT_COMMIT_TYPES = [
99
"perf",
1010
"ci",
1111
"chore",
12-
"revert",
13-
"merge",
1412
"wip",
1513
];
1614

1715
const isValidCommitMessage = (message: string, availableTypes = DEFAULT_COMMIT_TYPES): boolean => {
1816
// Exceptions.
1917
// This is a message that's auto-generated by git. Can't do much about it unfortunately. Let's allow it.
20-
if (message.startsWith("Merge ") || message.startsWith("Revert ")) {
18+
if (message.startsWith("Merge ") || message.startsWith("Revert ") || message.startsWith("Reapply ") {
2119
return true;
2220
}
2321

0 commit comments

Comments
 (0)