Closed groovecoder closed 8 years ago
Thanks for the detailed STR! This might be related to #79.
opening and creating a PR both initiate the same API Action. We need to be tracking comments to fix this properly. I assume fixing #79 should make this issue go away, even though they are technically different issues. Going to leave this issue open in-case the fix is not enough.
@openjck and I thought a solution may be:
comments
table in our shiny new postgres databaseThat file name, line number, and line contents combination seems to be the same keys that GitHub uses to decide whether to collapse comments in the PR interface. But we can tweak the hash components as needed.
It sounds like this issue and #79 share the same underlying cause. We should never post the same comment twice. I'll update the language of #79 to be more general and call this a duplicate.
STR:
Expected results: Only opening a PR should add a comment
Actual results: Closing the PR created another batch of line-by-line comments
Example: https://github.com/groovecoder/discord-test/pull/1