simple-bitbucket-commit-checker icon indicating copy to clipboard operation
simple-bitbucket-commit-checker copied to clipboard

Can SBCC return a valid error when commit is done through bitbucket gui?

Open glendagrageda opened this issue 6 years ago • 3 comments

Can SBCC return a valid error when commit is done through bitbucket gui? When we try to perform a edit and commit directly in the Bitbucket GUI, when a commit message does not satisfy the regex used in the SBCC plugin, it will return an error "You don't have write permissions for this branch" instead of the usual error message SBCC returns. Just to note that our regex can be found below [.{1,}](?=[\s\S]+[a-zA-Z])(?![\s\S]([A-Za-z])\1{5})([\s\S]).{30,} This regex would accept a commit message like below. [ABC-123] README.md edited online with Bitbucket

Sample screenshot is attached below. source_of_readme_md_-dewdrop-scripts-_codecloud

glendagrageda avatar Jan 07 '19 23:01 glendagrageda

No not possible right now.

Last time I checked I could not find any way of implementing it in a better, user friendly, way. I could not find any better API provided by Atlassian.

tomasbjerre avatar Jan 08 '19 06:01 tomasbjerre

Do you have a support ticket opened to atlassian about this issue? We'll just use it as reference

glendagrageda avatar Jan 09 '19 16:01 glendagrageda

No I have not.

tomasbjerre avatar Jan 09 '19 17:01 tomasbjerre