File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
import fs from 'fs-extra' ;
2
2
import git from 'isomorphic-git' ;
3
3
4
- const getHeadSha = async ( dir : string ) : Promise < string > => {
4
+ export const getHeadSha = async ( dir : string ) : Promise < string > => {
5
5
const [ commit ] = await git . log ( { depth : 1 , dir, fs } ) ;
6
6
7
7
return commit . oid ;
@@ -24,7 +24,7 @@ const getHeadSha = async (dir: string): Promise<string> => {
24
24
*/
25
25
const ownerRepoRegex = / g i t h u b .c o m (?: : | \/ ) ( .+ ) \/ ( .+ ) .g i t $ / ;
26
26
27
- const getOwnerRepo = async (
27
+ export const getOwnerRepo = async (
28
28
dir : string ,
29
29
) : Promise < { owner : string ; repo : string } > => {
30
30
const remotes = await git . listRemotes ( { dir, fs } ) ;
@@ -42,5 +42,3 @@ const getOwnerRepo = async (
42
42
43
43
throw new Error ( 'Could not find a GitHub remote' ) ;
44
44
} ;
45
-
46
- export { getOwnerRepo , getHeadSha } ;
You can’t perform that action at this time.
0 commit comments