Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use diffs on comments to extract human content from bot modifications #201

Open
gentlementlegen opened this issue Nov 25, 2024 · 0 comments

Comments

@gentlementlegen
Copy link
Member

gentlementlegen commented Nov 25, 2024

          Reliably depends mostly on GitHub API I suppose, sometimes I must say it looks weird because the "diff" is just the comment you posted not a diff formatted content. Making a separate spec to explore this.

Originally posted by @gentlementlegen in #188 (comment)

We should try to use diff to understand the edits on bodies and comments and avoid crediting the bot for its changes, only the human made edits.

What should be done:

  • diff the whole history on the bodies of issues to remove the bot content from evaluation
  • likewise for comments
  • likewise for review comments

A library that might help: https://www.npmjs.com/package/diff

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

No branches or pull requests

1 participant