From e27e83c272c214da00563a608014c91389f41fa7 Mon Sep 17 00:00:00 2001 From: d1onys1us <13951458+d1onys1us@users.noreply.github.com> Date: Tue, 13 Feb 2024 03:30:49 -0500 Subject: [PATCH] chore(repo): fixup validate pr title job (#15751) --- .../{lint-pr.yml => validate-pr-title.yml} | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) rename .github/workflows/{lint-pr.yml => validate-pr-title.yml} (62%) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/validate-pr-title.yml similarity index 62% rename from .github/workflows/lint-pr.yml rename to .github/workflows/validate-pr-title.yml index a8b5718ae9..5966f74dd2 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/validate-pr-title.yml @@ -1,4 +1,4 @@ -name: Lint PR +name: Validate PR Title on: pull_request_target: @@ -8,8 +8,7 @@ on: - synchronize jobs: - main: - name: Validate PR title + validate-pr-title: runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 @@ -20,7 +19,6 @@ jobs: repo branding bridge-ui-v2 - deps eventindexer fork-diff guardian-prover-health-check @@ -29,6 +27,9 @@ jobs: relayer starter-dapp status-page - tokenomics - deps-dev requireScope: true + subjectPattern: ^(?![A-Z]).+$ # Require lowercase PR title + 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.