Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: decouple github auth from api calls #130

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

kormide
Copy link
Collaborator

@kormide kormide commented Jan 10, 2024

Prefactor for #120.

I had an awkward coupling between how the github client (octokit) is authorized and the api calls it can make, when really they should be separate. There are several different ways we need to authorize: as one of the two GitHub apps, as an installation of those apps on the ruleset repo, bcr fork, and canonical bcr. This decoupling will help me fix #120 in a clean way.

@kormide kormide requested review from alexeagle and cgrindel January 10, 2024 08:41
@kormide kormide force-pushed the decouple-github-auth branch from 2ff4e8c to 3d10141 Compare January 10, 2024 08:51
@kormide kormide force-pushed the decouple-github-auth branch from 3d10141 to b57f7b9 Compare January 10, 2024 08:52
@kormide kormide merged commit 8e592a5 into main Jan 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attributing the github-actions[bot] as the entry commit author causes CLA checks to fail
2 participants