Skip to content

Commit

Permalink
Merge pull request #62 from OxfordIHTM:dev
Browse files Browse the repository at this point in the history
edit chapter 8
  • Loading branch information
ernestguevarra authored Sep 6, 2024
2 parents 7a3eef7 + 0a3b5d8 commit 92245e0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
35 changes: 4 additions & 31 deletions 08-participating-rstudio-project.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,10 @@ Following are the general steps to take when participating in an existing R/RStu
The following diagram illustrates the steps in this process:

```{mermaid}
%%| fig.caption: A flowchart of a git-based development workflow
%%| fig.align: center
flowchart TB
clone(clone)
branch(branch)
changes("Code/make\nchanges")
commit(commit)
push(push)
pr(pull\nreqest)
merge(merge)
review{ready\nfor\nreview?}
approve{changes\napproved?}
task{new\ntask?}
clone --> branch --> changes
changes --> commit --> push
push --> review
pr --> approve
merge --> task
review -- YES --> pr
review -- NO --> changes
approve -- YES --> merge
approve -- NO--> changes
task -- YES --> branch
task -- NO --> changes
%%| label: git-workflow
%%| fig-cap: A flowchart of a git-based development workflow
%%| fig-align: center
%%| file: mermaid/git-workflow.mmd
```

## Clone the project to your local machine
Expand Down
28 changes: 28 additions & 0 deletions mermaid/git-workflow.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
flowchart TB
clone(clone)
branch(branch)
changes("Code/make\nchanges")
commit(commit)
push(push)
pr(pull\nreqest)
merge(merge)

review{ready\nfor\nreview?}
approve{changes\napproved?}
task{new\ntask?}


clone --> branch --> changes
changes --> commit --> push
push --> review
pr --> approve
merge --> task

review -- YES --> pr
review -- NO --> changes

approve -- YES --> merge
approve -- NO--> changes

task -- YES --> branch
task -- NO --> changes

0 comments on commit 92245e0

Please sign in to comment.