File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
13const fs = require ( "fs" ) ;
24const yargs = require ( "yargs" ) ;
35const CURRENT_VERSION = require ( "./package.json" ) . version ;
@@ -10,9 +12,8 @@ const {
1012 checkIfBranchExists,
1113} = require ( "./index" ) ;
1214
13-
1415const commitCommand = "commit" ;
15- const branchCommand = "branch"
16+ const branchCommand = "branch" ;
1617const knownCommands = [ commitCommand , branchCommand ] ;
1718
1819const 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" ,
You can’t perform that action at this time.
0 commit comments