megaphone icon We're improving your developer experience.
Edit on GitHub

Mattermost cherry-pick process

The self-managed releases are cut based off of the Mattermost Cloud release tags (e.g Mattermost Server v6.3 release was based off of cloud-2021-12-08-1 Cloud release tag) in the server, webapp, enterprise, and api-reference repos. See the Handbook release process for more details.

The Mobile and Desktop app release branches are based off of master branch.

Developer process 

When your PR is required on a release branch (e.g. for a dot release or to fix a regression for an upcoming release), you will follow the cherry-picking process.

  1. Make a PR to ‘master’ like normal.

  2. Add the appropriate milestone and the CherryPick/Approved label.

  3. When your PR is approved, it will be assigned back to you to perform the merge and any cherry picking if necessary.

  4. Merge the PR.

  5. An automated cherry-pick process will try to cherry-pick the PR. If the automatic process succeeds, a new PR pointing to the correct release branch will open with all the appropriate labels. If there are no additional changes from the original PR for the cherry-pick, it can be merged without further review.

  6. If the automated cherry-pick fails, the developer will need to cherry-pick the PR manually. Cherry-pick the master commit back to the appropriate releases. If the release branches have not been cut yet, leave the labels as-is and cherry-pick once the branch has been cut. The release manager will remind you to finish your cherry-pick.

  7. Set the CherryPick/Done label when completed.

    • If the cherry-pick fails, the developer needs to apply the cherry-pick manually.
    • Cherry-pick the commit from master to the affected releases. See the steps below:
  8. Run the checks for lint and tests.

  9. Push your changes directly to the remote branch if the check style and tests passed.

  10. No new pull request is required unless there are substantial merge conflicts.

  11. Remove the CherryPick/Approved label and apply the CherryPick/Done label.

Reviewer process 

If you are the second reviewer reviewing a PR that needs to be cherry-picked, do not merge the PR. If the submitter is a core team member, you should set the Reviews Complete label and assign it to the submitter to cherry-pick. If the submitter is a community member who is not available to cherry-pick their PR or can not do it themselves, you should follow the cherry-pick process above.