Skip to content

Commit

Permalink
Fix conditional in main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored and ntsd committed Nov 20, 2021
1 parent bb7a392 commit b11635b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { approve } from "./approve";
async function run() {
const token = core.getInput("github-token", { required: true });
const prNumber: number = parseInt(core.getInput("pull-request-number"), 10);
if (Number.isNaN(prNumber)) {
if (!Number.isNaN(prNumber)) {
await approve(token, github.context, prNumber);
} else {
await approve(token, github.context);
Expand Down

0 comments on commit b11635b

Please sign in to comment.