Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Commit checker is not respected when merging a commit via a pull-request. #83

@coreycsteele

Description

@coreycsteele
  1. Create and clone a new repo locally
  2. In Bitbucket go to Settings -> Hooks
  3. “Enable” the Simple Bitbucket Commit Checker
  4. Go all the way to the bottom and click
  • Click on “New rule Group”
    • Matching commits are “Accepted”
    • The group matches a commit if “no rules match”
  • Click on “New Rule”
    • For the regex to match type in something like “OOPS”
    • Add a message to the commiter: “Please remove OOPS from commit message”
  1. Save the hook

What happens if you leave the branch field empty to work on all branches.
Then the hook prevents the push to the branches.

For sake of arguement why would you disallow this for only master?
We have our reviewers listed out in the commit message.
Our default commit message template fills out the default commit message with the words “Reviewed by NOBODY (OOPS!)” as there is no reviewer until after it goes through code review.

We use the commit checker to make sure the worrd “OOPS” is not in any commit message when commiting to master or release branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions