Merging dev to main
To create an official public version of the plugin, you merge dev into main.
---
title: Development workflow
---
gitGraph
commit id: "initial" tag: "v0.1.0"
branch dev
checkout dev
commit
branch feature1
checkout feature1
commit
commit
checkout dev
merge feature1
branch feature2
checkout feature2
commit
commit
checkout dev
merge feature2
commit id: "update version"
checkout main
merge dev tag: "v0.2.0"
To merge dev into main:
- Open a pull request
- Title: Merge dev to main for
vX.Y.Z - Description: optionally summarize changes
- Title: Merge dev to main for
- Review the files changed, and have someone else do the same to approve the PR
- Make sure the merge is not squashed. You need the individual commits on dev because each was a feature's PR.
- Perform the merge.
- Go to the releases page and draft a new release
- Choose a new tag and call it
vX.Y.Z(whatever your version was) - The release title should be the same as the tag
- Click Generate Release Notes to neatly put all the dev commits (which were feature PRs) into a list of what's changed since the last release
- Add the
.jarbinary to the release- Check out
mainlocally and run a./gradlew clean buildto create the jar to upload underroot/build/libs/MCTManager-X.Y.Z.jar
- Check out
- Publish the release
- Make sure all feature branches get the latest version of
devto prevent excessive merge conflicts