dwyl / github-backup

:octocat: :back: 🆙 Backup your GitHub Issues so you can still work when (they/you are) offline.
https://github-backup.herokuapp.com
GNU General Public License v2.0
32 stars 3 forks source link

Save edited issue (first comment) #42

Open SimonLab opened 6 years ago

SimonLab commented 6 years ago

As a user I want to backup edits on issue So that I can see the history of this issue

SimonLab commented 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: image

title edit: image

SimonLab commented 6 years ago

we use build_assoc to add a new version on a specific comment: