Skip to content

ci: skip draft PRs - #8

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
    • Updated automated checks to run when a pull request is opened, updated, reopened, or marked ready for review. Draft pull requests are skipped until they’re ready.

@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 runs for opened, synchronize, reopened, and ready_for_review pull request events. The validate job is skipped when the pull request is a draft.

Changes

Pull request CI

Layer / File(s) Summary
Pull request events and validation condition
.github/workflows/ci.yml
The workflow specifies four pull request event types. The validate job runs only when the pull request is not a draft.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to 731ad

This CI-only change skips validation on draft pull requests and runs it once when a PR is marked ready. No concrete merge-blocking risk was found.

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 workflow now skips the validate job for draft pull requests, and the pull_request trigger adds ready_for_review. The title is short, specifi…
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 workflow now skips the validate job for draft pull requests, and the pull_request trigger adds ready_for_review. The title is short, specific, and follows conventional commit style. It omits the ready_for_review trigger change, which is an acceptable omission.

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 workflow with care,
Four pull request events now lead there.
Drafts skip validation, quietly,
The ready ones join the queue.
Soft paws approve this change anew.

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: aac8676d-6557-4a8c-a9eb-58462aeb09fb
Commits

Reviewing files that changed from the base of the PR and between 5f9150e and 731ad1a.

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
@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