We're using Semantic Versioning, to indicate major, minor and patch versions. You can find the current version number in the readme, and check your apps version under the config menu. The version number is pulled from the package.json file.
Typically there is a new major release every 2 weeks, usually on Sunday, and you can view these under the Releases Page. Each new version will also have a corresponding tag on GitHub, and each major release will also result in the creation of a new tag on DockerHub, so that you can fix your container to a certain version.
For a full breakdown of each change, you can view the Changelog. Each new feature or significant change needs to be submitted through a pull request, which makes it easy to review and track these changes, and roll back if needed.
All changes and new features are submitted as pull requests, which can then be tested, reviewed and (hopefully) merged into the master branch. Every time there is a change in the major version number, a new release is published. This usually happens every 2 weeks, on a Sunday.
When a PR is opened:
- The feature branch is built, and deployed as a Netlify instance. This can be accessed at:
https://deploy-preview-[pr-number]--dashy-dev.netlify.app
, and this URL as well as a link to the build logs are added as a comment on the PR by Netlify bot - Depending on what files were modified, the bot may also add a comment to remind the author of useful info
- A series of checks will run on the new code, using GH Actions, and prevent merging if they fail. This includes: linting, testing, code quality and complexity checking, security scanning and a spell check
- If a new dependency was added, liss-bot will comment with a summary of those changes, as well as the cost of the module, version, and any security concerns. If the bundle size has increased, this will also be added as a comment
After the PR is merged:
- The app is build, and deployed to: https://dev.dashy.to
- A new tag in GitHub is created, using the apps version number (from the package.json)
- The Docker container is built, and published under the
:latest
tag on DockerHub and GHCR
When a new major version is released:
- A new GitHub release is created and published, under new versions tag, with info from the changelog
- The container is built and published under a new tag will be created on DockerHub, called
:release-[version]
- An announcement is opened in GitHub discussions, outlining the main changes, where users can comment and ask questions
Like most Git repos, we are following the Github Flow standard.
- Create a branch (or fork if you don'd have write access)
- Code some awesome stuff, then add and commit your changes
- Create a Pull Request, complete the checklist and ensure the build succeeds
- Follow up with any reviews on your code
- Merge 🎉
The format of your branch name should be something similar to: [TYPE]/[TICKET]_[TITLE]
For example, FEATURE/420_Awesome-feature
or FIX/690_login-server-error
Using a single emoji at the start of each commit message, to indicate the type task, makes the commit ledger easier to understand, plus it looks cool.
- 🎨
:art:
- Improve structure / format of the code. - ⚡️
:zap:
- Improve performance. - 🔥
:fire:
- Remove code or files. - 🐛
:bug:
- Fix a bug. - 🚑️
:ambulance:
- Critical hotfix - ✨
:sparkles:
- Introduce new features. - 📝
:memo:
- Add or update documentation. - 🚀
:rocket:
- Deploy stuff. - 💄
:lipstick:
- Add or update the UI and style files. - 🎉
:tada:
- Begin a project. - ✅
:white_check_mark:
- Add, update, or pass tests. - 🔒️
:lock:
- Fix security issues. - 🔖
:bookmark:
- Make a Release or Version tag. - 🚨
:rotating_light:
- Fix compiler / linter warnings. - 🚧
:construction:
- Work in progress. - ⬆️
:arrow_up:
- Upgrade dependencies. - 👷
:construction_worker:
- Add or update CI build system. - ♻️
:recycle:
- Refactor code. - 🩹
:adhesive_bandage:
- Simple fix for a non-critical issue. - 🔧
:wrench:
- Add or update configuration files. - 🍱
:bento:
- Add or update assets. - 🗃️
:card_file_box:
- Perform database schema related changes. - ✏️
:pencil2:
- Fix typos. - 🌐
:globe_with_meridians:
- Internationalization and translations.
For a full list of options, see gitmoji.dev
Once you've made your changes, and pushed them to your fork or branch, you're ready to open a pull request!
For a pull request to be merged, it must:
- Must be backwards compatible
- The build, lint and tests (run by GH actions) must pass
- There must not be any merge conflicts
When you submit your PR, include the required info, by filling out the PR template. Including:
- A brief description of your changes
- The issue, ticket or discussion number (if applicable)
- For UI relate updates include a screenshot
- If any dependencies were added, explain why it was needed, state the cost associated, and confirm it does not introduce any security issues
- Finally, check the checkboxes, to confirm that the standards are met, and hit submit!
Dashy makes heavy use of GitHub Actions to fully automate the checking, testing, building, deploying of the project, as well as administration tasks like management of issues, tags, releases and documentation. The following section outlines each workflow, along with a link the the action file, current status and short description. A lot of these automations were made possible using community actions contributed to GH marketplace by some amazing people.