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(review): allow raw diff for reviewPullRequest #137

Merged
merged 4 commits into from Oct 8, 2020

Conversation

chingor13
Copy link
Contributor

No description provided.

@chingor13 chingor13 requested a review from a team October 6, 2020 19:03
@chingor13 chingor13 requested a review from a team as a code owner October 6, 2020 19:03
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 6, 2020
@chingor13 chingor13 changed the title refactor: use raw diff in CLI feat(review): allow raw diff for reviewPullRequest Oct 6, 2020
@codecov
Copy link

codecov bot commented Oct 6, 2020

Codecov Report

Merging #137 into master will decrease coverage by 0.03%.
The diff coverage is 83.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
- Coverage   86.34%   86.30%   -0.04%     
==========================================
  Files          22       41      +19     
  Lines        2145     3986    +1841     
  Branches      150      296     +146     
==========================================
+ Hits         1852     3440    +1588     
- Misses        292      538     +246     
- Partials        1        8       +7     
Impacted Files Coverage Δ
src/bin/workflow.ts 81.05% <0.00%> (+1.67%) ⬆️
src/bin/handle-git-dir-change.ts 79.28% <18.18%> (+6.11%) ⬆️
src/github-handler/diff-utils.ts 96.87% <94.54%> (-3.13%) ⬇️
...-hunk-scope-handler/remote-patch-ranges-handler.ts 89.91% <100.00%> (-0.64%) ⬇️
src/github-handler/comment-handler/index.ts 100.00% <100.00%> (ø)
src/index.ts 99.54% <100.00%> (ø)
...-hunk-scope-handler/remote-patch-ranges-handler.ts 84.87% <0.00%> (ø)
...er/code-suggester/src/github-handler/diff-utils.ts 96.87% <0.00%> (ø)
...ndler/comment-handler/make-review-handler/index.ts 100.00% <0.00%> (ø)
...ggester/src/github-handler/pull-request-handler.ts 97.18% <0.00%> (ø)
... and 15 more

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 525d011...7271b92. Read the comment docs.

},
]);

const stubMakePr = proxyquire.noCallThru()(
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like we probably should be able to use sinon, rather than proxyquire here? It feels a bit weird to me to have both approaches to mocking. I've been landing on a pattern where, if I'm tempted to use proxyquire, I'll instead encapsulate behavior inside a helper method and mock that with sinon.

Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

No need to consider my review blocking 👍

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

2 participants