Skip to content

Commit 5384b5b

Browse files
zhimselmheap
andauthored
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 <[email protected]>
1 parent e330921 commit 5384b5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const core = require("@actions/core");
22
const github = require("@actions/github");
33

4-
const matchToken = `<!-- reqlabelmessage -->`;
4+
const matchToken = `<!-- reqlabelmessage -->\n`;
55
async function action() {
66
try {
77
const token = core.getInput("token", { required: true });

index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const mockedEnv = require("mocked-env");
66
const nock = require("nock");
77
nock.disableNetConnect();
88

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

1111
describe("Required Labels", () => {
1212
let restore;

0 commit comments

Comments
 (0)