Skip to content

fix: stop stripping issue header on unrelated label changes#90

Merged
rtibbles merged 1 commit into
mainfrom
fix-issue-header-stripping
Jul 2, 2026
Merged

fix: stop stripping issue header on unrelated label changes#90
rtibbles merged 1 commit into
mainfrom
fix-issue-header-stripping

Conversation

@rtibbles

@rtibbles rtibbles commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

The header logic was running on every label change - causing the header to be removed when unrelated labels were changed.

References

Observed on learningequality/studio #5929, #5930, #5814, #5811 (headers stripped after good first issue / DEV: frontend were added).

Does not restore already-affected issues.

Reviewer guidance

  • Non-help wanted labeled/unlabeled events now return before clearHeader/issues.update — no body write.
  • Confirm the help wanted removal branch still reaches deleteBotComments (moved out of the old if).

AI usage

Claude Code diagnosed the header-stripping bug and wrote the fix.

The `labeled`/`unlabeled` handlers fell through with an empty header
whenever the changed label was not `help wanted`, then unconditionally
rewrote the body — deleting the contribution header on every unrelated
label add/remove. Return early for non-`help wanted` label events.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187m8h2Mqm45A8yw5tSSfr6
@rtibbles rtibbles marked this pull request as ready for review July 2, 2026 06:52
@rtibbles rtibbles merged commit 688cf6b into main Jul 2, 2026
7 checks passed
@rtibbles rtibbles deleted the fix-issue-header-stripping branch July 2, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant