Skip to content

Commit

Permalink
Cleanup and format
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Nov 1, 2024
1 parent c364874 commit 0bd5076
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
10 changes: 4 additions & 6 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-semver",
"description": "Semantically version GitHub repository tags",
"version": "2.3.1",
"version": "2.3.2",
"type": "module",
"author": "Nick Alteen <[email protected]>",
"homepage": "https://github.com/issue-ops/semver#readme",
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export async function run() {
// Check if the version exists.
const exists = await version.exists(workspace, allowPrerelease)

// If this is a pull request event, comment on the PR with the version check
// result.
/* istanbul ignore next */
if (
github.context.issue?.number !== undefined &&
Expand Down
7 changes: 4 additions & 3 deletions src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ export class Version {
if (error.code === 'ENOENT') {
core.error('Manifest not found')
return undefined
} else throw error
}

throw error
}
}

Expand Down Expand Up @@ -317,7 +319,6 @@ export class Version {
return false
}

if (tagOptions.stdout.includes(this.toString(true))) return true
else return false
return tagOptions.stdout.includes(this.toString(true))
}
}

0 comments on commit 0bd5076

Please sign in to comment.