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 — ci: add PR auto-labeler and auto-generated release notes by Wibias · Pull Request #301 · lidge-jun/opencodex

Conversation

@Wibias

@Wibias Wibias commented Jul 22, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

What

Adds a zero-cost, fully automated release notes system matching the style of openai/codex releases (New Features / Bug Fixes / Documentation / Chores sections + full changelog link).

Three changes:

1. .github/workflows/pr-labeler.yml (new)

Fires on every PR open/edit. Reads the conventional-commit prefix from the title (feat:, fix:, docs:, chore:, refactor:, perf:, etc.) and applies the matching GitHub label automatically. No API keys, no external services — runs entirely with the built-in GITHUB_TOKEN.

Prefix Label
feat / feature / perf enhancement
fix / bugfix / hotfix bug
docs / doc documentation
chore / refactor / style / test / ci / build / revert chore

If someone edits a PR title and changes the type, the old label is removed and the new one applied. If a PR title has no recognized prefix, the bot posts a one-time comment tagging the PR creator with examples.

2. .github/release.yml (new)

Tells GitHub how to group those labels into release note sections. GitHub reads this file automatically when --generate-notes is used.

3. .github/workflows/release.yml (updated)

Replaces the manual git log commit dump with gh release create --generate-notes. On every release dispatch, GitHub now builds the categorized release notes from merged PR labels instead of a flat commit list.

Why

The old release notes were a raw git log dump — no structure, no categories, hard to read. This makes every release look like the openai/codex releases with zero ongoing maintenance: just label PRs (or let the labeler do it) and dispatch the release workflow.

Setup required (one-time, before merging)

One label needs to be created manually — the others (bug, documentation, enhancement) already exist in this repo:

gh label create chore --repo lidge-jun/opencodex --color 'e4e669' --description 'Maintenance, refactors, CI, and non-user-facing changes'

How to cut a release (after merging)

  1. Bump the version in package.json on main
  2. Go to Actions → Release → Run workflow
  3. Fill in version, set tag to latest, leave dry-run: true first to verify
  4. If the dry run looks good, run again with dry-run: false

GitHub will scan all PRs merged since the previous tag, group them by label, and the release page will look like:

