From 7c0c49386137799095779e3bc7a1fc60318bc657 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Thu, 17 Oct 2024 16:49:40 +1100 Subject: [PATCH] chore(ci): allow ', ", ` characters to prefix commit description --- .github/workflows/pr-title-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index f9a1deffb24..68adc1c2ecc 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -25,7 +25,7 @@ jobs: const title = context.payload.pull_request.title; // This should match https://github.com/filecoin-project/lotus/blob/master/README.md#pr-title-conventions // 202408: Beyond Conventional Commit conventions, we also optionally suport the "scope" outside of paranenthesis for a transitionary period from legacy conventions per https://github.com/filecoin-project/lotus/pull/12340 - const pattern = /^(\[skip changelog\]\s)?(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w.]+\))?!?:?\s(\w+:)?\s?[a-z].+$/; + const pattern = /^(\[skip changelog\]\s)?(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w.]+\))?!?:?\s(\w+:)?\s?["'`a-z].+$/; if (!pattern.test(title)) { await github.rest.pulls.createReview({