Craft your forge, Build your project, Grow your community freely
1---
2id: "de9a"
3priority: 90
4assignee: null
5status: v0.4.0
6---
7 8# Be able to represent branches and so graft in web
910Today a plugin is limited to a branch (or all with \*). It permits to not override webcontent in apex, if a user push an deletion of all issues.
1112But I want to be able to list branches and grafts in web.
1314A solution could be to limit what a plugin can touch in branch, for example:
1516- only if not in main -> don't run plugin on files which are presents in main
17- only in append -> can only append new things but not modify/delete what exist
1819---
2021Silo run on branchA and add a link to that in `board/branches.md` in branchA
22Apex render **only** `board/branches.md` from branchA but what if branchB?
2324---
2526I want to see all grafts, but only in append of all branches.
2728```yaml
29runOn:
30 - branch: ["main"]
31path: "**/*"32when: ["add", "mod", "del", "mv"]// or *
33write:
34git:
35 - path: "**/*"36can: ["*"]
37web:
38 - path: "**/*"//make it the default?
39can: ["*"]//make it the default?
40 - branch: ["*", "!main"]
41path: "grafts/**/*"42when: ["add", "mod"]
43write:
44git: []//no write //make it the default?
45web:
46 - path: "grafts/**/*"47can: ["create", "append"]
48```4950---
5152On the other side, it can be restricted in the users.yml.
5354---
5556Apex render branches in `/branches/` with an `index.html` to know all branches and for each a `branchName.html`. This files contains commits.
57Apex also render all modified files in `/branches/branchName/file.html` and report to grafter plugin.