mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-10 12:09:34 +01:00
chore: format code
This commit is contained in:
parent
3d328a08ab
commit
b8865a6272
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
import get from "lodash.get"
|
import get from "lodash.get";
|
||||||
import got from "got"
|
import got from "got";
|
||||||
|
|
||||||
type Commit = {
|
type Commit = {
|
||||||
message: string;
|
message: string;
|
||||||
|
|
|
@ -16,7 +16,7 @@ const DEFAULT_COMMIT_TYPES = [
|
||||||
const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES): boolean => {
|
const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES): boolean => {
|
||||||
// Exceptions.
|
// Exceptions.
|
||||||
// This is a message that's auto-generated by git. Can't do much about it unfortunately. Let's allow it.
|
// This is a message that's auto-generated by git. Can't do much about it unfortunately. Let's allow it.
|
||||||
if (message.startsWith('Merge ')) {
|
if (message.startsWith("Merge ")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue