From 5384b5bb3bf2c6b1c100a2a5821e1ddac8c38cae Mon Sep 17 00:00:00 2001 From: Zach Himsel Date: Mon, 5 Jun 2023 08:08:01 -0400 Subject: [PATCH] Add newline after the match token in error comments (#55) * Add newline after the match token in error comments For some reason, Github's rendering of markdown is disabled on any line that starts with a comment (``). However, markdown rendering resumes on the next line. This is an easy fix which just adds a newline after the match token. --------- Co-authored-by: Michael Heap --- index.js | 2 +- index.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1e5cce9..aba5a2f 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const core = require("@actions/core"); const github = require("@actions/github"); -const matchToken = ``; +const matchToken = `\n`; async function action() { try { const token = core.getInput("token", { required: true }); diff --git a/index.test.js b/index.test.js index 1b22771..c6d0e1e 100644 --- a/index.test.js +++ b/index.test.js @@ -6,7 +6,7 @@ const mockedEnv = require("mocked-env"); const nock = require("nock"); nock.disableNetConnect(); -const matchToken = ``; +const matchToken = `\n`; describe("Required Labels", () => { let restore;