[BUG FIX] [MER-4033] fix evaluation of signed floats without leading zero #1075
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Validate Pull Request Title" | |
on: | |
pull_request: | |
branches: | |
- master | |
- 'hotfix-*' | |
- 'prerelease-*' | |
types: [opened, edited, reopened] | |
jobs: | |
check-title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Validate PR Title | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const titlePattern = /^(\[BUG FIX\]|\[ENHANCEMENT\]|\[FEATURE\]|\[CHORE\]|\[PERFORMANCE\]) (\[MER-\d{3}\]|\[MER-\d{4}\]|\[NG23-\d{2}\]|\[NG23-\d{3}\]|\[NG23-\d{4}\]) .+$/; | |
const title = context.payload.pull_request.title; | |
if (!titlePattern.test(title)) { | |
core.setFailed("Pull Request title does not match the required format '[CHANGE-TYPE] [TICKET-REFERENCE] Description'."); | |
} |