Skip to content

Commit

Permalink
Fix line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Jan 17, 2025
1 parent cd7b78b commit 43586eb
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 50 deletions.
79 changes: 38 additions & 41 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "issue-ops-validator",
"description": "Validate issue form submissions",
"version": "3.1.0",
"version": "3.1.1",
"author": "Nick Alteen <[email protected]>",
"type": "module",
"homepage": "https://github.com/issue-ops/validator#readme",
Expand Down
6 changes: 1 addition & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as core from '@actions/core'
import { Octokit } from '@octokit/rest'
import fs from 'fs'
import { dedent } from 'ts-dedent'
import { getCommentId } from './comments.js'
import { COMMENT_IDENTIFIER } from './constants.js'
import { FormattedField, ParsedBody } from './interfaces.js'
Expand Down Expand Up @@ -105,10 +104,7 @@ export async function run(): Promise<void> {
}

// Add the identifier to the comment body.
body += dedent`
This comment will be automatically updated the next time the validator runs.
${COMMENT_IDENTIFIER}`
body += `\n\nThis comment will be automatically updated the next time the validator runs.\n\n${COMMENT_IDENTIFIER}`

const octokit = new Octokit({ auth: token })

Expand Down

0 comments on commit 43586eb

Please sign in to comment.