ubiquity-os-marketplace / text-conversation-rewards

1 stars 27 forks source link

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

Open gentlementlegen opened 5 days ago

gentlementlegen commented 5 days ago
          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 https://github.com/ubiquity-os-marketplace/text-conversation-rewards/pull/188#discussion_r1856110897_

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:

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