From 632e986df588f52f557f03f3fe512a5006ca6b6a Mon Sep 17 00:00:00 2001 From: Ashman Malik Date: Tue, 28 Jan 2025 08:22:09 +1000 Subject: [PATCH] DX-892 Fixed Branch naming Validation --- .github/workflows/pr-lint.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 4fac1e9..279ead6 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -8,7 +8,7 @@ on: jobs: pr-lint: name: PR Title Linting - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # Validate PR title format - name: Lint PR Title @@ -20,14 +20,14 @@ jobs: branch-naming-rules: name: Branch Naming Validation - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: pr-lint steps: # Validate branch naming conventions - name: Lint Branch Naming uses: deepakputhraya/action-branch-name@master with: - regex: '^(DX|DSO|Bump).+' + regex: '^(DX|DSO|Bump|dependabot/.+|feature/.+|hotfix/.+|release/.+).+' ignore: master,main min_length: 2 max_length: 100 @@ -62,10 +62,8 @@ jobs: warnings=1 fi done - # If warnings found, store it in an environment variable echo "warnings=$warnings" >> $GITHUB_ENV - # Send Slack notification if warnings exist - name: Send Slack Notification if Warnings Exist if: env.warnings == '1'