GitRoot

Craft your forge // Build your project // Grow your community freely
 1---
 2name: grafter
 3purl: pkg:gitroot/gitroot/grafter@0.0.5?checksum=sha256:de248bc6ab15c2a49b45339e3802792a87fff4f5b63465cbd03c63dd304108a2&registry=https:%2F%2Fgitroot.dev%2Freleases%2F0.5.0
 4homepage: https://gitroot.dev/app/plugins/grafter/
 5doc: https://gitroot.dev/app/plugins/grafter/doc.html
 6changelog: https://gitroot.dev/app/plugins/grafter/CHANGELOG.html
 7---
 8
 9Every time you (or a contributor) push a branch, grafter plugin will create a `grafts/$nameBranch.md` in the git branch. This file is all you need to know to review, discuss, merge this branch. This is the start of this file:
10
11```md
12---
13target: main
14status: draft
15reviewers: []
16---
17```
18
19You can discuss/review changes directly in this file or in the code. Status is `draft` when creating. Then user can set it at `review`, when the statu sis review, each change in the repository is added in this file:
20
21````md
22## Push 1 commit
23
24### :ok_hand: add test task
25
26(5c87370cec82226b15259b918e4ed54eaa313472)
27
28- +- [app/libs/rust/plugin/src/gitroot.rs](../app/libs/rust/plugin/src/gitroot.rs)
29
30```diff
31--- a/app/libs/rust/plugin/src/gitroot.rs
32+++ b/app/libs/rust/plugin/src/gitroot.rs
33@@ -29,8 +29,8 @@
34 #[serde(rename_all = "camelCase")]
35 pub struct ForgeConf {
36     domain: String,
37-    external_ssh_addr: String
38-	external_http_addr: String
39+    external_ssh_addr: String,
40+    external_http_addr: String,
41 }
42
43 #[derive(Debug, Deserialize)]
44```
45
46- +- [mise.toml](../mise.toml)
47
48```diff
49--- a/mise.toml
50+++ b/mise.toml
51@@ -14,10 +14,13 @@
52 run = "make build"
53
54 [tasks.init]
55-description = "Build the single binary"
56+description = "Configure your git client"
57 run = ".gitroot/init.sh"
58
59 [tasks.issue]
60 description = "Create an issue"
61 run = ".gitroot/issue.sh"
62
63+[tasks.test]
64+description = "Execute tests"
65+run = "make testall"
66```
67````
68
69When all is good put `merge` in status and if you have right to write in target, gitroot will merge and delete branche.