Skip to content

feat(githooks): add pr-size and sample-outputs cli commands - #23618

Open
kalverra wants to merge 1 commit into
DX-5066/2-prsize-corefrom
DX-5066/3-prsize-cli
Open

feat(githooks): add pr-size and sample-outputs cli commands#23618
kalverra wants to merge 1 commit into
DX-5066/2-prsize-corefrom
DX-5066/3-prsize-cli

Conversation

@kalverra

@kalverra kalverra commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Intent

Expose PR size checks via the githooks pr-size CLI command and hook into Lefthook pre-push, protecting against large monolithic PRs while providing copy-pasteable bypass commands and AI prompt suggestions.

Changes

  • Add githooks pr-size command: Analyzes branch size and prints structured status boxes with bypass flags (ALLOW_LARGE_PR=true git push) and AI prompt recommendations.
  • Add githooks sample-outputs command: Provides a showcase CLI command displaying sample terminal UI outputs across various diff classifications and runners.
  • Configure Lefthook pre-push hook: Integrates pr-size check into lefthook.yml to prevent accidental large branch pushes.
  • Update documentation: Documents PR size thresholds, strategy options, environment variable overrides, and sample outputs in tools/githooks/README.md.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@kalverra
kalverra force-pushed the DX-5066/3-prsize-cli branch 2 times, most recently from 481558d to 0826714 Compare September 1, 2026 20:10
@kalverra
kalverra marked this pull request as ready for review September 1, 2026 20:13
@kalverra
kalverra requested review from a team as code owners September 1, 2026 20:13
@kalverra
kalverra force-pushed the DX-5066/3-prsize-cli branch from 0826714 to 318be17 Compare September 1, 2026 20:14
@cl-sonarqube-production

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

@trunk-io

trunk-io Bot commented Sep 1, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant