Skip to content

Commit

Permalink
DX-892 Fixed Branch naming Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuscal-Ashman committed Jan 27, 2025
1 parent 00f7656 commit 632e986
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 632e986

Please sign in to comment.