Releases and Workflows
Release Scheduleβ
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 Updates Page. 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.
Deployment Processβ
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:
- A series of CI checks run against the new code (lint, test, build, Docker smoke test, security audit). The PR cannot be merged if any required check fails
- If
yarn.lockwas modified, Liss-Bot adds a comment summarising which packages changed
After the PR is merged into master:
- If code files changed and the version in package.json wasn't already bumped, the patch version is auto-incremented and committed (bump-and-tag.yml)
- A git tag is created and pushed for the new version
- The tag push triggers Docker image builds for
linux/amd64,linux/arm64andlinux/arm/v7, published to both DockerHub and GHCR (docker-build-publish.yml) - If the tag is a major or minor version bump, a draft GitHub release is created with auto-generated release notes (draft-release.yml). Patch-only bumps skip the release
Manual tagging is also available via the manual-tag.yml workflow. You can either provide a specific version (e.g. 3.2.0) or leave it empty to auto-bump the patch version. This is useful if the automated flow didn't trigger or you need to cut a release outside the normal PR flow.
Git Strategyβ
Git Flowβ
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 π
Git Branch Namingβ
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
Commit Emojisβ
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
PR Guidelinesβ
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!
Automated Workflowsβ
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.
CI Checksβ
These run on every pull request targeting master. All required checks must pass before merging.
Releasesβ
Issue Managementβ
Documentationβ
Otherβ
| Action | Description |
|---|---|
| Mirror to Codeberg | Pushes a copy of the repo to Codeberg weekly and on manual dispatch |