From 3687cf9068a94deb4dc478525a3ac502b8ba6955 Mon Sep 17 00:00:00 2001 From: Ciro Santilli <cirosantilli@proton.me> Date: Wed, 3 Aug 2022 07:01:15 +0000 Subject: [PATCH] fix? --- action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.js b/action.js index 9049db2..6496ddc 100755 --- a/action.js +++ b/action.js @@ -225,11 +225,11 @@ try { contentS = Buffer.from(content.data.content, 'base64').toString('utf-8') console.error('contentS: ' + require('util').inspect(contentS)) const lines = contentS.split('\n') - const titleAndLink = lines[2] + const titleAndLink = lines[1] const match = titleAndLink.match(/\[([^\]]+)\]\(([^)]+)\)/) const title = match[1] const link = match[2] - const body = lines[5] + const body = lines[4] const new_issue_duty = await octokit.issues.create({ owner: payload.repository.owner.login, repo: payload.repository.name, -- GitLab