gr2m / octokit-plugin-create-pull-request

Octokit plugin to create a pull request with multiple file changes
MIT License
104 stars 28 forks source link

Use graphql to search for existing pull request #105

Closed nqkdev closed 2 years ago

nqkdev commented 2 years ago

This PR uses graphql call instead of rest API v3 to get the existing branch and pull request info. This avoids 422 status code for search requests on private/internal repositories.

Discussion on 422 status code more here: https://github.com/orgs/community/discussions/24572

gr2m commented 2 years ago

Smart! Could you look into updating tests?

gr2m commented 2 years ago

Test coverage dropped below 100%. After running npm test, you can open the coverage report at coverage/lcov-report/index.html

On MacOS/Linux, you can run

npm test && open coverage/lcov-report/index.html
github-actions[bot] commented 2 years ago

:tada: This PR is included in version 3.13.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: