From 4d81e1f325181fee9ab8789bbc5394a4268cc7ef Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Fri, 2 Feb 2024 14:54:34 +0100 Subject: [PATCH] fixed markdown for cron comment (#31) This fixes the message. --- dist/index.js | 2 +- src/cron.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6c67150..9af759c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -67599,7 +67599,7 @@ const cron = async (startDate, owner, repo, octokit) => { const match = remarks.find(({ hash }) => hash === tx.method.hash.toHex() || hash === tx.method.toHex()); if (match) { logger.info(`Found existing referenda for PR #${pr}`); - const msg = `Voting for this referenda is **ongoing**.\n\nVote for it [here]${match.url}`; + const msg = `Voting for this referenda is **ongoing**.\n\nVote for it [here](${match.url})`; rows.push([`${owner}/${repo}#${pr}`, `${match.url}`]); await octokit.rest.issues.createComment({ owner, repo, issue_number: pr, body: msg }); } diff --git a/src/cron.ts b/src/cron.ts index cc7039c..ae21691 100644 --- a/src/cron.ts +++ b/src/cron.ts @@ -130,7 +130,7 @@ export const cron = async (startDate: Date, owner: string, repo: string, octokit const match = remarks.find(({ hash }) => hash === tx.method.hash.toHex() || hash === tx.method.toHex()); if (match) { logger.info(`Found existing referenda for PR #${pr}`); - const msg = `Voting for this referenda is **ongoing**.\n\nVote for it [here]${match.url}`; + const msg = `Voting for this referenda is **ongoing**.\n\nVote for it [here](${match.url})`; rows.push([`${owner}/${repo}#${pr}`, `${match.url}`]); await octokit.rest.issues.createComment({ owner, repo, issue_number: pr, body: msg }); }