Open SimonLab opened 6 years ago
The webhook will send a request not only when the description is changed but also when the title of the issue is changed.
We should only upload a new version of the issue on S3 when the description has changed otherwise if the title is changed we just need to update the issue title field in Postgres.
Github provide a changes
field on the payload that we can check to see the type of change:
description edit:
title edit:
we use build_assoc to add a new version on a specific comment:
As a user I want to backup edits on issue So that I can see the history of this issue