-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 1.11 KB
/
siri-shortcut.yml
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
name: Siri Shortcut
on: repository_dispatch
jobs:
label-issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- run: npm install
working-directory: ./.github/issues-autolabeler
- name: luis_label
uses: ./.github/issues-autolabeler
with:
issue: ${{github.event.client_payload.description}}
env:
LUIS_APP_ID: ${{ secrets.LUIS_APP_ID }}
LUIS_APP_KEY: ${{ secrets.LUIS_APP_KEY }}
- name: create_issue
uses: actions/github-script@0.3.0
env:
owner: ${{ github.actor }}
body: ${{ github.event.client_payload.description }}
repository: ${{ github.repository }}
with:
github-token: ${{github.token}}
script: |
const { body, owner, repository } = process.env;
const title = "New issue report";
const user_repo = repository.split('/');
github.issues.create({ owner, repo: user_repo[1], title, body, labels: [process.env.ISSUE_LABEL] })