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

feat: allow octokit to be dependency injected #229

Merged
merged 6 commits into from
Aug 19, 2019
Merged

feat: allow octokit to be dependency injected #229

merged 6 commits into from
Aug 19, 2019

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Aug 16, 2019

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 16, 2019
@bcoe bcoe requested a review from chingor13 August 16, 2019 22:41
src/github.ts Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 17, 2019

Codecov Report

Merging #229 into master will increase coverage by 0.38%.
The diff coverage is 72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #229      +/-   ##
==========================================
+ Coverage   77.27%   77.65%   +0.38%     
==========================================
  Files          21       21              
  Lines        2517     2547      +30     
  Branches      188      190       +2     
==========================================
+ Hits         1945     1978      +33     
+ Misses        559      557       -2     
+ Partials       13       12       -1
Impacted Files Coverage Δ
src/release-pr.ts 82.85% <100%> (+0.16%) ⬆️
src/github.ts 55.4% <70.52%> (+1.8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d83bb6...9d7e806. Read the comment docs.

Copy link
Contributor

@chingor13 chingor13 left a comment

Choose a reason for hiding this comment

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

A few nits. The refactoring could be done in another PR.

src/github.ts Show resolved Hide resolved
src/github.ts Outdated Show resolved Hide resolved
src/github.ts Outdated Show resolved Hide resolved
src/github.ts Outdated Show resolved Hide resolved
src/github.ts Outdated Show resolved Hide resolved
@@ -79,30 +86,76 @@ interface GitHubPR {

export class GitHub {
octokit: Octokit;
request: Function;
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: what's the default visibility for these variables?

@bcoe bcoe merged commit ac05dc6 into master Aug 19, 2019
@bcoe bcoe deleted the octokit branch August 19, 2019 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants