-
[OPIK-5320] [CI] Add pr-lint validation step to create-pr skill (#5942)
发布于
2026-03-30 06:43:57 +00:00 - [OPIK-5320] [INFRA] feat: add pr-lint validation step to create-pr skill
Add Step 8 (Validate PR Title & Description) between template pre-fill
and PR creation. The new step validates the generated PR title and body
against the same rules enforced by .github/workflows/pr-lint.yml before
calling gh pr create, preventing PRs from failing CI on first submission.Validation includes:
- Title regex matching (ticket prefix + component tags)
- Required ## sections presence
- Details section non-empty check
- Issues section ticket reference check (unless [NA])
- Template placeholder cleanup
- Auto-fix on failure with re-validation
Implements OPIK-5320: Add pr-lint validation step to create-pr skill
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
- Revision 2: Align Details non-empty check with CI pr-lint behavior
Change Details section validation to match CI's getSectionContent which
only trims whitespace — do not strip HTML comments during validation.
Placeholder cleanup remains a separate step that runs after validation.Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件