Today 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.
But I want to be able to list branches and grafts in web.
A solution could be to limit what a plugin can touch in branch, for example:
Silo run on branchA and add a link to that in board/branches.md
in branchA
Apex render only board/branches.md
from branchA but what if branchB?
I want to see all grafts, but only in append of all branches.
1runOn:
2 - branch: ["main"]
3 path: "**/*"
4 when: ["add", "mod", "del", "mv"]// or *
5 write:
6 git:
7 - path: "**/*"
8 can: ["*"]
9 web:
10 - path: "**/*"//make it the default?
11 can: ["*"]//make it the default?
12 - branch: ["*", "!main"]
13 path: "grafts/**/*"
14 when: ["add", "mod"]
15 write:
16 git: []//no write //make it the default?
17 web:
18 - path: "grafts/**/*"
19 can: ["create", "append"]
On the other side, it can be restricted in the users.yml.