We are woking on implementing pre-commit guidelines(ex: Adding comments format to the commit) for all the commits done by developers into the repositories.
While trying to find the pre-commit hooks in the repositories setting i couldn't find any hooks options. Could you please guide us for the same ?
Also, if there is any workarounds for this please let us know.
There is no support for server-side hooks. There's a feature request here.
However, you can implement client-side hooks. You can optionally use tools like Husky or Overcommit that help manage the hooks.
Client-side hooks can be bypassed if misconfigured or maliciously, so it's not guaranteed. If you want to detect that the client didn't work with a check on the server, Flowie (a Bitbucket app we maintain) can create merge checks to prevent PRs with issues from being merged.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.