Skip to content

ci: skip draft PRs - #23

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
    • Pull request quality checks now run when a pull request targeting the main branch is opened, updated, reopened, or marked ready for review. Checks are skipped while a pull request remains in draft, and begin when it is ready for review.

@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 workflow now responds to specified pull request events targeting main. It skips the quality job when a pull request is a draft.

Changes

Pull request quality workflow

Layer / File(s) Summary
Trigger and job conditions
.github/workflows/on-pr-quality.yaml
The workflow handles opened, synchronized, reopened, and ready-for-review events on pull requests targeting main. The quality 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 5153b

Draft pull requests will no longer run the quality job, and marking a draft ready triggers it once. No 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 change. The workflow change skips the quality job for draft pull requests, and the PR objectives confirm that draft PRs no longer run jobs. The title is shor…
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 change. The workflow change skips the quality job for draft pull requests, and the PR objectives confirm that draft PRs no longer run jobs. The title is short, specific, and states the main change.

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,
For pull requests that meet the date.
Drafts wait outside the quality run,
While listed events proceed as one.
I twitch my nose and hop away.

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: 814c007f-85e4-4254-8ad8-3bc5ce7801af
Commits

Reviewing files that changed from the base of the PR and between 79e4934 and 5153b51.

Files selected for processing: 1

  • .github/workflows/on-pr-quality.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