Skip to content

Commit 096b7fc

Browse files
committed
fix: missing sheband didn't make ggh command run properly
1 parent 0cfc485 commit 096b7fc

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

github.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
const fs = require("fs");
24
const yargs = require("yargs");
35
const CURRENT_VERSION = require("./package.json").version;
@@ -10,9 +12,8 @@ const {
1012
checkIfBranchExists,
1113
} = require("./index");
1214

13-
1415
const commitCommand = "commit";
15-
const branchCommand = "branch"
16+
const branchCommand = "branch";
1617
const knownCommands = [commitCommand, branchCommand];
1718

1819
const appendLineToFile = (filename, line) => {
@@ -156,9 +157,7 @@ yargs
156157
checkIfBranchExists(owner, repo, branch)
157158
.then((response) => {
158159
const n = response ? "a" : "no";
159-
info(
160-
`Repository ${owner}/${repo} has ${n} branch named '${branch}'`
161-
);
160+
info(`Repository ${owner}/${repo} has ${n} branch named '${branch}'`);
162161
writeResultToGithubOutputFile([
163162
{
164163
label: "command",

0 commit comments

Comments
 (0)