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

Retreive all issues and comments on new install event #24

Closed SimonLab closed 6 years ago

SimonLab commented 6 years ago

To get an example of the request response run this command in a terminal: curl https://api.github.com/repos/dwyl/github-backup/issues

image

Questions: Github let you install an app on a specific repository or on all the repositories of a user profile or organisation: image

When installed on all the repositories will the install event be sent to the server for each repositories or is there another type of event that we need to catch for this case?

nelsonic commented 6 years ago

@SimonLab this is good for MVP. We may need to ask users if they want a per-repo installation once we launch.

SimonLab commented 6 years ago

When the Github App is installed on all the repositories github will send the following values: header value of X-github-event: "installation_repositories" value of key "added" of the payload: "new_installation_repositories"

nelsonic commented 6 years ago

@SimonLab looks good. thanks.