In .gitroot/plugins.yml of your root repository add:
1- url: https://gitroot.dev/releases/0.3.0/grafter-0.0.3.wasm
2 checksum: sha256:9d63e0a232ea8dcdbd28ffc5793b56eada5981fc85296dfb8fd7342b3379d4e2
Every 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:
1---
2target: main
3status: draft
4reviewers: []
5---
You 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:
1## Push 1 commit
2
3### :ok_hand: add test task
4
5(5c87370cec82226b15259b918e4ed54eaa313472)
6
7- +- [app/libs/rust/plugin/src/gitroot.rs](../app/libs/rust/plugin/src/gitroot.rs)
8
9```diff
10--- a/app/libs/rust/plugin/src/gitroot.rs
11+++ b/app/libs/rust/plugin/src/gitroot.rs
12@@ -29,8 +29,8 @@
13 #[serde(rename_all = "camelCase")]
14 pub struct ForgeConf {
15 domain: String,
16- external_ssh_addr: String
17- external_http_addr: String
18+ external_ssh_addr: String,
19+ external_http_addr: String,
20 }
21
22 #[derive(Debug, Deserialize)]
23```
24
25- +- [mise.toml](../mise.toml)
26
27```diff
28--- a/mise.toml
29+++ b/mise.toml
30@@ -14,10 +14,13 @@
31 run = "make build"
32
33 [tasks.init]
34-description = "Build the single binary"
35+description = "Configure your git client"
36 run = ".gitroot/init.sh"
37
38 [tasks.issue]
39 description = "Create an issue"
40 run = ".gitroot/issue.sh"
41
42+[tasks.test]
43+description = "Execute tests"
44+run = "make testall"
45```
When all is good put merge in status and if you have right to write in target, gitroot will merge and delete branche.