Skip to content

Commit 0bd5076

Browse files
committed
Cleanup and format
1 parent c364874 commit 0bd5076

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

Diff for: dist/index.js

+4-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "issue-ops-semver",
33
"description": "Semantically version GitHub repository tags",
4-
"version": "2.3.1",
4+
"version": "2.3.2",
55
"type": "module",
66
"author": "Nick Alteen <[email protected]>",
77
"homepage": "https://github.com/issue-ops/semver#readme",

Diff for: src/main.ts

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export async function run() {
4040
// Check if the version exists.
4141
const exists = await version.exists(workspace, allowPrerelease)
4242

43+
// If this is a pull request event, comment on the PR with the version check
44+
// result.
4345
/* istanbul ignore next */
4446
if (
4547
github.context.issue?.number !== undefined &&

Diff for: src/version.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ export class Version {
180180
if (error.code === 'ENOENT') {
181181
core.error('Manifest not found')
182182
return undefined
183-
} else throw error
183+
}
184+
185+
throw error
184186
}
185187
}
186188

@@ -317,7 +319,6 @@ export class Version {
317319
return false
318320
}
319321

320-
if (tagOptions.stdout.includes(this.toString(true))) return true
321-
else return false
322+
return tagOptions.stdout.includes(this.toString(true))
322323
}
323324
}

0 commit comments

Comments
 (0)