Skip to content

Commit 8274f99

Browse files
Merge pull request #5 from TwoStoryRobot/update-git-workflow
Update git workflow
2 parents 32a549d + 821b3bd commit 8274f99

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -315,16 +315,21 @@ Query {
315315
- Type names should use PascalCase.
316316
- Enum values should be ALL_CAPS and enum names should use PascalCase.
317317

318-
## GitHub
318+
## Git Workflow
319319

320320
- Use separate repositories for frontend and backend applications.
321321
- 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.
328333

329334
## CI / CD
330335

@@ -342,3 +347,7 @@ Query {
342347
[jest-runner-eslint]: https://www.npmjs.com/package/jest-runner-eslint
343348
[is-ci-cli]: https://www.npmjs.com/package/is-ci-cli
344349
[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

Comments
 (0)