Skip to content

Commit

Permalink
Update branch model (SkriptLang#4655)
Browse files Browse the repository at this point in the history
* Update branches.md
  • Loading branch information
TPGamesNL authored Jul 16, 2022
1 parent 63ab42e commit eb92daa
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions branches.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ Anyone with push access can create these. Core developers may use them to work
on code changes that other people would fork Skript for. Pull requests are used
to merge code from feature branches to anywhere else.

## Stable
A branch that contains the last revision current stable release or current
beta release (e.g. 2.4). Only bug fixes should be merged here. This branch is
merged to master every time bugs are fixed.

## Master
A branch that contains the next Skript release, or current alpha release.
Development on new features happens here, but bug fixes should target the
stable branch instead, unless the bugs do not exist there.
The master branch contains the latest release plus all commits merged after it: bug fixes, enhancements and features, all of it.
Pretty much all PRs should target the master branch.

## Development branches
All recent major releases except for the latest major will have a development branch, for example `dev/2.6`.
These branches will be updated only with bug fixes, here's how to update it:
- Create a new branch in your fork from the development branch and check it out locally
- [Cherry-pick](https://git-scm.com/docs/git-cherry-pick) the commits from master to be included (bug fixes)
- In case there are conflicts, you can manually apply the changes, but make sure to include both the full commit hash and the PR number (#1234) in the commit message
- Create a PR for your forked branch targeting the development branch
- Wait for approval
- Merge the PR, **not squash merge!**

0 comments on commit eb92daa

Please sign in to comment.