Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/PR-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Validator

on:
pull_request:
types: [opened, synchronize]

jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Check PR Title Format
run: |
PR_TITLE="${{ github.event.pull_request.title }}"
if [[ ! "$PR_TITLE" =~ ^(feature|bugfix|hotfix)/[a-z0-9-]+$ ]]; then
echo "❌ Pull request title must follow the format: feature/branch-name, bugfix/branch-name, or hotfix/branch-name"
exit 1
fi
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
print("This is DEV2: you are a pussy DEV1")
print("Welcome to DevOps practise")
print("You are a pussy - DEV1 BRANCH & dont delete me")
print("This is a hotfix")
print("This is a hotfix")
print("You better deny this boy")