auto-close-duplicates and backfill-duplicate-comments scripts exit 0 when they fail
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bun, github-actions, typescript
Research direction
Read scripts/auto-close-duplicates.ts and scripts/backfill-duplicate-comments.ts and inspect how each script handles rejected promises at its entry point. Run the reproduction command from the issue with GITHUB_TOKEN unset to confirm the current exit code. Done when both scripts exit non-zero on failure and the reproduction no longer reports exit 0.
Written by the indexing model from the issue text.
Description
What's wrong
scripts/auto-close-duplicates.ts and scripts/backfill-duplicate-comments.ts end with:
autoCloseDuplicates().catch(console.error);
.catch(console.error) logs the error and then lets the process exit with code 0. When either script fails (missing or invalid GITHUB_TOKEN, a rate limit, or any GitHub API error from githubRequest), the step still passes. The scheduled "Auto-close duplicate issues" workflow shows green even though no duplicates were closed.
Steps to reproduce
env -u GITHUB_TOKEN bun run scripts/auto-close-duplicates.ts; echo "exit: $?"
It prints Error: GITHUB_TOKEN environment variable is required and then exit: 0.
What should happen
The scripts should exit non-zero when they throw, so the workflow run fails and the failure is visible.
- Dominant language
- TypeScript
- Stars
- 158k
- Forks
- 25.1k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anthropics/claude-code
-
area:docs bug documentation
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
anthropics/claude-code#113843 ·
-
area:hooks area:plugins bug platform:windows
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anthropics/claude-code#113812 ·
-
area:tui bug has repro platform:linux
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anthropics/claude-code#113774 ·
-
[FEATURE] Windows Terminal: OSC 9;4 progress is turned off although Windows Terminal renders itOpenarea:tui enhancement platform:windows
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
anthropics/claude-code#113765 ·
-
area:ide bug has repro platform:macos platform:vscode
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anthropics/claude-code#113738 ·
All issues in anthropics/claude-code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participantsPossibly taken @Djiit claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#4517 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
MoonshotAI/kimi-code#6000 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OpenSlides/openslides-client#6768 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
modelcontextprotocol/modelcontextprotocol#3622 · 1 comment ·
Maintainers usually reply within 1 day