Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Filter current issue from deduplicator results (#4687)

pakrym-oai205c36e39343
diff --git a/.github/workflows/issue-deduplicator.yml b/.github/workflows/issue-deduplicator.yml
index cb2d6278e6..06d54f24bf 100644
--- a/.github/workflows/issue-deduplicator.yml
+++ b/.github/workflows/issue-deduplicator.yml
@@ -102,14 +102,17 @@ jobs:
}
const issues = Array.isArray(parsed?.issues) ? parsed.issues : [];
- if (issues.length === 0) {
+ const currentIssueNumber = String(context.payload.issue.number);
+ const filteredIssues = issues.filter((value) => String(value) !== currentIssueNumber);
+
+ if (filteredIssues.length === 0) {
core.info('Codex reported no potential duplicates.');
return;
}
const lines = [
'Potential duplicates detected:',
- ...issues.map((value) => `- #${String(value)}`),
+ ...filteredIssues.map((value) => `- #${String(value)}`),
'',
'*Powered by [Codex Action](https://github.com/openai/codex-action)*'];