Skip to content

Commit 99e736a

Browse files
committed
Relax branch-alias on dev-master to avoid update on each release
1 parent bccc36a commit 99e736a

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

RELEASING.md

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,10 @@ changes in this maintenance branch. This is important because we will later
4141
merge the ensuing release commits up to master with `--strategy=ours`, which
4242
will ignore changes from the merged commits.
4343

44-
## Update composer.json and CI matrices
44+
## Update CI matrices
4545

4646
This is especially important before releasing a new minor version.
4747

48-
Ensure that the extension requirement and branch alias in `composer.json` are
49-
correct for the library version being released. For example, the 1.15.0 release
50-
of the library should depend on version `^1.15.0` of the extension and master
51-
branch alias should be `1.15.x-dev`.
52-
5348
If this is the first release of a minor version for the library, it is likely
5449
following an extension release. The `vars` for calling `compile extension` from
5550
`build-extension.yml` in the Evergreen configuration must be updated:
@@ -90,21 +85,22 @@ After releasing a new major or minor version (e.g. 1.9.0), a maintenance branch
9085
1.9.1) would then be done within that branch and any development for the next
9186
major or minor release can continue in master.
9287

93-
After creating a maintenance branch, the `extra.branch-alias.dev-master` field
94-
in the master branch's `composer.json` file should be updated. For example,
95-
after branching v1.9, `composer.json` in the master branch may still read:
88+
When work begins on a major new version, create a maintenance branch for the
89+
last minor version and update the `extra.branch-alias.dev-master` field
90+
in the master branch's `composer.json` file. For example, after branching v1.99,
91+
`composer.json` in the master branch may still read:
9692

9793
```
9894
"branch-alias": {
99-
"dev-master": "1.9.x-dev"
95+
"dev-master": "1.x-dev"
10096
}
10197
```
10298

10399
The above would be changed to:
104100

105101
```
106102
"branch-alias": {
107-
"dev-master": "1.10.x-dev"
103+
"dev-master": "2.x-dev"
108104
}
109105
```
110106

@@ -124,24 +120,6 @@ $ git checkout -b vX.Y
124120
$ git push mongodb vX.Y
125121
```
126122

127-
Update the master branch alias in `composer.json`:
128-
129-
```diff
130-
"extra": {
131-
"branch-alias": {
132-
- "dev-master": "1.15.x-dev"
133-
+ "dev-master": "1.16.x-dev"
134-
}
135-
},
136-
```
137-
138-
Commit and push this change:
139-
140-
```console
141-
$ git commit -m "Master is now X.Y-dev" composer.json
142-
$ git push mongodb
143-
```
144-
145123
### After releasing a patch version
146124

147125
If this was a patch release, the maintenance branch must be merged up to master:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"extra": {
5555
"branch-alias": {
56-
"dev-master": "1.19.x-dev"
56+
"dev-master": "1.x-dev"
5757
}
5858
},
5959
"config": {

0 commit comments

Comments
 (0)