From b07a74d8e970317be2230f338aba1fc6badfadc7 Mon Sep 17 00:00:00 2001 From: Xavier Moreno Date: Sat, 10 Apr 2021 01:14:59 +0200 Subject: [PATCH] docs(contributing): add explanation for release notes usage --- CONTRIBUTING.md | 8 +++++--- RELEASE_NOTES.md | 2 +- azure-pipelines.yml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5141c1d8..aaa8d9ab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,8 @@ The class name convention should be `Device Model + Type + Controller`. For exam Note that this project will only accept the mapping that the original controller would follow with its original hub, or the closest behaviour we can get. +This is a [commit](https://github.com/xaviml/controllerx/commit/38ee4b03ac31bf966523cc63c0200567f912f201) of a complete example of adding a new device, it can be used as a reference. + ## Imports Run the following to fix imports order: @@ -122,7 +124,7 @@ git checkout -b - / ## Deployment -Thanks to the Azure Pipelines, we are able to deploy by just creating a new tag on git. So first, we will need to bump version with `commitizen` by running the following line in the `main` branch: +Thanks to the Azure Pipelines, we are able to deploy by just creating a new tag on git. Before proceding with new version bump, make sure to have all the changes for this release in the `RELEASE_NOTES.md` file. Finally, we will need to bump version with `commitizen` by running the following line in the `main` branch: ```shell cz bump --no-verify @@ -131,7 +133,7 @@ cz bump --no-verify `--prerelease beta` tag can be added to create a pre-release. Note that you can also add `--dry-run` to see which version will bump without commiting anything. Then, we can directly push the tags: ```shell -git push origin main --tags +git push origin HEAD --tags ``` -This will automatically generate a GitHub release with the changes for that release. +This will automatically generate a GitHub release with the changes for that release, and the release from the `RELEASE_NOTES.md` file. diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index fb0e54f8..5ffed189 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,7 +2,7 @@ _This minor change does not contain any breaking changes._ _Note: Remember to restart the AppDaemon addon/server after updating to a new version._ -_PRERELEASE_NOTE_ +PRERELEASE_NOTE