simple-bitbucket-commit-checker
simple-bitbucket-commit-checker copied to clipboard
Option to only check branch tip
I like this plugin :-) It seems like it is checking all the committed versions of a file for the "Check commit diff" and either it should just check the tip versions of the files, or there should be a configuration option.
What I want to do is check for developers using "
Would it solve your issue if there was a global option to only check the latest commit? An option that would ignore any configured checks for all commits except the latest.
Another solution is to make releases with a service user. There is already an option in the GUI to always allow service users to push.
So if it only checks the latest commit, what if a developer commits a change to file A with the incorrect text, then commits a change to file B. Now he does a push, would the hook look at file A or skip it because it's not the latest commit? I don't know the internals of Git as well as I should, but I think what should be checked is just the "tip" version of each file.
I'm not familiar with the concept of a service user and not sure how to integrate that into our release process. We do what seems pretty standard, working in either forks or development branches. Then creating a pull request with a couple of reviewers and once approved merging to the master branch. Then Jenkins builds on checkin, and can push the release to QA servers.
I'm thinking it should check also A in that case.