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 — feat(ci): carry PR quality gates onto dev2-go (#648) by Wibias · Pull Request #683 · lidge-jun/opencodex

Conversation

@Wibias

@Wibias Wibias commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Carries the feat(ci): enforce PR ancestry and description quality gates #648 squash merge onto dev2-go (CI workflows/scripts, docs, AGENTS/MAINTAINERS, tests).
  • Source: 75bd272d on dev.

Go port

No Go counterpart. This change is GitHub Actions / Node CI scripts, contributing docs, and maintainer policy — nothing under go/.

Test plan

  • CI on dev2-go (pre-existing matrix reds on the line are unrelated)
  • Cherry-pick of 75bd272d applied cleanly

Sorry, something went wrong.

Uh oh!

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

All reactions
@Wibias
feat(ci): enforce PR ancestry and description quality gates (#648)
e4879a5
* docs: spec PR quality gates for ancestry and descriptions

Capture the approved design for rejecting main-based PRs into
dev/dev2-go and empty/thin/malformed PR bodies in the enforcer.

* docs: plan PR ancestry and description quality gates

Break the approved spec into TDD tasks for pr-quality.cjs,
enforcer wiring, harness coverage, and contributing docs.

* feat(ci): add pure PR ancestry and description quality checks

* test(ci): cover wrong_base plus bad_description together

* feat(ci): enforce PR ancestry and description in target gate

* fix(ci): strip WRONG BRANCH prefix when base is corrected

* test(ci): cover PR ancestry and description enforcement paths

* docs: document PR ancestry and description quality gates

* fix(ci): address CodeRabbit findings on PR quality gates

Treat removed new-form Version/OS headings as missing, soft-fail
ancestry compares, tighten harness require/write allowlists, and
clarify enforce-target is convention until branch protection.

* fix(ci): address Codex findings on PR quality gates

Reject untouched PR templates, require low ahead-of-main for ancestry, and checkpoint draft/title ownership before mutations.
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 29, 2026 07:25
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • ^dev$
  • ^preview$

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b03fd221-9e33-4afa-baaf-a688c47f1c75

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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 enhancement New feature or request label Jul 29, 2026
@Wibias Wibias changed the title feat(ci): carry PR quality gates onto dig2-go (#648) feat(ci): carry PR quality gates onto dev2-go (#648) Jul 29, 2026
@Wibias Wibias mentioned this pull request Jul 29, 2026
feat(ci): enforce PR ancestry and description quality gates #648
Merged
5 of 6 tasks
@Wibias
Wibias merged commit 73b0aee into lidge-jun:dev2-go Jul 29, 2026
10 of 13 checks passed

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 29, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4879a54a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/enforce-pr-target.yml
Comment on lines 413 to 415
try {
await convertToDraft();
state.autoDraftedByBot = true;
// Checkpoint after a successful draft so ownership survives
// if the final explanation write fails.
await upsertComment(

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve draft ownership after conversion succeeds

If convertToDraft() succeeds but the following checkpoint upsertComment() fails, this shared catch treats the comment error as a conversion failure and sets autoDraftedByBot to false. If the final comment retry succeeds, that false state is persisted even though the bot did draft the PR, so resolving the quality violation will leave the PR stuck in draft. Catch the conversion and checkpoint failures separately, preserving ownership once conversion succeeds.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/scripts/pr-quality.cjs
Comment on lines +145 to +147
const skipAncestry =
ancestryLookupFailed ||
(!permissionLookupFailed && authorHasPushPermission(authorPermission));

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep ancestry enforcement active when comparisons fail

When either compare API request fails transiently, ancestryLookupFailed makes the ancestry gate skip rather than fail or remain pending. An otherwise valid main-based PR therefore gets a green check; worse, a previously flagged PR is marked ready and its active state is cleared even though its ancestry was never re-evaluated. Treat comparison failure as an explicit gate failure, or at minimum preserve an existing ancestry failure until a successful comparison confirms it is fixed.

AGENTS.md reference: AGENTS.md:L83-L86

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/scripts/pr-quality.cjs
Comment on lines +99 to +102
if (hasEscapedNewlines(body)) {
return { ok: false, reason: "escaped_newlines" };
}
const withoutTemplate = stripPrTemplateBoilerplate(body);

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Strip hidden comments before detecting escaped newlines

When an otherwise valid description contains generated HTML metadata with several literal \n sequences, this check counts those hidden sequences before clean() strips the comment and can classify the visible description as malformed. Run escaped-newline detection on comment-stripped content so hidden release-note or bot metadata cannot cause a valid PR to be drafted and failed.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/scripts/pr-quality.cjs
Comment on lines +19 to +22
* Exact instruction / checklist lines from `.github/PULL_REQUEST_TEMPLATE.md`.
* Untouched templates must not count as substance.
*/
const PR_TEMPLATE_BOILERPLATE_LINES = new Set([

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate the hardcoded boilerplate when the template changes

This new validator embeds exact lines from .github/PULL_REQUEST_TEMPLATE.md, but neither issue-quality-tests.yml nor the cross-platform CI path filters include that template, and no test reads it dynamically. A template-only wording change can therefore land without running these tests and make an untouched template count as a substantial unstructured description. Add the template to the workflow paths and test that this set remains synchronized with it.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread docs-site/src/content/docs/contributing.md

## Pull requests

- Target **`dev`** (or **`dev2-go`** only for scoped Go native-port work). Do not open ordinary feature or fix pull requests against **`main`**.

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid duplicating the branch policy in this section

This bullet repeats the dev/dev2-go/main targeting policy already stated immediately above under Branches, creating two copies on the same page that must remain synchronized. Keep this section focused on the new ancestry and description gates, or link back to the existing branch-policy section instead.

AGENTS.md reference: docs-site/AGENTS.md:L17-L17

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/scripts/issue-quality.cjs
Comment on lines 706 to +707
isNewBugForm &&
version !== null &&
(isEmpty(version) || isRawPlaceholder(version))
(version === null || isEmpty(version) || isRawPlaceholder(version))

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 29, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Persist new-form provenance before requiring environment fields

A new-form bug is identified only by the still-editable Client or integration heading. After submission, an author can remove that heading together with Version and Operating system; the stored kind or bug label keeps the report classified as a bug, but isNewBugForm becomes false and these new missing-field checks are skipped, so the edited report validates successfully. Persist whether the issue originated from the new form, or use immutable workflow state rather than a removable heading to decide whether these fields are required.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Wibias
Wibias deleted the sync/648-to-dev2-go branch July 30, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun
@Ingwannu Ingwannu Awaiting requested review from Ingwannu

Uh oh!

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

Assignees

No one assigned

Labels

enhancement New feature or request

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.