For more information see GitHub Flow
GitHub Flow is very lightweight (especially compared to GitFlow). This workflow uses only two kinds of branches:
- Feature branch
- Main branch (previously called master)
The feature branches are used to develop new features as well as fixes. These branches are usually created out of main.
Anything in the main branch is deployable. The main branch is expected to be deployed regularly and is considered stable.
For more information see GitHub Flow
TL;DR
- anything in the main branch is deployable
- create descriptive branches off of main
- push to named branches constantly
- open a pull request at any time
- merge only after pull request review
- deploy immediately after review
Please make sure to sign all your commits (See: git-scm).
If you want early feedback feel free to open a Draft Pull Request. When you are done, you can convert it to a standard Pull Request (or create one if you did not create a Draft Pull Request).
Generally the TeamDojo project follows the standard GitHub Pull request process.
Please make sure to sign all your commits (See: git-scm).
For bug fixes and security fixes of the current release please follow the following workflow:
- For the minor release
- Checkout current minor release branch (e.g. v2.5.x) or create if not existent from latest git tag
- Create a bugfix branch from release branch
- Fix Bug
- Create PR to release branch
- Generate new semver release
- For the main branch:
- Create a bugfix branch from
main
branch - Cherry-Pick Bugfix and commit to bugfix branch
- Create PR to
main
branch
- Create a bugfix branch from
It is mandatory to open an issue, if the task takes longer than one hour. Before you open an issue please verify there is no existing one covering your issue.
For more information see Chris Beams article.
TL;DR
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Please make sure to sign all your commits (See: git-scm).
Please make sure you don't include @mentions
or fixes
keywords in your git commit messages. These should be included in the PR body instead.
Please make sure to add your signed-off-by tag as described in our contributors file.
We decided to use DCO instead of CLA as described in CLAs and using DCO clearly. The reason for that: We need to be sure that one submitting a contribution to this repository is allowed to do this and does not violates copyrights of someone else. For that purpose you have to do some steps to to fullfil our DCO requirements:
- Read carefully our contributors file.
- Open a pull request which adds you to the contributors file to agree the DCO.
- Always add a signed-of tag to all your commits as described in the contributors file.
- Add a SPDX license header to all files your contribution will create. You can use the reuse tool with our helper script.