DEMRUM-1758: add deprecated legacy api mappings for SplunkSlowFrameDetector #118
This file contains hidden or 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: PR checks | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
jobs: | |
validate-title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate PR title | |
shell: bash | |
run: | | |
PR_TITLE="${{ github.event.pull_request.title }}" | |
echo "Validating PR title: \"$PR_TITLE\"" | |
REGEX='^\[?(WIP|wip)?\]?\s*(DEMRUM-[0-9]+(,\s?DEMRUM-[0-9]+)*|NO-TICKET):\s.+$' | |
if [[ "$PR_TITLE" =~ $REGEX ]]; then | |
echo "✅ PR title is valid." | |
else | |
echo "❌ PR title is invalid." | |
echo "" | |
echo "It must match one of the following formats:" | |
echo "- DEMRUM-1234: Description" | |
echo "- DEMRUM-1234, DEMRUM-5678: Description" | |
echo "- NO-TICKET: Description" | |
exit 1 | |
fi |