Skip to content

Commit 7a39a9f

Browse files
committed
doc: document label usage in reference.yml
Added label usage examples in the reference.yml. Fixes cesanta#188
1 parent 75da60a commit 7a39a9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/reference.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,12 @@ acl:
229229
- match: {account: "/^(.+)@test.com$/", name: "${account:1}/*"}
230230
actions: []
231231
comment: "Emit domain part of account to make it a correct repo name"
232+
- match: {labels: {"group": "VIP"}}
233+
actions: ["push"]
234+
comment: "Users assigned to group 'VIP' is able to push"
235+
- match: {labels: {"group": "/trainee|dev/"}}
236+
actions: ["push", "pull"]
237+
comment: "Users assigned to group 'trainee' and 'dev' is able to push and pull"
232238
# Access is denied by default.
233239

234240
# (optional) Define to query ACL from a MongoDB server.

0 commit comments

Comments
 (0)