GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ci): harden PR target draft conversion and issue-quality Version gates by Wibias · Pull Request #631 · lidge-jun/opencodex

Conversation

@Wibias

@Wibias Wibias commented Jul 28, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

  • enforce-pr-target: grant contents: write so draft GraphQL works with GITHUB_TOKEN, soft-fail draft/ready mutations, record autoDraftedByBot only after success, and always fail the required check on a wrong base (seen on [WRONG BRANCH] fix: stabilize cache inputs #626).
  • issue-quality: reject unusable Version values (Unknown / Uknown / 모름 / idk / …), require Version + OS on the new bug form, and reject vague title-like Reproduction text (Unexpected interruption continues to occur #624).

Notes

  • Workflow permission change is security-sensitive (pull_request_target). Explicit security review required before merge.
  • Live pull_request_target behavior for fork PRs only updates after promotion to the repository default branch as well as dev.

Test plan

  • node --test .github/scripts/enforce-pr-target.test.cjs
  • node --test .github/scripts/issue-quality.test.cjs
  • bun test tests/ci-workflows.test.ts
  • bun run typecheck
  • bun run privacy:scan
  • Security review of workflow permissions / pull_request_target surface
  • After merge + promotion: wrong-base PR drafts + fails enforce-target; Unknown-Version bug issues are quality-rejected

Summary by CodeRabbit

  • Bug Fixes

    • Improved pull request target-branch enforcement so incorrect targets reliably block merging, even when automatic draft conversion cannot be completed.
    • Added clearer status messages when manual action is required to change draft or review status.
    • Strengthened bug report validation by rejecting unknown versions, missing operating systems, and overly vague reproduction steps.
  • Quality Improvements

    • Expanded automated checks to cover the updated pull request enforcement and issue-quality rules.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Wibias
fix(ci): soft-fail draft conversion and always fail wrong-base check
8d6e1fa
Grant contents:write so convertPullRequestToDraft works with GITHUB_TOKEN, record autoDraftedByBot only after success, and keep enforce-target red even when GraphQL draft mutation fails.
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 28, 2026 14:49
@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@Wibias, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 10 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f56c3d82-528d-47c0-a2e1-4a38457e4044

📥 Commits

Reviewing files that changed from the base of the PR and between 76f30bc and 623b2be.

📒 Files selected for processing (5)
  • .github/scripts/enforce-pr-target.test.cjs
  • .github/scripts/issue-quality.cjs
  • .github/scripts/issue-quality.test.cjs
  • .github/workflows/enforce-pr-target.yml
  • tests/ci-workflows.test.ts
📝 Walkthrough

Walkthrough

The PR hardens PR target enforcement with explicit permissions, best-effort state mutations, accurate comments, and hard failures for invalid targets. It also tightens new bug-report validation for versions, reproductions, and operating systems with expanded tests.

Changes

PR target enforcement

Layer / File(s) Summary
Enforcement workflow flow
.github/workflows/enforce-pr-target.yml
Adds contents: write, makes draft and ready-state conversions best-effort, updates failure messaging, and always fails wrong-target checks.
Workflow behavior validation
.github/scripts/enforce-pr-target.test.cjs, tests/ci-workflows.test.ts
Validates permissions, mutation ordering, state flags, conversion-failure warnings, restoration messaging, and setFailed behavior.
Validator workflow integration
.github/workflows/issue-quality-tests.yml
Adds enforcement paths to workflow filters and runs the enforcement validator test.

Issue quality validation

Layer / File(s) Summary
Bug validation rules
.github/scripts/issue-quality.cjs
Detects unusable versions and terse reproductions, distinguishes new and legacy forms, and validates Version, reproduction, and operating-system fields for new bug reports.
Bug validation test coverage
.github/scripts/issue-quality.test.cjs
Adds cases for unknown versions, vague reproductions, placeholder operating systems, and helper normalization behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

  • lidge-jun/opencodex#423: Overlaps in Version placeholder detection and issue-quality validation.
  • lidge-jun/opencodex#523: Extends related validateIssue invalid-pattern handling.
  • lidge-jun/opencodex#600: Also modifies bug reproduction-quality validation and its tests.

Suggested reviewers: lidge-jun, ingwannu

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant GitHubAPI
  participant PRComment
  participant RequiredCheck
  GitHubActions->>GitHubAPI: Attempt draft conversion
  GitHubAPI-->>GitHubActions: Success or failure
  GitHubActions->>PRComment: Upsert wrong-target explanation
  GitHubActions->>RequiredCheck: Mark check failed
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the two main changes: PR target draft conversion hardening and stricter issue-quality Version validation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the bug Something isn't working label Jul 28, 2026
@Wibias
fix(ci): reject unknown Version and vague bug reproductions
76f30bc
Close the #624 gap where Version like Unknown/모름 and title-like Reproduction still passed the new bug form.
@Wibias Wibias changed the title fix(ci): keep enforce-target red when draft conversion fails fix(ci): harden PR target draft conversion and issue-quality Version gates Jul 28, 2026
coderabbitai[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
fix(ci): address Codex/Rabbit review on enforce-pr-target and issue-q…
623b2be
…uality

Checkpoint ownership before mutations, keep active state when ready conversion fails, assert permissions without comment false-positives, and share unusable env stand-in detection for Version/OS.
@Wibias Wibias added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Jul 28, 2026
@Wibias Wibias mentioned this pull request Jul 28, 2026
feat(ci): enforce PR ancestry and description quality gates #648
Merged
5 of 6 tasks
@Wibias

Wibias commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Security review (maintainer, merge gate)

pull_request_target + contents: write is intentional for convertPullRequestToDraft / markPullRequestReadyForReview with GITHUB_TOKEN (#626). Workflow does not check out PR head (asserted in tests). Mutations are PR metadata only (title/draft/comment). No medium+ findings blocking merge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
Wibias merged commit 14dde56 into lidge-jun:dev Jul 29, 2026
16 of 17 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Wibias Wibias mentioned this pull request Jul 29, 2026
fix(ci): carry PR-target/issue-quality harden onto dev2-go (#631) #677
Merged
4 of 5 tasks
Wibias added a commit that referenced this pull request Jul 29, 2026
@Wibias
fix(ci): carry PR-target/issue-quality harden onto dig2-go (#631)
d602454
Carry of #631 / 14dde56 onto dig2-go.

Go port: none — CI/workflows and issue-quality scripts only; no Go counterpart.

CI note: ubuntu/windows prepare-release-assets + npm-global windows failures match pre-existing dig2-go tip / #676; not introduced by this carry.
@Wibias

Wibias commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Transition complete

  • Landed on dev as squash 14dde562.
  • Carried onto dev2-go via fix(ci): carry PR-target/issue-quality harden onto dev2-go (#631) #677 (squash of cherry-pick a25d4236).

Go decision

No Go counterpart — CI workflows (.github/workflows/*), issue-quality scripts, and TS CI tests only. Recorded on the dev merge message and on #677.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
Wibias deleted the fix/enforce-pr-target-draft-fallback branch July 30, 2026 19:06
This was referenced Jul 31, 2026
fix(logs): raise in-memory log buffer and support limit/offset #784
Merged
stack 1/5: add contribution intake firewall #900
Closed
feat(ci): draft contributor PRs until review-readiness checklist is complete #969
Merged
fix(issue-quality): require actionable reproduction detail #981
Merged
feat(ci): verify checklist claims and reset readiness on head drift #986
Merged
ci: harden PR readiness gate — consolidated comment, draft-review trigger, G.UI waiver #1094
Merged
This was referenced Aug 8, 2026
docs(devlog): 260808 bug campaign — dispositions, execution, and faults #1277
Merged
fix(ci): keep Ready blocked while deterministic hygiene fails #1329
Merged
fix(pr-quality): break CodeRabbit review feedback loop in gate comment #1633
Merged
fix: close validated CodeQL parser and quality-gate findings #1750
Merged
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@Wibias
fix(ci): harden PR target draft conversion and issue-quality Version …
af77f0a
…gates (lidge-jun#631)

Hardens wrong-base PR drafting so the required check fails even when draft GraphQL soft-fails, and tightens bug-form Version/OS/reproduction gates.

Go port: none — CI/workflows and issue-quality scripts only; no Go counterpart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu Ingwannu Awaiting requested review from Ingwannu Ingwannu is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Wibias
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.