Skip to content

feat: add contextual help command#54

Open
dannysauer wants to merge 1 commit intomainfrom
feat/contextual-help
Open

feat: add contextual help command#54
dannysauer wants to merge 1 commit intomainfrom
feat/contextual-help

Conversation

@dannysauer
Copy link
Owner

Summary

  • Add @stampbot help command that displays contextual help based on repo configuration
  • Shows ChatOps commands available (or indicates if disabled)
  • Shows approval labels configured (or indicates if disabled)
  • Shows effective configuration in a collapsed <details> section
  • Unknown commands now respond with "I don't understand" plus the help message
  • Adds create_issue_comment method to GitHubClient for posting help responses

Test plan

  • All 211 tests pass
  • Coverage at 97.72%
  • Test @stampbot help in a test repo with chatops enabled
  • Test @stampbot help in a repo with chatops disabled
  • Test unknown command (e.g., @stampbot foo) shows error + help

🤖 Generated with Claude Code

Add support for `@stampbot help` which displays:
- ChatOps commands available (or indicates if disabled)
- Approval labels configured (or indicates if disabled)
- Effective configuration in a collapsed section

Unknown commands now respond with "I don't understand" plus
the help message instead of silently ignoring.

Also adds `create_issue_comment` method to GitHubClient for
posting help responses to issues/PRs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

🐳 Docker image built and pushed: ghcr.io/dannysauer/stampbot:pr-54

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

❌ Patch coverage is 68.47826% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.21%. Comparing base (2fce92e) to head (27d850b).

Files with missing lines Patch % Lines
stampbot/github_client.py 4.34% 22 Missing ⚠️
stampbot/webhook_handler.py 89.85% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main      #54      +/-   ##
===========================================
- Coverage   100.00%   97.21%   -2.79%     
===========================================
  Files            9        9              
  Lines          956     1040      +84     
  Branches       108      116       +8     
===========================================
+ Hits           956     1011      +55     
- Misses           0       27      +27     
- Partials         0        2       +2     
Flag Coverage Δ
unittests 97.21% <68.47%> (-2.79%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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