GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — ci: add issue deduplicator workflow by Wibias · Pull Request #298 · lidge-jun/opencodex Conversation
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds an Issue Deduplicator GitHub Actions workflow that gathers open and closed issues, requests AI-based duplicate matches, maintains a marked bot comment, and removes the trigger label after label-triggered runs. ChangesIssue deduplication
Estimated code review effort: 4 (Complex) | ~45 minutes Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant GitHubIssues as GitHub issues
participant Workflow as Issue Deduplicator
participant AIInference as actions/ai-inference
participant Comments as Issue comments
GitHubIssues->>Workflow: open issue or add codex-deduplicate label
Workflow->>Workflow: collect open and closed issues and build prompt
Workflow->>AIInference: request JSON duplicate matches
AIInference-->>Workflow: return matches and reason
Workflow->>Comments: validate and update, create, or delete marked comment
Workflow->>GitHubIssues: remove codex-deduplicate label
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Adds a new GitHub Actions workflow that fires on every new issue (and on manual re-trigger via the codex-deduplicate label) and posts a bot comment listing up to five similar open issues. Uses GitHub's built-in search API only -- no secrets, no external services, no per-token cost. Keyword extraction weights the title 2x over the body to keep queries focused. The bot comment is idempotent (upserted via BOT_MARKER), so re-labelling updates rather than duplicates the comment. Inspired by openai/codex issue-deduplicator.yml but replaces the LLM/codex-action layer with native github.rest.search calls.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
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/issue-deduplicator.yml:
- Around line 88-90: Update the issue-deduplication flow around the
matches.length check to look up the existing bot marker before returning when no
similar open issues remain. Remove that stale “Potential duplicates found”
comment or replace it with the workflow’s no-matches message, while preserving
the existing behavior for non-empty matches.
- Around line 128-133: Update the “Remove codex-deduplicate label” step to stop
using “|| true”; capture the gh issue edit result and ignore only the
already-absent-label 404 response, while propagating authentication, API,
runner, and other failures so the workflow fails appropriately.
- Around line 13-19: Add a per-issue concurrency group to the find-similar job
so opened and labeled workflow runs for the same issue are serialized. Configure
the group using the issue identifier available from the GitHub event context,
while preserving independent execution for different issues and the existing
marker-check/comment-upsert flow.
- Around line 9-23: Remove the unused contents: read entry from the
workflow-level permissions block in the issue-deduplicator job, leaving issues:
write unchanged for the GitHub Script step.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d25c1458-358f-43ca-8f11-79a0ea5bbc29
.github/workflows/issue-deduplicator.yml
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Drop unused contents: read permission (no checkout in this workflow) - Add per-issue concurrency group to serialize opened/labeled runs for the same issue and prevent duplicate bot comments from racing - Fetch existing bot comment before the no-matches early return so a stale duplicate comment from a prior scan is cleaned up on rescan - Replace blanket || true on label removal with targeted error matching that only swallows 404 label-not-found and propagates real failures
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
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/issue-deduplicator.yml:
- Around line 103-108: Update the matches construction in the issue
deduplication workflow to build a candidate-number set from
existing-issues.json, then retain only model-returned values present in that set
and excluding currentNum. Preserve the existing string normalization,
deduplication, and five-match limit.
- Around line 69-80: Replace the mutable actions/ai-inference@v1 reference in
the “Run semantic duplicate detection” step with a full reviewed commit SHA,
matching the repository’s other pinned actions. Route the selected SHA through
security review while preserving the existing model and prompt configuration.
- Around line 51-67: Indent every PROMPT heredoc terminator in the run block to
the same YAML indentation level as the surrounding shell commands, including the
terminators after the “New issue” and “Existing open issues” sections, so the
workflow remains valid YAML while preserving heredoc behavior.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 40856efb-595f-46ab-b939-a0cb10cc7669
.github/workflows/issue-deduplicator.yml
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: b6d5ab44ce
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Replace heredoc blocks with printf/cat to avoid YAML/bash indentation conflict that caused actionlint + yamllint parse errors (critical fix) - Pin actions/ai-inference to commit SHA b81b2afb # v1 to match repo's other pinned actions and prevent supply-chain risk with issues: write - Fetch --state all instead of open-only so the AI can surface closed issues that already answer the new one - Whitelist AI-returned numbers against the fetched candidate set to guard against hallucinated or prompt-injected issue references - Annotate closed matches with _(closed)_ in the comment so reporters know those may already contain an answer
Without a checkout there is no local git context for gh to infer the repo from. Set GH_REPO so the label-removal command works correctly on label-triggered runs.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
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/issue-deduplicator.yml:
- Around line 114-119: Validate that parsed.issues is an array before computing
matches or deleting any deduplication comment. In the response-handling flow
around parsed and currentNum, treat non-array issues as a schema failure,
preserve the existing comment, and fail or warn the run instead of interpreting
the response as no matches.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: ef903835-e260-4878-957e-82c698a0e447
.github/workflows/issue-deduplicator.yml
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
If the model returns a valid JSON object but with issues as a non-array (e.g. a string), Array.isArray would fail silently producing an empty matches list, which then deleted an existing dedup comment as if the rescan confidently found nothing. Explicitly check the schema and bail with a warning instead, leaving any existing comment untouched.
There was an error while loading. Please reload this page.
Adds a new GitHub Actions workflow that fires on every newly opened issue and, when the title or body is primarily non-English, translates it to English using actions/ai-inference with the built-in GITHUB_TOKEN. - Updates the issue title to the English translation so maintainers can triage at a glance and search surfaces the issue correctly - Posts a marked bot comment (<!-- opencodex-issue-translator -->) with the full English body, noting the original detected language - Guard against double-posting on re-runs via the comment marker - Per-issue concurrency group prevents races on rapid edits - No secrets, no external services, zero cost to the repo owner -- uses models: read permission with GitHub Models (same as the issue deduplicator in PR #298) The title translation is deliberate: the issue deduplicator in PR #298 searches and compares issue text via an LLM prompt. A Korean or Japanese issue describing the same bug as an open English issue will never be flagged as a duplicate unless both are in the same language. Translating the title first means the deduplicator's candidate fetch and prompt see consistent English text across all issues, dramatically improving cross-language duplicate detection.
|
Post-merge Sol review note: Reverted from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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
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
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.
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.
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
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
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.