-
Nicholas Tsim authored
This commit abstracts some of the raw GitHub API calls being made - `getCurrentUser`, `deleteBranch` and `getReview` into the service class so that they can be generalised for GitLab as well. Notably, the `handlePR` controller current has some weird coding around how it handles the received webhook event from GitHub. Specifically, it seems that it would be easier to just delete the branch immediately upon receiving the webhook, rather than retrieving the PR and *then* deleting the branch. This requires more content before a refactor can be performed.
434017a7