Skip to content

Commit

Permalink
Fix comment logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Oct 31, 2024
1 parent c859852 commit ef98695
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 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.

3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ export async function run() {
// Check if the version exists.
const exists = await version.exists(workspace, allowPrerelease)

// Only add the comment if this is a PR event.
/* istanbul ignore next */
if (
github.context.issue?.number !== undefined &&
github.context.eventName !== 'pull_request' &&
github.context.eventName === 'pull_request' &&
github.context.payload?.action !== 'closed'
)
await versionCheckComment(!exists, manifestPath)
Expand Down

0 comments on commit ef98695

Please sign in to comment.