Previously, the application listened to GitHub webhook events and added/removed individual items from a repository_store. However, when filtering by topic it made a call to the GitHub API. This is because the GitHub webhook event data does not include topic values for repositories.
This update makes the application completely refresh the repository_store for all webhook events and startup. This loads the appropriate topic data. Filtering is now based on the repository store, with no requirement to call the GitHub API.
Removed initialisation functionality and tests
Added support for multiple GitHub application instances
Changed index tests to focus on whether it's calling the expected functions
Changed the repository tests to expect the appropriate GitHub API endpoints are requested
Output more repository properties (owner, full_name and url)
Subscribe to and listen for repository webhook events
Previously, the application listened to GitHub webhook events and added/removed individual items from a
repository_store
. However, when filtering by topic it made a call to the GitHub API. This is because the GitHub webhook event data does not includetopic
values for repositories.This update makes the application completely refresh the
repository_store
for all webhook events and startup. This loads the appropriate topic data. Filtering is now based on the repository store, with no requirement to call the GitHub API.owner
,full_name
andurl
)repository
webhook events