Skip to content

feat: complete Phase 2 - API server, Dashboard, and CVE sync #20

feat: complete Phase 2 - API server, Dashboard, and CVE sync

feat: complete Phase 2 - API server, Dashboard, and CVE sync #20

Workflow file for this run

name: PR Checks
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
title:
name: Validate PR title (Conventional Commits)
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
chore
docs
test
refactor
perf
ci
requireScope: false
size:
name: PR size check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check PR is not too large
run: |
LINES=$(git diff origin/${{ github.base_ref }}...HEAD --stat | tail -1 | grep -oP '\d+ insertion' | grep -oP '\d+' || echo 0)
if [ "$LINES" -gt 1500 ]; then
echo "::warning::This PR adds $LINES lines. Consider splitting it into smaller PRs."
fi