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

Factor auth out of _getAppClient #491

Merged
merged 5 commits into from
Jun 20, 2023
Merged

Factor auth out of _getAppClient #491

merged 5 commits into from
Jun 20, 2023

Conversation

chadwhitacre
Copy link
Member

@chadwhitacre chadwhitacre commented Jun 16, 2023

Follow-up to #490.

This sets us up to make app auth variable in the org requested.

@chadwhitacre chadwhitacre mentioned this pull request Jun 16, 2023
43 tasks
Base automatically changed from cwlw/factor-out-retries to main June 20, 2023 17:10
@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (ae58457) 82.74% compared to head (2b66036) 82.74%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #491   +/-   ##
=======================================
  Coverage   82.74%   82.74%           
=======================================
  Files          96       96           
  Lines        2486     2486           
  Branches      479      478    -1     
=======================================
  Hits         2057     2057           
  Misses        423      423           
  Partials        6        6           
Impacted Files Coverage Δ
src/api/github/getClient.ts 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/api/github/getClient.ts Outdated Show resolved Hide resolved

// Use the unbound client to hydrate a client bound to an org.
const installation = await appClient.apps.getOrgInstallation({ org });
client = _getAppClient(installation.data.id);
auth.installationId = installation.data.id;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I logged locally and also browsed GitHub's UI for existing apps, this does appear to be numeric (per the type def above).

@chadwhitacre chadwhitacre merged commit 9e43007 into main Jun 20, 2023
@chadwhitacre chadwhitacre deleted the cwlw/factor-out-auth branch June 20, 2023 19:13
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.

2 participants