mirror of
https://github.com/spf13/viper.git
synced 2026-10-19 16:15:33 +00:00
chore: add slash commands
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
committed by
Márk Sági-Kazár
parent
0525738e5e
commit
2da50fe98c
@@ -0,0 +1,5 @@
|
||||
permit(
|
||||
principal in Role::"Collaborator",
|
||||
action,
|
||||
resource
|
||||
);
|
||||
@@ -0,0 +1,5 @@
|
||||
permit(
|
||||
principal in Role::"Triager",
|
||||
action in [Action::"close", Action::"label", Action::"remove-label"],
|
||||
resource is Issue
|
||||
);
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"uid": { "type": "User", "id": "1226384" },
|
||||
"attrs": { "login": "sagikazarmark" },
|
||||
"parents": [{ "type": "Role", "id": "Collaborator" }]
|
||||
},
|
||||
{
|
||||
"uid": { "type": "User", "id": "805695" },
|
||||
"attrs": { "login": "spacez320" },
|
||||
"parents": [{ "type": "Role", "id": "Triager" }]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Octoslash
|
||||
|
||||
on: issue_comment
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
# pull-requests: write
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Run
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Octoslash
|
||||
uses: sagikazarmark/octoslash-action@v0
|
||||
Reference in New Issue
Block a user