Skip to content

Commit a663e09

Browse files
authored
chore: release prep (#141)
1 parent e50596d commit a663e09

File tree

5 files changed

+105
-3
lines changed

5 files changed

+105
-3
lines changed

.github_changelog_generator

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
future-release=v0.5.0
2+
since-tag=v0.4.0
3+
date-format=%B %d, %Y
4+
base=CHANGELOG.md

CHANGELOG.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
1-
# Change Log
1+
# Changelog
2+
3+
## [v0.5.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.5.0) (October 01, 2020)
4+
5+
[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.4.0...v0.5.0)
6+
7+
**Closed issues:**
8+
9+
- Wrong import path? [\#119](https://github.com/mongodb/go-client-mongodb-atlas/issues/119)
10+
11+
**Merged pull requests:**
12+
13+
- feat: add access list API [\#139](https://github.com/mongodb/go-client-mongodb-atlas/pull/139) ([gssbzn](https://github.com/gssbzn))
14+
- CLOUDP-73368: fixing the Operation struct in the atlas go client [\#138](https://github.com/mongodb/go-client-mongodb-atlas/pull/138) ([andreaangiolillo](https://github.com/andreaangiolillo))
15+
- CLOUDP-72746: Add Performance Advisor API call to atlas go client [\#137](https://github.com/mongodb/go-client-mongodb-atlas/pull/137) ([andreaangiolillo](https://github.com/andreaangiolillo))
16+
- CLOUDP-72727: Fix LDAPConfigurationsService.Save to pass LDAPConfiguration as input [\#136](https://github.com/mongodb/go-client-mongodb-atlas/pull/136) ([andreaangiolillo](https://github.com/andreaangiolillo))
17+
- CLOUDP-72643: Add LDAP Configurations to atlas go client [\#135](https://github.com/mongodb/go-client-mongodb-atlas/pull/135) ([andreaangiolillo](https://github.com/andreaangiolillo))
18+
- feat: add IsDeleted to organizations [\#134](https://github.com/mongodb/go-client-mongodb-atlas/pull/134) ([gssbzn](https://github.com/gssbzn))
19+
- Setting the right auth db name [\#133](https://github.com/mongodb/go-client-mongodb-atlas/pull/133) ([leofigy](https://github.com/leofigy))
20+
- doc: update and fix a lot of the go doc references [\#132](https://github.com/mongodb/go-client-mongodb-atlas/pull/132) ([gssbzn](https://github.com/gssbzn))
21+
- CLOUDP-70872: Adding Third-Party Integration Settings [\#131](https://github.com/mongodb/go-client-mongodb-atlas/pull/131) ([andreaangiolillo](https://github.com/andreaangiolillo))
22+
- chore: update supported go versions [\#130](https://github.com/mongodb/go-client-mongodb-atlas/pull/130) ([gssbzn](https://github.com/gssbzn))
23+
- CLOUDP-70755: Add DELETE /groups/{GROUP-ID}/users/{USER-ID} to atlas go client [\#129](https://github.com/mongodb/go-client-mongodb-atlas/pull/129) ([andreaangiolillo](https://github.com/andreaangiolillo))
24+
- feature: add scope support for db users [\#128](https://github.com/mongodb/go-client-mongodb-atlas/pull/128) ([gssbzn](https://github.com/gssbzn))
25+
- Added threshold attribute [\#127](https://github.com/mongodb/go-client-mongodb-atlas/pull/127) ([PacoDw](https://github.com/PacoDw))
26+
- Custom db roles [\#126](https://github.com/mongodb/go-client-mongodb-atlas/pull/126) ([PacoDw](https://github.com/PacoDw))
27+
- CLOUDP-69426: Atlas go client - Update PeersService.List to use providerName [\#125](https://github.com/mongodb/go-client-mongodb-atlas/pull/125) ([andreaangiolillo](https://github.com/andreaangiolillo))
28+
29+
## [v0.4.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.4.0) (August 10, 2020)
230

3-
## [0.4.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.4.0) (August 10, 2020)
431
[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.3.0...0.4.0)
532

633
**Implemented enhancements:**
@@ -70,6 +97,7 @@
7097
- Improve docs [\#61](https://github.com/mongodb/go-client-mongodb-atlas/pull/61) ([gssbzn](https://github.com/gssbzn))
7198

7299
## [v0.2.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.2.0) (April 20, 2020)
100+
73101
[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.1.3...v0.2.0)
74102

75103
**Merged pull requests:**
@@ -108,6 +136,7 @@
108136
- Simplify tests [\#46](https://github.com/mongodb/go-client-mongodb-atlas/pull/46) ([gssbzn](https://github.com/gssbzn))
109137

110138
## [v0.1.3](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.1.3) (January 24, 2020)
139+
111140
[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.1.2...v0.1.3)
112141

113142
**Implemented enhancements:**
@@ -132,6 +161,7 @@
132161
- Whitelist [\#35](https://github.com/mongodb/go-client-mongodb-atlas/pull/35) ([PacoDw](https://github.com/PacoDw))
133162

134163
## [v0.1.2](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.1.2) (December 23, 2019)
164+
135165
[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.1.1...v0.1.2)
136166

137167
**Merged pull requests:**

RELEASING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Releasing
2+
3+
## Prerequisites
4+
5+
- [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator)
6+
7+
## Generating CHANGELOG
8+
9+
Run:
10+
11+
```bash
12+
github_changelog_generator -u mongodb -p go-client-mongodb-atlas
13+
```
14+
15+
And open a PR with your changes.
16+
17+
## Tag and Release
18+
19+
Feel free to use the github GUI to release, or run:
20+
21+
```bash
22+
./scripts/release.sh
23+
```
24+
25+
## Updating the library version
26+
27+
After releasing update the library version to its next desired version:
28+
- [.github_changelog_generator](.github_changelog_generator)
29+
- [Version](mongodbatlas/mongodbatlas.go)

mongodbatlas/mongodbatlas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
gzipMediaType = "application/gzip"
2626
libraryName = "go-mongodbatlas"
2727
// Version the version of the current API client
28-
Version = "0.4.0" // Should be set to the next version planned to be released
28+
Version = "0.5.0" // Should be set to the next version planned to be released
2929
)
3030

3131
var (

scripts/release.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright 2020 MongoDB Inc
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
18+
set -euo pipefail
19+
20+
VERSION="${1-}"
21+
22+
if [[ -z "${VERSION}" ]]; then
23+
echo "Please provide a version"
24+
exit 1
25+
fi
26+
27+
if [[ "${VERSION}" == v* ]]; then
28+
echo "Please omit the 'v' when using this script"
29+
exit 1
30+
fi
31+
32+
read -p "Are you sure to release v${VERSION}? " -n 1 -r
33+
echo # move to a new line
34+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
35+
exit 1
36+
fi
37+
38+
git tag -a -s "v${VERSION}" -m "v${VERSION}"
39+
git push origin "v${VERSION}"

0 commit comments

Comments
 (0)