Skip to content

Commit

Permalink
updated the guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov authored Oct 23, 2024
1 parent f116a19 commit 6bc046f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Choose the appropriate template for your PR:

- [Feature PR](./PULL_REQUEST_TEMPLATE/feature_template.md)
- [Bugfix PR](./PULL_REQUEST_TEMPLATE/bugfix_template.md)
- [Release PR](./PULL_REQUEST_TEMPLATE/release_template.md)
4 changes: 2 additions & 2 deletions .github/workflows/branch-name-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Validate branch name
run: |
branch_name=$(echo "${GITHUB_REF#refs/heads/}")
pattern="^(FEATURE|BUGFIX|RELEASE)\/(HCMPRE|DPG|SN)-[0-9]{1,5}$"
pattern="^(feature|bugfix|RELEASE)\/(hcmpre|dpg|sn)-[0-9]{1,5}$"
if [[ ! "$branch_name" =~ $pattern ]]; then
echo "Branch name '$branch_name' does not follow the correct pattern: FEATURE/HCMPRE-<TICKET_NO>, FEATURE/DPG-<TICKET_NO>, FEATURE/SN-<TICKET_NO>, BUGFIX/SN-<TICKET_NO>, BUGFIX/HCMPRE-<TICKET_NO>, or BUGFIX/DPG-<TICKET_NO> where x is a number between 0 and 99999"
echo "Branch name '$branch_name' does not follow the correct pattern: feature/hcmpre-<TICKET_NO>, feature/dpg-<TICKET_NO>, feature/sn-<TICKET_NO>, bugfix/sn-<TICKET_NO>, bugfix/hcmpre-<TICKET_NO>, or bugfix/dpg-<TICKET_NO> where x is a number between 0 and 99999"
exit 1
fi

0 comments on commit 6bc046f

Please sign in to comment.