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---
910Every 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:
1112```md
13---
14target: main
15status: draft
16reviewers: []
17---
18```1920You 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:
2122````md
23## Push 1 commit
2425### :ok_hand: add test task
2627(5c87370cec82226b15259b918e4ed54eaa313472)
2829- +- [app/libs/rust/plugin/src/gitroot.rs](../app/libs/rust/plugin/src/gitroot.rs)
3031```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 }
4344 #[derive(Debug, Deserialize)]
45```4647- +- [mise.toml](../mise.toml)
4849```diff
50--- a/mise.toml
51+++ b/mise.toml
52@@ -14,10 +14,13 @@
53 run = "make build"
5455 [tasks.init]
56-description = "Build the single binary"
57+description = "Configure your git client"
58 run = ".gitroot/init.sh"
5960 [tasks.issue]
61 description = "Create an issue"
62 run = ".gitroot/issue.sh"
6364+[tasks.test]
65+description = "Execute tests"
66+run = "make testall"
67```68````
6970When all is good put `merge` in status and if you have right to write in target, gitroot will merge and delete branche.