GitRoot

craft your forge, build your project, grow your community freely
 1---
 2id: "de9a"
 3priority: 90
 4sprint: ""
 5assignee: null
 6status: triage
 7kind: issue
 8---
 9
10# Be able to represent branches and so graft in web
11
12Today 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.
13
14But I want to be able to list branches and grafts in web.
15
16A solution could be to limit what a plugin can touch in branch, for example:
17
18- only if not in main -> don't run plugin on files which are presents in main
19- only in append -> can only append new things but not modify/delete what exist
20
21
22
23
24Silo run on branchA and add a link to that in `board/branches.md` in branchA
25Apex render **only** `board/branches.md` from branchA but what if branchB?
26
27
28
29
30I want to see all grafts, but only in append of all branches.
31
32```yaml
33runOn:
34  - branch: ["main"]
35    path: "**/*"
36    when: ["add", "mod", "del", "mv"]// or *
37    write:
38      git:
39        - path: "**/*"
40          can: ["*"]
41      web:
42        - path: "**/*"//make it the default?
43          can: ["*"]//make it the default?
44  - branch: ["*", "!main"]
45    path: "grafts/**/*"
46    when: ["add", "mod"]
47    write:
48      git: []//no write //make it the default?
49      web:
50        - path: "grafts/**/*"
51          can: ["create", "append"]
52```
53
54
55
56
57On the other side, it can be restricted in the users.yml.