- Fork
github.com/ably/ably-control-go
- create your feature branch:
git checkout -b my-new-feature
- commit your changes (
git commit -am 'Add some feature'
) - ensure your code is formatted with
go fmt
- ensure you have added suitable tests and the test suite is passing.
- push to the branch:
git push origin my-new-feature
- create a new Pull Request.
The tests are ran against a real Ably account. For this to work ABLY_ACCOUNT_TOKEN
must be set with a valid access token.
Additionally, ABLY_CONTROL_URL
can be set to an alternative control API endpoint.
The tests can then be ran with:
go test -v
This library uses semantic versioning. For each release, the following needs to be done:
- Make sure the tests are passing in CI for the branch you're building
- Create a new branch for the release, for example
release/1.2.3
- Update the CHANGELOG.md with any customer-affecting changes since the last release and add this to the git index
- Set the
VERSION
constant inversion.go
to the new version number and add this to the git index - Create a PR for the release branch
- Once the PR is approved, merge it into
main
- Add a tag and push to origin - e.g.:
git tag v1.2.3
&&git push origin v1.2.3
- Create the release on Github, from the new tag, including populating the release notes
- Update the Ably Changelog (via headwayapp) with these changes (again, you can just copy the notes you added to the CHANGELOG)