Skip to content

Commit a307dd6

Browse files
committed
Document process for merging branches after a release
1 parent fd42cf0 commit a307dd6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ page.
9595
The PHP library uses [semantic versioning](http://semver.org/). Do not break
9696
backwards compatibility in a non-major release or your users will kill you.
9797

98+
Before proceeding, ensure that the `master` branch is up-to-date with all code
99+
changes in this maintenance branch. This is important because we will later
100+
merge the ensuing release commits up to master with `--strategy=ours`, which
101+
will ignore changes from the merged commits.
102+
98103
A version constant may be added at a later date (see:
99104
[PHPLIB-131](https://jira.mongodb.org/browse/PHPLIB-131)). For now, there is
100105
nothing to update.
@@ -113,6 +118,17 @@ $ git tag -a -m "Release X.Y.Z" X.Y.Z
113118
$ git push --tags
114119
```
115120

121+
### Merge the maintenance branch up to master
122+
123+
```
124+
$ git checkout master
125+
$ git merge vX.Y --strategy=ours
126+
$ git push
127+
```
128+
129+
The `--strategy=ours` option ensures that all changes from the merged commits
130+
will be ignored.
131+
116132
### Publish release notes
117133

118134
The following template should be used for creating GitHub release notes via

0 commit comments

Comments
 (0)