Skip to content

ci: skip draft PRs - #15

Closed
gold-silver-copper wants to merge 1 commit into
mainfrom
ci/step5-drift
Closed

gold-silver-copper wants to merge 1 commit into
mainfrom
ci/step5-drift

Conversation

@gold-silver-copper

@gold-silver-copper gold-silver-copper commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Makes gitkb/workflows' scripts/conformance.py report no drift for this repo (ready-for-review finding).

Draft PRs (owner decision, 2026-11-18): every pull_request trigger now lists ready_for_review (with the default opened, synchronize, reopened), and every root job has if: github.event.pull_request.draft != true (combined with its existing condition). A draft runs nothing; marking it ready runs CI once. Push, schedule and dispatch runs are unaffected (github.event.pull_request is empty there).

Verified: the conformance checks run locally against this branch report nothing for the repo; actionlint is clean.
Not verified: the run on a draft PR itself (CI on this PR runs as a ready PR).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Chores
    • Automated checks now run on selected pull request updates to the main branch. Draft pull requests skip linting and tests; tests continue to run for pushes and eligible pull requests from the same repository. These workflow changes do not affect the application’s features or behavior.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI workflow now filters pull request events to four types on main. The lint and test jobs skip draft pull requests. The test job’s push condition remains unchanged.

Changes

CI workflow conditions

Layer / File(s) Summary
Pull request triggers and job conditions
.github/workflows/ci.yml
The workflow limits pull request triggers to opened, synchronize, reopened, and ready_for_review events on main. The lint and same-repository pull request test paths skip draft pull requests. The test job’s push path remains unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: mateodelnorte

Merge Risk: Minimal · up to b06df

This change makes CI skip draft pull requests and run when they are marked ready for review. It affects only CI triggering, with no runtime or product impact, and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: skip draft PRs" matches the main change. The ci.yml workflow now skips the lint job and the test job for draft pull requests. The PR objectives describe the same goal: skip CI for draft…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: skip draft PRs" matches the main change. The ci.yml workflow now skips the lint job and the test job for draft pull requests. The PR objectives describe the same goal: skip CI for draft PRs and run it when a draft is marked ready for review. The title is short, specific, and uses a conventional commit prefix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the CI trail,
Drafts pause before the jobs set sail.
Four events pass through the gate,
Pushes keep their usual state.
The workflow hops along its way.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: f01aa392-814a-48a9-9bb6-0b6dcc1d8c4d
Commits

Reviewing files that changed from the base of the PR and between c341b4b and b06dfc1.

Files selected for processing: 1

  • .github/workflows/ci.yml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@gold-silver-copper
gold-silver-copper marked this pull request as ready for review November 18, 2026 18:02
@coderabbitai
coderabbitai Bot requested a review from mateodelnorte November 18, 2026 18:03
@gold-silver-copper

Copy link
Copy Markdown
Contributor Author

Closing: step 5 is stopped; replaced by moving every workflow to thin callers of gitkb/workflows.

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