mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +00:00
Add two new GitHub Actions workflows: - pr-size.yml: auto-labels PRs by size and fails CI on PRs over 500 lines - pr-title.yml: enforces conventional commit format on PR titles Configure commitizen in pyproject.toml with strict schema pattern matching for conventional commits.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: PR Size Check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
pr-size:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- uses: codelytv/pr-size-labeler@v1
|
|
with:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
xs_label: "size/XS"
|
|
xs_max_size: 25
|
|
s_label: "size/S"
|
|
s_max_size: 100
|
|
m_label: "size/M"
|
|
m_max_size: 250
|
|
l_label: "size/L"
|
|
l_max_size: 500
|
|
xl_label: "size/XL"
|
|
fail_if_xl: true
|
|
message_if_xl: >
|
|
This PR exceeds 500 lines changed and has been labeled `size/XL`.
|
|
PRs of this size require release manager approval to merge.
|
|
Please consider splitting into smaller PRs, or add a justification
|
|
in the PR description for why this cannot be broken up.
|
|
files_to_ignore: |
|
|
uv.lock
|
|
*.lock
|
|
lib/crewai/src/crewai/cli/templates/**
|
|
**/*.json
|
|
**/test_durations/**
|
|
**/cassettes/** |