Replies: 2 comments
-
|
To determine if people in GitHub comments are talking to themselves (and thus decide whether to skip running the chatbot feature), you would need to analyze the comment’s context. The key here is to identify comments that are directed to the author of the comment itself, rather than to another user or a bot. Here’s an approach you can take:
You can analyze the comment body to check if the author is mentioning themselves. This can be done by looking for references to their own GitHub username or using more sophisticated Natural Language Processing (NLP) techniques. For simplicity, let’s start with a basic check for mentions of the user’s own GitHub username.
Here’s how you might implement this in your Dr. GitHub codebase: // Assuming // In your comment processing function // Run chatbot logic if not talking to themselves // Example usage
This should give you a solid foundation for detecting self-directed comments in GitHub discussions and adjusting your bot behavior accordingly! |
Beta Was this translation helpful? Give feedback.
-
|
moved to notion |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The bot shouldn't involve in a conversion if people are talking to themselves if
autoChatis enabled. I asked CodeRabbit support team, they've done it somehow :DBeta Was this translation helpful? Give feedback.
All reactions