GitRoot

Craft your forge, Build your project, Grow your community freely
 1---
 2name: Grafter
 3pluginUrl: https://gitroot.dev/releases/0.3.0/grafter-0.0.3.wasm
 4pluginChecksum: sha256:9d63e0a232ea8dcdbd28ffc5793b56eada5981fc85296dfb8fd7342b3379d4e2
 5homepage: https://gitroot.dev/app/plugins/grafter/
 6doc: https://gitroot.dev/app/plugins/grafter/doc.html
 7changelog: https://gitroot.dev/app/plugins/grafter/CHANGELOG.html
 8---
 9
10Every 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:
11
12```md
13---
14target: main
15status: draft
16reviewers: []
17---
18```
19
20You 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:
21
22````md
23## Push 1 commit
24
25### :ok_hand: add test task
26
27(5c87370cec82226b15259b918e4ed54eaa313472)
28
29- +- [app/libs/rust/plugin/src/gitroot.rs](../app/libs/rust/plugin/src/gitroot.rs)
30
31```diff
32--- a/app/libs/rust/plugin/src/gitroot.rs
33+++ b/app/libs/rust/plugin/src/gitroot.rs
34@@ -29,8 +29,8 @@
35 #[serde(rename_all = "camelCase")]
36 pub struct ForgeConf {
37     domain: String,
38-    external_ssh_addr: String
39-	external_http_addr: String
40+    external_ssh_addr: String,
41+    external_http_addr: String,
42 }
43
44 #[derive(Debug, Deserialize)]
45```
46
47- +- [mise.toml](../mise.toml)
48
49```diff
50--- a/mise.toml
51+++ b/mise.toml
52@@ -14,10 +14,13 @@
53 run = "make build"
54
55 [tasks.init]
56-description = "Build the single binary"
57+description = "Configure your git client"
58 run = ".gitroot/init.sh"
59
60 [tasks.issue]
61 description = "Create an issue"
62 run = ".gitroot/issue.sh"
63
64+[tasks.test]
65+description = "Execute tests"
66+run = "make testall"
67```
68````
69
70When all is good put `merge` in status and if you have right to write in target, gitroot will merge and delete branche.