Skip to content

Commit

Permalink
Add newline after the match token in error comments (#55)
Browse files Browse the repository at this point in the history
* 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 <m@michaelheap.com>
  • Loading branch information
zhimsel and mheap committed Jun 5, 2023
1 parent e330921 commit 5384b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
@@ -1,7 +1,7 @@
const core = require("@actions/core");
const github = require("@actions/github");

const matchToken = `<!-- reqlabelmessage -->`;
const matchToken = `<!-- reqlabelmessage -->\n`;
async function action() {
try {
const token = core.getInput("token", { required: true });
Expand Down
2 changes: 1 addition & 1 deletion index.test.js
Expand Up @@ -6,7 +6,7 @@ const mockedEnv = require("mocked-env");
const nock = require("nock");
nock.disableNetConnect();

const matchToken = `<!-- reqlabelmessage -->`;
const matchToken = `<!-- reqlabelmessage -->\n`;

describe("Required Labels", () => {
let restore;
Expand Down

0 comments on commit 5384b5b

Please sign in to comment.