fix?
This commit is contained in:
@@ -225,11 +225,11 @@ try {
|
|||||||
contentS = Buffer.from(content.data.content, 'base64').toString('utf-8')
|
contentS = Buffer.from(content.data.content, 'base64').toString('utf-8')
|
||||||
console.error('contentS: ' + require('util').inspect(contentS))
|
console.error('contentS: ' + require('util').inspect(contentS))
|
||||||
const lines = contentS.split('\n')
|
const lines = contentS.split('\n')
|
||||||
const titleAndLink = lines[2]
|
const titleAndLink = lines[1]
|
||||||
const match = titleAndLink.match(/\[([^\]]+)\]\(([^)]+)\)/)
|
const match = titleAndLink.match(/\[([^\]]+)\]\(([^)]+)\)/)
|
||||||
const title = match[1]
|
const title = match[1]
|
||||||
const link = match[2]
|
const link = match[2]
|
||||||
const body = lines[5]
|
const body = lines[4]
|
||||||
const new_issue_duty = await octokit.issues.create({
|
const new_issue_duty = await octokit.issues.create({
|
||||||
owner: payload.repository.owner.login,
|
owner: payload.repository.owner.login,
|
||||||
repo: payload.repository.name,
|
repo: payload.repository.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user