Skip to content

Commit 809dd00

Browse files
authored
Use GitHub Action token for access issue comment to get possible solution (#19)
1 parent 154b77e commit 809dd00

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31637,7 +31637,8 @@ function handleSimilarIssuesScanning(issue, owner, repo, password, token, botUrl
3163731637
const response = (yield axios_1.default.post(botUrl + '/search/', {
3163831638
'raw': issue,
3163931639
'password': password,
31640-
'verify': true
31640+
'verify': true,
31641+
'token': token //used for access issue comment to get possible solution
3164131642
})).data;
3164231643
const prediction = response.predict;
3164331644
core.info('Search by the issue sentinel successfully.');

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ async function handleSimilarIssuesScanning(issue: any, owner: string, repo: stri
7878
const response = (await axios.post(botUrl + '/search/', {
7979
'raw': issue,
8080
'password': password,
81-
'verify': true
81+
'verify': true,
82+
'token': token //used for access issue comment to get possible solution
8283
})).data;
8384
const prediction: any[][] = response.predict;
8485
core.info('Search by the issue sentinel successfully.');

0 commit comments

Comments
 (0)