Deduplicator fixes (#4635)

This commit is contained in:
pakrym-oai
2025-10-02 16:01:59 -07:00
committed by GitHub
parent c0a84473a4
commit 819a5782b6
2 changed files with 7 additions and 2 deletions

View File

@@ -73,6 +73,11 @@ jobs:
return;
}
if (numbers.length === 0) {
core.info('Codex reported no potential duplicates.');
return;
}
const lines = ['Potential duplicates detected:', ...numbers.map((value) => `- #${value}`)];
await github.rest.issues.createComment({
@@ -86,6 +91,7 @@ jobs:
if: ${{ always() && github.event.action == 'labeled' && github.event.label.name == 'codex-deduplicate' }}
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh issue edit "${{ github.event.issue.number }}" --remove-label codex-deduplicate || true
echo "Attempted to remove label: codex-deduplicate"