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(framework-core): multiline review comments for #93

Merged
merged 1 commit into from Sep 2, 2020

Conversation

TomKristie
Copy link
Contributor

@TomKristie TomKristie commented Aug 21, 2020

Make a review to a PR with several multiline comments given suggestions all in scope of the PR.
Out of scope/invalid PR suggestions are noted in a timeline comment afterwards.

The multiline comment function has been manually tested in a side repository...

All of the submodules are tested above 97% I believe. Some of the index.ts files are tested less. It may be a bit pedantic to test them since they some just forward exports and/or have no conditionals, but they are still dropping the test scores!

TODO after this is merged:

  • create main interface and documentation ( just import the src/comment-handler to src/, and also do user parameter type checking. i.e. if they provide an empty change set, terminate)
  • a comment limit. i.e. users do not want > 1000 comments!

Towards #59

@TomKristie TomKristie requested review from chingor13 and a team August 21, 2020 23:56
@TomKristie TomKristie requested a review from a team as a code owner August 21, 2020 23:56
@codecov
Copy link

codecov bot commented Aug 21, 2020

Codecov Report

❗ No coverage uploaded for pull request base (comment-pr@ecdb615). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             comment-pr      #93   +/-   ##
=============================================
  Coverage              ?   85.55%           
=============================================
  Files                 ?       26           
  Lines                 ?     2202           
  Branches              ?      145           
=============================================
  Hits                  ?     1884           
  Misses                ?      317           
  Partials              ?        1           

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 ecdb615...b08eee1. Read the comment docs.

@TomKristie
Copy link
Contributor Author

I am taking the next few days off, so you'll have to defer to @chingor13 . If it's not merged by Aug 31 I will take a peek.

@chingor13 chingor13 merged commit ba0c764 into googleapis:comment-pr Sep 2, 2020
chingor13 added a commit that referenced this pull request Sep 25, 2020
…n pull requests (#105)

* feat(patch text to hunk bounds): support regex for patch texts (#83)

* fix(patch text to hunk bounds): support regex for patch texts

* more comments and more tests

* fix(framework-core): core-library get remote patch ranges (#84)

* fix(framework-core): given files old content and new content, compute the valid hunks (#86)

* fix(framework-core): parse raw changes to ranges

* refactor(framework-core): rename modules, functions, & re-org project structure (#89)

* fix(framework-core): hunk to patch object (#91)

* feat: build failure message from invalid hunks (#90)

* test: add failing stub and test for building the failure message

* fix: implement message building

* fix: use original line numbers in error message

* docs: add docstring

* docs: add note about empty input returning empty string

* feat(framework-core): comment on prs given suggestions (#93)

* feat(framework-core): main interface for create review on a pull request (#114)

* feat(framework-core): main interface for create review on a pull request

* docs: fix typo

* nits and typos...

* gts lint warning fix

* fix(framework-core): combine review comments (#116)

* fix(framework-core): collapsing timeline and inline comments into single review

* test: fixed imports

* added case when there are out of scope suggestions and no valid suggestions

* feat(framework-core): return review number and variable renaming (#117)

* feat(framework-core): return review number and variable renaming

* lint

Co-authored-by: Jeff Ching <chingor@google.com>
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
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.

None yet

2 participants