Netplan support network manager 2404 PC Desktop Test case/plan (New) #2249
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: PR Validation | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
- synchronize | |
- edited | |
jobs: | |
validate_title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking the presence of the Traceability Marker in the PR title | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
if echo "$PR_TITLE" | grep -iqP " \((infra|bugfix|new|breaking)\)$"; then | |
echo "PR title contains the traceability marker" | |
exit 0 | |
else | |
echo "Traceability marker missing" | |
echo "Update your title with one of the following postfix" | |
echo "(Infra,Bugfix,New,Breaking)" | |
echo | |
echo "e.g. $PR_TITLE (BugFix)" | |
exit 1 | |
fi |