Skip to content

Commit 3eac6f7

Browse files
committed
Single quote
1 parent d4f812a commit 3eac6f7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dist/index.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,14 @@ const ANNOTATION_LEVELS = ['notice', 'warning', 'failure']
280280
class GitHubApiUnauthorizedError extends Error {
281281
constructor (message) {
282282
super(message)
283-
this.name = "GitHubApiUnauthorizedError"
283+
this.name = 'GitHubApiUnauthorizedError'
284284
}
285285
}
286286

287287
class GitHubApiError extends Error {
288288
constructor (message) {
289289
super(message)
290-
this.name = "GitHubApiError"
290+
this.name = 'GitHubApiError'
291291
}
292292
}
293293

@@ -304,7 +304,7 @@ const batch = (size, inputs) => inputs.reduce((batches, input) => {
304304
}, [[]])
305305

306306
const createCheck = async function (octokit, owner, repo, title, ref) {
307-
core.info(`Creating check {owner: "${owner}", repo: "${repo}", name: ${title}}`)
307+
core.info(`Creating check {owner: '${owner}', repo: '${repo}', name: ${title}}`)
308308
try {
309309
const { data: { id: checkRunId } } = await octokit.checks.create({
310310
owner,
@@ -316,14 +316,14 @@ const createCheck = async function (octokit, owner, repo, title, ref) {
316316
return checkRunId
317317
} catch (err) {
318318
if (err.message === 'Resource not accessible by integration') {
319-
throw new GitHubApiUnauthorizedError(`Unable to create a check, please make sure that the provided 'repo-token' has write permissions to ${owner}/${repo} - cause: ${err}`)
319+
throw new GitHubApiUnauthorizedError(`Unable to create a check, please make sure that the provided 'repo-token' has write permissions to '${owner}/${repo}' - cause: ${err}`)
320320
}
321-
throw new GitHubApiError(`Unable to create a check to ${owner}/${repo} - cause: ${err}`)
321+
throw new GitHubApiError(`Unable to create a check to '${owner}/${repo}' - cause: ${err}`)
322322
}
323323
}
324324

325325
const updateCheck = async function (octokit, owner, repo, checkRunId, conclusion, title, summary, annotations) {
326-
core.info(`Updating check {owner: "${owner}", repo: "${repo}", check_run_id: ${checkRunId}}`)
326+
core.info(`Updating check {owner: '${owner}', repo: '${repo}', check_run_id: ${checkRunId}}`)
327327
try {
328328
await octokit.checks.update({
329329
owner,
@@ -338,7 +338,7 @@ const updateCheck = async function (octokit, owner, repo, checkRunId, conclusion
338338
}
339339
})
340340
} catch (err) {
341-
throw new GitHubApiError(`Unable to update check {owner: "${owner}", repo: "${repo}", check_run_id: ${checkRunId}} - cause: ${err}`)
341+
throw new GitHubApiError(`Unable to update check {owner: '${owner}', repo: '${repo}', check_run_id: ${checkRunId}} - cause: ${err}`)
342342
}
343343
}
344344

0 commit comments

Comments
 (0)