Implement private messaging system for bot communications #342
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