## New Features
- Add Cursor Router optimization levels (#296)
- Add DeepSeek provider support (#291)

## Bug Fixes
- Fix auth token refresh loop (#294)

## Chores
- Bump bun to 1.3.15 (#295)

Full Changelog: https://github.com/lidge-jun/opencodex/compare/v0.3.0...v0.4.0

Verification

  • pr-labeler.yml uses pull_request_target so the token has write access even for fork PRs
  • pr-labeler.yml uses a pinned SHA for actions/github-script
  • release.yml follows the GitHub changelog config schema
  • release.yml workflow diff is minimal — only the notes generation block changed, all guards and version checks are untouched

Sorry, something went wrong.

Uh oh!

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

All reactions
@Wibias
ci: add PR auto-labeler and auto-generated release notes
714cbb6
- .github/workflows/pr-labeler.yml: labels PRs from conventional-commit
  title prefix (feat -> enhancement, fix -> bug, docs -> documentation,
  chore/refactor/style/test/ci/build/revert -> chore, perf -> enhancement).
  Runs on pull_request opened/edited/synchronize. No secrets needed.

- .github/release.yml: maps those labels to release note section headings
  (New Features, Bug Fixes, Documentation, Chores, Other Changes).
  PRs tagged skip-changelog are excluded.

- .github/workflows/release.yml: replace manual git-log notes block with
  --generate-notes so GitHub builds categorized release notes from the
  label config automatically on every release dispatch.

NOTE for repo owner: create a 'chore' label in lidge-jun/opencodex
  gh label create chore --repo lidge-jun/opencodex --color 'e4e669' --description 'Maintenance, refactors, CI, and non-user-facing changes'
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 22, 2026 20:47
@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

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

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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c944bf92-6107-4709-9626-42ef82d43090

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
📝 Walkthrough

Walkthrough

Adds automated PR labeling from conventional-commit titles and configures GitHub release notes to group labeled changes while excluding skipped PRs.

Changes

Release automation

Layer / File(s) Summary
Conventional-commit PR labeling
.github/workflows/pr-labeler.yml
Labels pull requests from title prefixes, removes stale type labels, and posts a one-time nudge when no valid prefix is found.
Generated release-note configuration
.github/release.yml, .github/workflows/release.yml
Maps PR labels to release-note sections, excludes skip-changelog PRs, and replaces custom note-file generation with --generate-notes.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: ingwannu, lidge-jun

Sequence Diagram(s)

sequenceDiagram
  participant GitHub as GitHub PR event
  participant Workflow as pr-labeler workflow
  participant PRAPI as GitHub PR API
  GitHub->>Workflow: Trigger on PR opened, edited, or synchronized
  Workflow->>Workflow: Parse conventional-commit title prefix
  Workflow->>PRAPI: Read labels and existing bot comments
  PRAPI-->>Workflow: Return PR metadata
  Workflow->>PRAPI: Remove stale type labels or add detected label
  Workflow->>PRAPI: Post prefix nudge comment when needed
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main CI changes: PR auto-labeling and generated release notes.
✨ 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.

Wibias added 2 commits July 22, 2026 22:51
@Wibias
ci(pr-labeler): nudge PR creator when title has no conventional prefix
3861086
When no prefix is detected, post a one-time comment tagging the PR
creator with examples and a note that the workflow will re-run once
the title is updated. Uses an HTML comment marker to avoid posting
the same nudge twice on subsequent edits.
@Wibias
fix(pr-labeler): use pull_request_target to fix 403 on fork PRs
a7f67a2
pull_request runs in the fork context, where GITHUB_TOKEN is read-only
even with write permissions declared. pull_request_target always runs
in the base repo context so the token can write labels and comments.
Safe here because we never check out fork code.
@Wibias

Wibias commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 22, 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: 714cbb6219

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@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/pr-labeler.yml Resolved

Uh oh!

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

Comment thread .github/workflows/pr-labeler.yml Resolved

Uh oh!

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

Comment thread .github/workflows/pr-labeler.yml Resolved

Uh oh!

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

@Wibias
fix(pr-labeler): clear stale type labels when prefix is removed from …
26c2dc2
…title

If a PR was labeled 'enhancement' from 'feat: ...' and the author edits
the title to remove the prefix, the old label was left behind and would
still categorize the PR in release notes. Now clears any managed type
label before posting the nudge comment.
coderabbitai[bot]
coderabbitai Bot reviewed Jul 22, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Actionable comments posted: 2

🧹 Nitpick comments (1)
.github/workflows/pr-labeler.yml (1)

58-66: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Duplicate-comment check doesn't paginate.

listComments defaults to the first page (30 items, oldest first). On a PR that accumulates more than 30 comments, this lookup could still find the marker for typical cases (it's usually posted early), but relying on default pagination is fragile — consider github.paginate to be safe.

♻️ Proposed fix
-              const existing = await github.rest.issues.listComments({
-                owner: context.repo.owner,
-                repo:  context.repo.repo,
-                issue_number: pr,
-              });
-              const alreadyCommented = existing.data.some(
+              const existingComments = await github.paginate(github.rest.issues.listComments, {
+                owner: context.repo.owner,
+                repo:  context.repo.repo,
+                issue_number: pr,
+              });
+              const alreadyCommented = existingComments.some(
                 c => c.user.login === 'github-actions[bot]' &&
                      c.body.includes('<!-- opencodex-label-nudge -->')
               );
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/pr-labeler.yml around lines 58 - 66, Update the
existing-comments lookup in the labeler workflow to use github.paginate with
issues.listComments, ensuring all PR comments are searched for the
opencodex-label-nudge marker. Preserve the existing alreadyCommented check and
comment-posting behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/pr-labeler.yml:
- Around line 31-54: Update the PREFIX_TO_LABEL lookup used to compute detected
so inherited Object.prototype names such as constructor, toString, and
hasOwnProperty resolve as no prefix. Use an own-property guard or a
null-prototype mapping before returning the mapped label, while preserving
normal case-insensitive prefix handling and the existing no-prefix branch.

In @.github/workflows/release.yml:
- Around line 289-295: Update the existing-release branch in the release
workflow to generate release notes before invoking gh release edit, then pass
the generated notes via the supported --notes or --notes-file option while
preserving the release title and prerelease behavior. Keep the gh release create
path unchanged.

---

Nitpick comments:
In @.github/workflows/pr-labeler.yml:
- Around line 58-66: Update the existing-comments lookup in the labeler workflow
to use github.paginate with issues.listComments, ensuring all PR comments are
searched for the opencodex-label-nudge marker. Preserve the existing
alreadyCommented check and comment-posting behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: cae5cc9c-31e5-46ed-af5f-eb2f3624f850

📥 Commits

Reviewing files that changed from the base of the PR and between 2e9442a and a7f67a2.

📒 Files selected for processing (3)
  • .github/release.yml
  • .github/workflows/pr-labeler.yml
  • .github/workflows/release.yml

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/workflows/pr-labeler.yml Resolved

Uh oh!

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

Comment thread .github/workflows/release.yml Resolved

Uh oh!

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

Wibias added 2 commits July 22, 2026 23:00
@Wibias
fix: guard Object.prototype leak in prefix lookup; fix gh release edi…
bd2a0ba
…t notes

pr-labeler.yml: use hasOwnProperty guard on PREFIX_TO_LABEL so prefixes
like 'constructor' or 'toString' don't resolve to inherited prototype
members and blow up the addLabels call.

release.yml: gh release edit does not support --generate-notes (only
gh release create does). For the edit path, call the GitHub generate-notes
API directly and pass the result via --notes-file instead.
@Wibias
fix(pr-labeler): paginate comment lookup to avoid duplicate nudge on …
266d37e
…busy PRs

listComments returns only the first 30 by default. On a PR with 30+
comments the marker could be on a later page, causing a second nudge.
Use github.paginate to fetch all comments before checking.
@lidge-jun
lidge-jun merged commit 5458ce4 into lidge-jun:dev Jul 22, 2026
8 checks passed

Uh oh!

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

@lidge-jun

lidge-jun commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Post-merge Sol review note: Reverted from dev — the labeler depends on a nonexistent chore label (addLabels will fail), and --generate-notes changes release note range behavior. Will be rebuilt with required labels created first and explicit range selection.

Wibias reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

lidge-jun added a commit that referenced this pull request Jul 23, 2026
@lidge-jun
devlog: update CI workflow PR analysis — Sol FAIL x3, REBUILD_ON_DEV
c1a4bb6
PR #301 (labeler): missing chore label, release notes range change.
PR #298 (dedup): no ordering with translator, prompt injection surface.
PR #299 (translator): no sequencing guarantee, prompt injection risk.
All three need combined workflow with deterministic sequencing.
lidge-jun added a commit that referenced this pull request Jul 23, 2026
@lidge-jun
devlog: finalize overnight PR review — 3 merged, 6 rebuild, 1 keep-open
fa212c7
Sol reviewed all 10 PRs. Results:
- Merged: #286 (500→400), #296 (Cursor Router), #302 (Kiro hardening)
- Rebuild-on-dev: #255, #283, #293, #301, #298, #299
- Keep open: #249 (Cloudflare tunnel)

Typecheck + full test suite pass (3574/3574) after all merges.
lidge-jun added a commit that referenced this pull request Jul 23, 2026
@lidge-jun
ci: rebuild issue triage, PR labeler, and release notes
f3a542b
Combined issue-translator (#299) and issue-deduplicator (#298) into a
single issue-triage.yml with deterministic translate→dedup sequencing
and split inference/mutation permissions.

Rebuilt pr-labeler (#301) with graceful label creation and live title
refetch. Updated release.yml with --notes-start-tag for explicit range.

Addresses all Sol review findings. Original ideas credited to Wibias.

Co-authored-by: Wibias <[email protected]>

Based-on: PR #301, PR #298, PR #299
lidge-jun added a commit that referenced this pull request Jul 23, 2026
@lidge-jun @Wibias
ci: rebuild issue triage, PR labeler, and release note categories
e3541d5
Combined issue-translator (#299) and issue-deduplicator (#298) into a
single issue-triage.yml with deterministic translate→dedup sequencing
and split inference/mutation permissions per job.

Rebuilt pr-labeler (#301) with graceful label creation (creates missing
labels instead of failing) and live title refetch before mutation.

Added .github/release.yml category config for auto-generated notes.

Addresses all Sol review findings: deterministic sequencing, split
permissions, label prerequisites, BOM removal, EOF newlines.

Co-authored-by: Wibias <[email protected]>
Based-on: PR #301, PR #298, PR #299
This was referenced Jul 23, 2026
fix(release): full channel changelog in GitHub release notes #364
Merged
feat: ship packaged macOS menu bar companion #387
Closed
@Wibias
Wibias deleted the feat/auto-release-notes branch July 25, 2026 07:01
This was referenced Jul 26, 2026
fix(release): carry preview changelog into latest notes #482
Merged
fix(ci): stop PR labeler from reverting human type labels #525
Merged
fix(ci): let the PR labeler actually write labels #566
Merged
fix(windows): follow active Codex home for tray listener #644
Closed
This was referenced Aug 3, 2026
feat(release): render OpenAI-style release notes with optional LLM polish #957
Merged
fix(ci): run the test gate on stacked child PRs, and label PRs whose title carries no type #979
Merged
This was referenced Aug 15, 2026
Fix release changelog coverage across previews and direct commits #1740
Merged
fix(release): never publish an empty changelog (commit-based fallback) #1766
Merged
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
devlog: update CI workflow PR analysis — Sol FAIL x3, REBUILD_ON_DEV
ee424cf
PR lidge-jun#301 (labeler): missing chore label, release notes range change.
PR lidge-jun#298 (dedup): no ordering with translator, prompt injection surface.
PR lidge-jun#299 (translator): no sequencing guarantee, prompt injection risk.
All three need combined workflow with deterministic sequencing.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
devlog: finalize overnight PR review — 3 merged, 6 rebuild, 1 keep-open
d2221f7
Sol reviewed all 10 PRs. Results:
- Merged: lidge-jun#286 (500→400), lidge-jun#296 (Cursor Router), lidge-jun#302 (Kiro hardening)
- Rebuild-on-dev: lidge-jun#255, lidge-jun#283, lidge-jun#293, lidge-jun#301, lidge-jun#298, lidge-jun#299
- Keep open: lidge-jun#249 (Cloudflare tunnel)

Typecheck + full test suite pass (3574/3574) after all merges.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
ci: rebuild issue triage, PR labeler, and release notes
df1d1b6
Combined issue-translator (lidge-jun#299) and issue-deduplicator (lidge-jun#298) into a
single issue-triage.yml with deterministic translate→dedup sequencing
and split inference/mutation permissions.

Rebuilt pr-labeler (lidge-jun#301) with graceful label creation and live title
refetch. Updated release.yml with --notes-start-tag for explicit range.

Addresses all Sol review findings. Original ideas credited to Wibias.

Co-authored-by: Wibias <[email protected]>

Based-on: PR lidge-jun#301, PR lidge-jun#298, PR lidge-jun#299
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun @Wibias
ci: rebuild issue triage, PR labeler, and release note categories
681119c
Combined issue-translator (lidge-jun#299) and issue-deduplicator (lidge-jun#298) into a
single issue-triage.yml with deterministic translate→dedup sequencing
and split inference/mutation permissions per job.

Rebuilt pr-labeler (lidge-jun#301) with graceful label creation (creates missing
labels instead of failing) and live title refetch before mutation.

Added .github/release.yml category config for auto-generated notes.

Addresses all Sol review findings: deterministic sequencing, split
permissions, label prerequisites, BOM removal, EOF newlines.

Co-authored-by: Wibias <[email protected]>
Based-on: PR lidge-jun#301, PR lidge-jun#298, PR lidge-jun#299
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

None yet

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.

2 participants

@Wibias @lidge-jun
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.