Skip to content

docs: run Commit Check before the expensive CI jobs - #109

Closed
shenxianpeng wants to merge 1 commit into
mainfrom
docs/before-expensive-jobs
Closed

shenxianpeng wants to merge 1 commit into
mainfrom
docs/before-expensive-jobs

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Before: the AI agents guide says to check the pull request, but not where the check sits in the pipeline. An agent's pull request runs every build and test job even when its commit messages or branch name break the policy.

After: a new section, "Run it before the expensive jobs", puts the check ahead of the other jobs on GitHub (needs: commit-check in the same workflow, plus concurrency to cancel superseded runs), GitLab (the component's stage: .pre) and Bitbucket (the check as the first step). It opens with GitHub's Octoverse figure (more than 40% of pull requests in September 2026 started with an agent, 17% in March) and this project's own timings: the commit-check job takes 8 to 12 seconds on the CLI repository's pull requests, while the 17 jobs of its CI workflow take about ten minutes of runner time.

How: one section appended to docs/guides/ai-agents.md. python -m pytest tests/ (18 passed with commit-check 2.24.2) and mkdocs build --strict pass; no code block overflows at 1280 px in either theme.

Agents now start more than 40% of pull requests on GitHub. Add a section to the AI agents guide that puts the check ahead of the build and test jobs on GitHub (needs), GitLab (.pre stage) and Bitbucket (first step).
@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for commit-check ready!

Name Link
🔨 Latest commit ab4c321
🔍 Latest deploy log https://app.netlify.com/projects/commit-check/deploys/6b088ca9b98e5d31fd734d81
😎 Deploy Preview https://deploy-preview-109--commit-check.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shenxianpeng shenxianpeng added the documentation Improvements or additions to documentation label Nov 26, 2026 — with Claude
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shenxianpeng shenxianpeng self-assigned this Nov 26, 2026
@shenxianpeng
shenxianpeng deleted the docs/before-expensive-jobs branch November 29, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant