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
23Silo run on branchA and add a link to that in `board/branches.md` in branchA
24Apex render **only** `board/branches.md` from branchA but what if branchB?
25
26---
27
28I want to see all grafts, but only in append of all branches.
29
30```yaml
31runOn:
32  - branch: ["main"]
33    path: "**/*"
34    when: ["add", "mod", "del", "mv"]// or *
35    write:
36      git:
37        - path: "**/*"
38          can: ["*"]
39      web:
40        - path: "**/*"//make it the default?
41          can: ["*"]//make it the default?
42  - branch: ["*", "!main"]
43    path: "grafts/**/*"
44    when: ["add", "mod"]
45    write:
46      git: []//no write //make it the default?
47      web:
48        - path: "grafts/**/*"
49          can: ["create", "append"]
50```
51
52---
53
54On the other side, it can be restricted in the users.yml.