Skip to content

Commit

Permalink
fixed markdown for cron comment (#31)
Browse files Browse the repository at this point in the history
This fixes the message.
  • Loading branch information
Bullrich authored Feb 2, 2024
1 parent 5a1103c commit 4d81e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`, `<a href="${match.url}">${match.url}</a>`]);
await octokit.rest.issues.createComment({ owner, repo, issue_number: pr, body: msg });
}
Expand Down
2 changes: 1 addition & 1 deletion src/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`, `<a href="${match.url}">${match.url}</a>`]);
await octokit.rest.issues.createComment({ owner, repo, issue_number: pr, body: msg });
}
Expand Down

0 comments on commit 4d81e1f

Please sign in to comment.