diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000000..b5ea894d00b --- /dev/null +++ b/.github/pull_request_template.md @@ -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) diff --git a/.github/workflows/branch-name-check.yml b/.github/workflows/branch-name-check.yml index bacd6bc459e..c071f73661c 100644 --- a/.github/workflows/branch-name-check.yml +++ b/.github/workflows/branch-name-check.yml @@ -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-, FEATURE/DPG-, FEATURE/SN-, BUGFIX/SN-, BUGFIX/HCMPRE-, or BUGFIX/DPG- where x is a number between 0 and 99999" + echo "Branch name '$branch_name' does not follow the correct pattern: feature/hcmpre-, feature/dpg-, feature/sn-, bugfix/sn-, bugfix/hcmpre-, or bugfix/dpg- where x is a number between 0 and 99999" exit 1 fi