Working on a python package (in github), where the version is kept in the file:
<package>/__init__.py
like this:
__version__ = "1.0.3"
How to automatically disallow pull request to master if this file has no changes?
Working on a python package (in github), where the version is kept in the file:
<package>/__init__.py
like this:
__version__ = "1.0.3"
How to automatically disallow pull request to master if this file has no changes?
You have the notion of checks for a GitHub Pull Request
That includes a build report, with an automatic build which could, as part of this build, check if the version has changed or not (compared to the target branch).
If not, the build can stop right there in failure.
An alternative approach would be to force the update of that version with a tool like semantic-release/semantic-release
.