File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 11const kebabcaseKeys = require ( 'kebabcase-keys' ) ;
2- const fs = require ( 'fs' ) ;
3- const git = require ( 'isomorphic-git' ) ;
4- const http = require ( 'isomorphic-git/http/node' ) ;
52
63const { GIT_REMOTE , GIT_USER_NAME , GIT_USER_EMAIL } = require ( '../../src/cml' ) ;
74const CML = require ( '../../src/cml' ) . default ;
@@ -10,15 +7,6 @@ exports.command = 'pr <glob path...>';
107exports . description = 'Create a pull request with the specified files' ;
118
129exports . handler = async ( opts ) => {
13- const gitpath = await git . findRoot ( { fs, filepath : process . cwd ( ) } ) ;
14- const gitops = { fs, http, dir : gitpath } ;
15- const sha = await git . resolveRef ( { ...gitops , ref : 'HEAD' } ) ;
16- console . log ( sha ) ;
17-
18- const path = await git . findRoot ( { fs, filepath : process . cwd ( ) } ) ;
19- console . log ( path ) ;
20- process . exit ( 1 ) ;
21-
2210 const cml = new CML ( opts ) ;
2311 await cml . init ( ) ;
2412 const link = await cml . prCreate ( { ...opts , globs : opts . globpath } ) ;
You can’t perform that action at this time.
0 commit comments