Skip to content

perf(pm): remove resolver memory cache layer #2043

perf(pm): remove resolver memory cache layer

perf(pm): remove resolver memory cache layer #2043

Workflow file for this run

name: PR Title Check
on:
pull_request:
types: [opened, synchronize, reopened, edited]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-title:
name: Check PR Title for Scope
# Requires: gh (GitHub CLI, pre-installed on ubuntu-latest runners)
runs-on: ubuntu-latest
steps:
- name: Verify PR Title
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
# Fetch PR title dynamically so the check uses the latest title
PR_TITLE=$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json title --jq .title)
echo "Checking PR Title: \"$PR_TITLE\""
# Regex matches: type(scope): subject or type(scope)!: subject
pattern='^[a-zA-Z]+\([^)]+\)!?: .*$'
if [[ ! "$PR_TITLE" =~ $pattern ]]; then
echo "::error::❌ ERROR: Pull Request title must contain a scope."
echo "👉 Format: <type>(<scope>): <subject>"
echo ""
echo "✅ Valid examples:"
echo " feat(pm): add new feature"
echo " fix(pack): resolve crash"
echo " chore(wasm): update deps"
exit 1
fi
echo "✅ PR title is valid!"