-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.05 KB
/
issue-reflex.yaml
File metadata and controls
40 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Issue Reflex Bundle
on:
issues:
types: [opened, labeled]
jobs:
assign:
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: Auto-assign issue
uses: pozil/auto-assign-issue@v1
with:
assignees: ToddWolf
label:
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: Auto-label issue
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: |
validator-capsule
needs-triage
dispatch-review:
if: contains(github.event.issue.labels.*.name, 'validator-review')
runs-on: ubuntu-latest
steps:
- name: Dispatch validator review
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issue = context.payload.issue;
const message = `Validator review triggered for issue #${issue.number}: ${issue.title}`;
console.log(message);