Skip to content

Commit 2da50fe

Browse files
committed
chore: add slash commands
Signed-off-by: Mark Sagi-Kazar <[email protected]>
1 parent 0525738 commit 2da50fe

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
permit(
2+
principal in Role::"Collaborator",
3+
action,
4+
resource
5+
);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
permit(
2+
principal in Role::"Triager",
3+
action in [Action::"close", Action::"label", Action::"remove-label"],
4+
resource is Issue
5+
);

.github/octoslash/principals.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"uid": { "type": "User", "id": "1226384" },
4+
"attrs": { "login": "sagikazarmark" },
5+
"parents": [{ "type": "Role", "id": "Collaborator" }]
6+
},
7+
{
8+
"uid": { "type": "User", "id": "805695" },
9+
"attrs": { "login": "spacez320" },
10+
"parents": [{ "type": "Role", "id": "Triager" }]
11+
}
12+
]

.github/workflows/octoslash.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Octoslash
2+
3+
on: issue_comment
4+
5+
permissions:
6+
issues: write
7+
# pull-requests: write
8+
9+
jobs:
10+
run:
11+
name: Run
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
17+
- name: Octoslash
18+
uses: sagikazarmark/octoslash-action@v0

0 commit comments

Comments
 (0)