@@ -315,16 +315,21 @@ Query {
315
315
- Type names should use PascalCase.
316
316
- Enum values should be ALL_CAPS and enum names should use PascalCase.
317
317
318
- ## GitHub
318
+ ## Git Workflow
319
319
320
320
- Use separate repositories for frontend and backend applications.
321
321
- e.g.: repo-web, repo-mobile, and repo-api
322
- - Projects should follow Git flow, and have both a ** main** and ** dev**
323
- branch.
324
- - Open source apps or small projects can use a single ** main** branch.
325
- - Both ** dev** and ** main** should be protected branches.
326
- - Status checks must pass before merging.
327
- - Require branches are up-to-date.
322
+ - Repositories should follow [ Gitlab flow] .
323
+ - Gitlab flow uses branching workflows instead of forks whenever possible.
324
+ - Repositories should name their default branch ** main** .
325
+ - If more fine tuned control is needed:
326
+ - Use a [ production branch] or [ environment branches] for web apps.
327
+ - Use [ release branches] or tags for external software (e.g. npm packages).
328
+ - ** main** should be a protected branch, as well as any environment /
329
+ production branch. We use these settings:
330
+ - Status checks must pass before merging.
331
+ - Require at least one approving review.
332
+ - Require branches are up-to-date.
328
333
329
334
## CI / CD
330
335
@@ -342,3 +347,7 @@ Query {
342
347
[ jest-runner-eslint ] : https://www.npmjs.com/package/jest-runner-eslint
343
348
[ is-ci-cli ] : https://www.npmjs.com/package/is-ci-cli
344
349
[ testing trophy ] : https://kentcdodds.com/blog/write-tests
350
+ [ Gitlab flow ] : https://docs.gitlab.com/ee/topics/gitlab_flow.html
351
+ [ production branch ] : https://docs.gitlab.com/ee/topics/gitlab_flow.html#production-branch-with-gitlab-flow
352
+ [ environment branches ] : https://docs.gitlab.com/ee/topics/gitlab_flow.html#environment-branches-with-gitlab-flow
353
+ [ release branches ] : https://docs.gitlab.com/ee/topics/gitlab_flow.html#release-branches-with-gitlab-flow
0 commit comments