Skip to content

Commit

Permalink
chore: release prep (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
gssbzn authored Oct 1, 2020
1 parent e50596d commit a663e09
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
future-release=v0.5.0
since-tag=v0.4.0
date-format=%B %d, %Y
base=CHANGELOG.md
34 changes: 32 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# Change Log
# Changelog

## [v0.5.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.5.0) (October 01, 2020)

[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.4.0...v0.5.0)

**Closed issues:**

- Wrong import path? [\#119](https://github.com/mongodb/go-client-mongodb-atlas/issues/119)

**Merged pull requests:**

- feat: add access list API [\#139](https://github.com/mongodb/go-client-mongodb-atlas/pull/139) ([gssbzn](https://github.com/gssbzn))
- 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))
- 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))
- 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))
- 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))
- feat: add IsDeleted to organizations [\#134](https://github.com/mongodb/go-client-mongodb-atlas/pull/134) ([gssbzn](https://github.com/gssbzn))
- Setting the right auth db name [\#133](https://github.com/mongodb/go-client-mongodb-atlas/pull/133) ([leofigy](https://github.com/leofigy))
- 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))
- CLOUDP-70872: Adding Third-Party Integration Settings [\#131](https://github.com/mongodb/go-client-mongodb-atlas/pull/131) ([andreaangiolillo](https://github.com/andreaangiolillo))
- chore: update supported go versions [\#130](https://github.com/mongodb/go-client-mongodb-atlas/pull/130) ([gssbzn](https://github.com/gssbzn))
- 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))
- feature: add scope support for db users [\#128](https://github.com/mongodb/go-client-mongodb-atlas/pull/128) ([gssbzn](https://github.com/gssbzn))
- Added threshold attribute [\#127](https://github.com/mongodb/go-client-mongodb-atlas/pull/127) ([PacoDw](https://github.com/PacoDw))
- Custom db roles [\#126](https://github.com/mongodb/go-client-mongodb-atlas/pull/126) ([PacoDw](https://github.com/PacoDw))
- 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))

## [v0.4.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.4.0) (August 10, 2020)

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

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

## [v0.2.0](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.2.0) (April 20, 2020)

[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.1.3...v0.2.0)

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

## [v0.1.3](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.1.3) (January 24, 2020)

[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.1.2...v0.1.3)

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

## [v0.1.2](https://github.com/mongodb/go-client-mongodb-atlas/tree/v0.1.2) (December 23, 2019)

[Full Changelog](https://github.com/mongodb/go-client-mongodb-atlas/compare/v0.1.1...v0.1.2)

**Merged pull requests:**
Expand Down
29 changes: 29 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Releasing

## Prerequisites

- [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator)

## Generating CHANGELOG

Run:

```bash
github_changelog_generator -u mongodb -p go-client-mongodb-atlas
```

And open a PR with your changes.

## Tag and Release

Feel free to use the github GUI to release, or run:

```bash
./scripts/release.sh
```

## Updating the library version

After releasing update the library version to its next desired version:
- [.github_changelog_generator](.github_changelog_generator)
- [Version](mongodbatlas/mongodbatlas.go)
2 changes: 1 addition & 1 deletion mongodbatlas/mongodbatlas.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
gzipMediaType = "application/gzip"
libraryName = "go-mongodbatlas"
// Version the version of the current API client
Version = "0.4.0" // Should be set to the next version planned to be released
Version = "0.5.0" // Should be set to the next version planned to be released
)

var (
Expand Down
39 changes: 39 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash

# Copyright 2020 MongoDB Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


set -euo pipefail

VERSION="${1-}"

if [[ -z "${VERSION}" ]]; then
echo "Please provide a version"
exit 1
fi

if [[ "${VERSION}" == v* ]]; then
echo "Please omit the 'v' when using this script"
exit 1
fi

read -p "Are you sure to release v${VERSION}? " -n 1 -r
echo # move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi

git tag -a -s "v${VERSION}" -m "v${VERSION}"
git push origin "v${VERSION}"

0 comments on commit a663e09

Please sign in to comment.