newaperio / custodian

GitHub bot to manage routine tasks.
https://newaperio.github.io/custodian
MIT License
4 stars 1 forks source link

Update repo uninstall to look up by repo_id instead of installation_id #27

Closed lleger closed 5 years ago

lleger commented 5 years ago

Several repos could be installed by the same installation_id. Removing a single one in this case threw an error since Bots.get_by/1 returned more than one result.

The proper way to handle this is to iterate over the repositories that need to be removed and do so by their repo_id instead.