...
After a developer is assigned a Jira task, they begin work.
Make sure that the Jira task has a good description and then move it to
In Progress
Expand | ||
---|---|---|
| ||
Ideally the description in the Jira task is written in a way that it can be copied and pasted as the description of the Pull Request. This is very subjective, but the description should:
|
Unless you’re the person most familiar with the area of the codebase that you are changing, first discuss the changes with that person
Expand | ||
---|---|---|
| ||
There will always be improvements underway in the CHEFS code, and any new work must align with those improvements. The end goal of these improvements is code that is:
Information that everyone should be familiar with: |
Using the
type
from Conventional Commits, decide what the primary type of work is, such asfeat
for a new feature
Expand | ||
---|---|---|
| ||
|
Ensure that the
main
branch in your cloned fork is up to date
Expand | ||
---|---|---|
| ||
The
|
With an example Jira task
FORMS-1234
that is a newfeat
, create a branch off yourmain
with a name likefeat/1234-new-map-component
Expand | ||
---|---|---|
| ||
You can name the branch anything you want, but:
|
Crank out some code and tests (or tests and code, for TDD bonus points) and whatever docs are needed
Periodically commit your work with messages like:
Code Block feat: FORMS-1234 description of the change This is the body of the commit message and provides more detail for anyone in the future who is looking into this commit.
Expand | ||
---|---|---|
| ||
We want everyone to use this standard way of writing commit messages so that in the future we can use them to automatically generate a changelog. |
Run the unit tests using
Terminal
→Run Task...
→Unit Tests
and check the test coverage of your new code
Expand | ||
---|---|---|
| ||
Test coverage reports appear in:
Refer to the backend unit test documentation for details on:
|
Publish your branch
Create a Pull Request (format, draft, read diff)
GitHub Actions
Do a self review (diff)
(somewhere above: limit size of change)
Run the deploy Action
test
Mark as ready for review
Add reviewers
Talk to reviewers
Keep up to date
Deploy Action
merge and message
Push Action
Undeploy Action
Code Climate / etc?
Jira: moving tickets, rewrite description
What is the intention of a PR review? Ship / Show / Ask. nitpicks. style guide. choose your battles