From 1e8cd08281c5a44075d8edb418d1da470c0fb041 Mon Sep 17 00:00:00 2001 From: Alexander Nickel Date: Wed, 10 Mar 2021 08:39:00 +0100 Subject: [PATCH] fix: Add local config to set issuePrefixes [FBTLOPS-159] --- Makefile | 2 +- commitlint.config.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 commitlint.config.js diff --git a/Makefile b/Makefile index c2636af..f34ed99 100644 --- a/Makefile +++ b/Makefile @@ -3,4 +3,4 @@ GITHUB_BASE_REF ?= master .PHONY: lint lint: - commitlint -g index.js --from=$$(git rev-parse remotes/origin/$(GITHUB_BASE_REF)) + commitlint -g commitlint.config.js --from=$$(git rev-parse remotes/origin/$(GITHUB_BASE_REF)) diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..5bd3362 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,8 @@ +module.exports = { + extends: ["./index.js"], + parserPreset: { + parserOpts: { + issuePrefixes: ["FBTLOPS-"], + }, + }, +};