Skip to content

Commit

Permalink
chore: add reapply as valid commit type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kesselb committed Dec 22, 2024
1 parent 8bc41ff commit 96de3ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/isValidCommitMesage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const DEFAULT_COMMIT_TYPES = [
"revert",
"merge",
"wip",
"reapply",
];

const isValidCommitMessage = (message: string, availableTypes = DEFAULT_COMMIT_TYPES): boolean => {
Expand Down

0 comments on commit 96de3ab

Please sign in to comment.