Skip to content

fix: [WPN-28] Update Node.js engine requirement from >=22.0.0 to >=16.0.0 #45

fix: [WPN-28] Update Node.js engine requirement from >=22.0.0 to >=16.0.0

fix: [WPN-28] Update Node.js engine requirement from >=22.0.0 to >=16.0.0 #45

Workflow file for this run

name: Verify PRs
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
pr-title-check:
name: PR Title Check
runs-on: ubuntu-latest
steps:
- name: Check PR Title
shell: bash
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "Checking PR title: $PR_TITLE"
# Define valid types
VALID_TYPES="feat|fix|bug|docs|test|ci|refactor|perf|chore|revert|release"
# Regular expression pattern for PR title validation
if ! [[ "$PR_TITLE" =~ ^($VALID_TYPES):[[:space:]]\[(WPN-[0-9]+(,[[:space:]]*WPN-[0-9]+)*)\][[:space:]][A-Z].* ]]; then
echo "::error::PR title does not match the required pattern!"
echo "::error::Required format: <type>: [<issue-number>] <title>"
echo "::error::Where:"
echo "::error::- type: Must be one of: feat, fix, bug, docs, test, ci, refactor, perf, chore, revert, release"
echo "::error::- issue-number: Must be WPN-X or multiple like [WPN-1, WPN-2]"
echo "::error::- title: Must start with a capital letter"
echo "::error::"
echo "::error::Valid examples:"
echo "::error::- feat: [WPN-1] Implement user authentication"
echo "::error::- fix: [WPN-42] Fix memory leak in notification service"
echo "::error::- docs: [WPN-7, WPN-8] Update API documentation"
echo "::error::- ci: [WPN-15] Add performance testing to pipeline"
echo "::error::- refactor: [WPN-20] Refactor code for better readability"
echo "::error::- perf: [WPN-30] Improve performance of data processing"
echo "::error::- chore: [WPN-40] Update dependencies"
echo "::error::- revert: [WPN-50] Revert changes from WPN-10"
echo "::error::- release: [WPN-60] Prepare for release"
echo "::error::"
echo "::error::Your title: \"$PR_TITLE\""
exit 1
else
echo "✅ PR title format is valid!"
fi
label-merge-conflicts:
name: Has Conflicts
runs-on: ubuntu-latest
steps:
- name: Check for Merge Conflicts
uses: prince-chrismc/label-merge-conflicts-action@v3
with:
conflict_label_name: "conflicts"
github_token: ${{ secrets.GITHUB_TOKEN }}
conflict_comment: |
:wave: Hi, @${{ github.actor }},
I detected conflicts against the base branch :speak_no_evil:
You'll want to sync :arrows_counterclockwise: your branch with upstream!