koishijs / koishijs/koishi-plugin-github

Bug: edit-comment-event shows the original author instead of operator currently

Open
#32 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
5
PR merge metrics
No merged PRs in 30d

Description

# Summary

GitHub allows administrative users to change other users' posts, but the message that the bot pushed only shows the original author instead of the operator in the current event.

## Exemples

[This comment](https://github.com/koishijs/koishi-plugin-booru/issues/20#issuecomment-1482169241) was posted by poor @MaikoTan or me, but got edited several times by @SaarChaffee , every time they change the content of the comment, the bot would say something like "@MaikoTan edited the comment in blahblah" instead of @SaarChaffee who is the one changed things.

![image](https://user-images.githubusercontent.com/19927330/235296436-01d6f764-93bd-468d-877a-ae299860d45e.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the edit-comment-event handler and the GitHub event data it uses. Compare the original comment author with the operator who performed the edit, using the linked example to reproduce the current notification. Done means the bot identifies the operator in edit notifications while retaining the original author where appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.