'Checking the package.json version number on new Pull Requests

Is there any way to check the version number in package.json to make sure it was changed as part of the pull request requirements?



Solution 1:[1]

The package.json file will have its own version number which you can look out for in a among the commits in a PR.

Whether you can reject a PR automatically if the version hasn't been updated, though, I'm not sure; but it's certainly visible to anyone with access to view PRs on a repo.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1