blake-mealey / openapi-review-action

A GitHub action that posts your OpenAPI docs as a comment to your PR whenever they change.
MIT License
2 stars 0 forks source link

Only create comment when a spec file is changed by the current commit, not the whole PR #7

Open blake-mealey opened 4 years ago

blake-mealey commented 4 years ago

Currently, comments can be created in duplicate if a commit that does not change a spec file is made in a PR after one that does change a spec file.

Solution: use the commit diff instead of the PR diff to determine whether or not to post a comment

Unknowns: how to retrieve the commit diff?