Skip to content
This repository was archived by the owner on Dec 3, 2026. It is now read-only.

ci: skip draft PRs - #202

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

Clears what gitkb/workflows' scripts/conformance.py reports for meta, except the gate finding (below).

  • ready-for-review (auto-format.yml, ci.yml, release.yml): 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). semantic-pr-title.yml (already listed ready_for_review) skips drafts too. In ci.yml the gate call keeps always() and gets the draft condition, so on a draft gate / CI gate doesn't report and the PR can't merge; marking it ready runs everything.

Left: gate (rulesets): the ruleset requires gate / CI gate, which ci.yml produces by calling its own copy, ./.github/workflows/ci-gate.yml. The check wants a call to gitkb/workflows/.github/workflows/ci-gate.yml, which a public repo can't call (gitkb/workflows is private). The check name is unchanged; this needs an exception or a change to the check.

Verified: the conformance checks run locally against this branch report only that gate finding; actionlint is clean.
Not verified: release.yml's tag-push path (by reading only).


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

Summary by CodeRabbit

  • Chores
    • Pull request checks now run when a draft is marked ready for review or reopened, rather than running while the pull request remains a draft.
    • Formatting, testing, build, and validation jobs are skipped for draft pull requests. Existing conditions for running certain checks remain in effect.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request workflows now trigger on ready-for-review events where specified. Their formatting, testing, build, and validation jobs skip draft pull requests, with existing conditions retained where applicable.

Changes

Draft pull request workflows

Layer / File(s) Summary
Pull request triggers and draft job conditions
.github/workflows/auto-format.yml, .github/workflows/ci.yml, .github/workflows/release.yml, .github/workflows/semantic-pr-title.yml
The workflows include the specified reopened and ready-for-review events. Formatting, test, integration test, build, and title-validation jobs skip draft pull requests. CI checks retain their tests_only conditions, and the CI gate retains always() for non-draft pull requests.

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

Change: Other

Possibly related PRs

  • gitkb/meta#138: Changes trigger sets in release.yml and auto-format.yml, which overlap with the workflow trigger changes here.

Suggested reviewers: mateodelnorte

Merge Risk: Minimal · up to 7a7bd

The change makes pull request workflows skip drafts and run once when the PR is marked ready. Push, schedule and dispatch runs are unaffected. No concrete merge-blocking defect 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 changeset adds draft-PR handling to the CI, auto-format, release, and semantic-title workflows so that root jobs skip draft pull requests. T…
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 changeset adds draft-PR handling to the CI, auto-format, release, and semantic-title workflows so that root jobs skip draft pull requests. The title is short, specific, and uses a conventional commit prefix. It does not list every workflow, which is acceptable.

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’s cue,
Draft jobs wait; ready ones run through.
Reopened paths join the queue,
Checks wake up when drafts are through.
A tidy hop, then on we go!

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: 9570799d-02a7-4e4d-8cf3-bc6fd60c4c10
Commits

Reviewing files that changed from the base of the PR and between 283562b and 7a7bd19.

Files selected for processing: 4

  • .github/workflows/auto-format.yml
  • .github/workflows/ci.yml
  • .github/workflows/release.yml
  • .github/workflows/semantic-pr-title.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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant