Skip to content

ci: skip draft PRs - #44

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 findings in on-pr-quality.yaml and on-v-tag-release.yaml).

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). In on-v-tag-release.yaml only build gets the condition: publish already never runs on a PR.

Verified: the conformance checks run locally against this branch report nothing for the repo; actionlint is clean.
Not verified: the tag push, workflow_call and dispatch paths of on-v-tag-release.yaml (by reading only: the draft condition is empty-safe there).


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

Summary by CodeRabbit

  • Chores
    • Quality checks and release builds now run when pull requests are opened, updated, reopened, or marked ready for review.
    • These checks are skipped while a pull request is in draft.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The quality and release workflows now handle additional pull request events. Each workflow skips its job when the pull request is a draft.

Changes

Pull request workflow gating

Layer / File(s) Summary
Event and draft gating
.github/workflows/on-pr-quality.yaml, .github/workflows/on-v-tag-release.yaml
The quality workflow specifies pull request event types and skips its job for draft pull requests. The release workflow adds synchronize and ready_for_review events and skips its build job for draft pull requests.

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

Change: Other

Suggested reviewers: gonzih, mateodelnorte

Merge Risk: Minimal · up to baad4

This change makes CI skip draft pull requests and run once when a PR is marked ready. Push, tag and dispatch runs are expected to be unaffected. No merge-blocking risk was identified.

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 PR adds draft checks (if: github.event.pull_request.draft != true) to the root jobs in the PR quality and v-tag release workflows, so draf…
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 PR adds draft checks (if: github.event.pull_request.draft != true) to the root jobs in the PR quality and v-tag release workflows, so draft PRs skip CI. The title is short, specific, and follows a conventional-commit style. It does not cover the added ready_for_review trigger, which is expected for a title of this length.

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 gate
New pull requests now update its state
Drafts pause the quality run
Draft builds wait until they’re done
Then checks resume and hop along

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: e753c02b-c752-4119-bc95-a2ac6307225b
Commits

Reviewing files that changed from the base of the PR and between 7214153 and baad434.

Files selected for processing: 2

  • .github/workflows/on-pr-quality.yaml
  • .github/workflows/on-v-tag-release.yaml

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