fix(prompts): use dynamic bot identity for comment filtering - #4
Merged
Merged
Conversation
Query bot identity at runtime via `gh api user` instead of hardcoding `claude[bot]`. This ensures comment cleanup works regardless of which bot name is configured in the action inputs.
Mearman
force-pushed
the
fix/dynamic-bot-identity
branch
from
February 13, 2026 19:30
98915b3 to
636d37b
Compare
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Comment cleanup was hardcoded to filter for
claude[bot], which wouldn't work if a different bot name is configured via thebot_nameinput.Solution
Query the bot's own identity at runtime via GraphQL viewer query and use that for filtering. This ensures comment cleanup works regardless of the configured bot name.
Summary
Replaces hardcoded
claude[bot]with dynamic bot identity lookup via GraphQL viewer query. Updates cleanup instructions to:gh api graphql$BOT_LOGINvariableThis ensures cleanup works with any configured bot name and improves context awareness.