From cce75f11caffb61d8785d7fa590ee63c5324288d Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Mon, 29 Apr 2024 14:34:04 -0400 Subject: [PATCH] ci: add better message for PR subject pattern error --- .github/workflows/pr-title.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index fb985eb699..83cfe9b0be 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -71,6 +71,10 @@ jobs: # Disallow uppercase letters at the beginning of the subject subjectPattern: ^(?![A-Z]).+$ + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" + didn't match the configured pattern. Please ensure that the subject + doesn't start with an uppercase character. - uses: marocchino/sticky-pull-request-comment@v2 # When the previous steps fails, the workflow would stop. By adding this