Skip to content

Commit 4a0258c

Browse files
Merge pull request #71 from mjburling/newline-at-eof
Add newline to json end-of-file
2 parents bea1ae4 + 24033e0 commit 4a0258c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export async function sendPR(
157157
baseBranchName: string,
158158
) {
159159
try {
160-
const formattedContent = JSON.stringify(updatedCodeJSON, null, 2);
160+
const formattedContent = JSON.stringify(updatedCodeJSON, null, 2) + "\n";
161161
const headBranchName = `code-json-${new Date().getTime()}`;
162162

163163
const PR = await octokit.createPullRequest({

0 commit comments

Comments
 (0)