Skip to content

Restore the contribution header when an issue description is edited - #143

Merged
LianaHarris360 merged 1 commit into
mainfrom
issue-header-on-edit
Nov 25, 2026
Merged

LianaHarris360 merged 1 commit into
mainfrom
issue-header-on-edit

Conversation

@rtibbles

@rtibbles rtibbles commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

The contribution header was written only on open, reopen and help wanted label changes, so an edit that dropped it left the issue without one. Body edits now restore the header, and an edit that leaves it intact changes nothing.

References

Tested: learningequality/test-actions#108.

Reviewer guidance

JS tests pass on CI. On test-actions, deleting the header in an edit restored it; the run fired by the bot's own edit logged "Header is already up to date." and no further run followed.

AI usage

Used Claude Code to implement the change and its tests. Verified with the full test suite, the automation generator check and a live run on test-actions.

🤖 Generated with Claude Code

https://claude.ai/code/session_013PjXpbvgyWdsP6RKke6npi

- Run issue-open on body edits as well as opened and reopened
- Skip the update when the body already carries the right header, so the bot's own edit ends the run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PjXpbvgyWdsP6RKke6npi
@rtibbles
rtibbles marked this pull request as ready for review November 23, 2026 17:46
@rtibbles
rtibbles requested review from a team and leq-bot November 23, 2026 17:46

@LianaHarris360 LianaHarris360 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@LianaHarris360
LianaHarris360 merged commit ae083d3 into main Nov 25, 2026
42 checks passed
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.

2 participants