forked from eclipse-openj9/openj9
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.37 KB
/
TriageOpenIssue.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
35
36
37
38
39
40
41
42
43
name: Triager on Opened issues
run-name: Triage Opened Issue
on:
issues:
types: [opened]
jobs:
issue_opened:
name: Issue Opened
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: eclipse-openj9/openj9
ref: master
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install [email protected] @actions/github @actions/core
- name: Extract issue details
id: extract_issue
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
core.setOutput('issue_title', context.payload.issue.title);
core.setOutput('issue_description', context.payload.issue.body);
core.setOutput('issue_number', context.issue.number.toString());
- name: Run recommendations
run: node .github/recommendation.js
env:
ISSUE_TITLE: ${{ steps.extract_issue.outputs.issue_title }}
ISSUE_DESCRIPTION: ${{ steps.extract_issue.outputs.issue_description }}
ISSUE_NUMBER: ${{ steps.extract_issue.outputs.issue_number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}