Implement private messaging system for bot communications#342
Open
Implement private messaging system for bot communications#342
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #37
- Add IPrivateMessageTrigger interface for private messaging support - Extend GitHubStorage with SendPrivateMessage and CreateMinimalIssueComment methods - Update IssueTracker to handle private message triggers differently - Convert LastCommitActivityTrigger and OrganizationLastMonthActivityTrigger to use private messaging - Add setup documentation and examples This addresses issue #37 by sending detailed bot messages to a private bot-communications repository instead of cluttering public issue threads. Users are notified via mentions and get email notifications, while the original issue threads remain clean and readable. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
🤖 AI-Powered Solution
This pull request implements a private messaging system to address issue #37: "Send bot messages to the user".
📋 Issue Reference
Fixes #37
✨ Solution Overview
The issue requested sending bot messages to users privately instead of posting them as public issue comments, because "bot messages take up too much space". Since GitHub doesn't have a traditional private messaging system, this implementation uses a Bot Communication Repository approach.
🔧 Implementation Details
1. New Interface:
IPrivateMessageTrigger<TContext>ITrigger<TContext>with private messaging capabilities2. Enhanced GitHubStorage
SendPrivateMessage(): Creates issues in a dedicatedbot-communicationsrepositoryCreateMinimalIssueComment(): Posts brief notifications with links to private messages3. Updated IssueTracker
IPrivateMessageTriggerimplementations4. Converted Triggers
LastCommitActivityTrigger: Now sends activity reports privatelyOrganizationLastMonthActivityTrigger: Sends activity summaries privately🚀 How It Works
IPrivateMessageTriggercondition is metbot-communicationsrepository📊 Benefits
📖 Setup Requirements
bot-communications(or configure custom name)📝 Example Usage
🧪 Testing
This PR was created automatically by the AI issue solver