File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
scripts/dataset/publish/github Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11import fsApi from 'fs' ;
22import path from 'path' ;
3- import url from 'url' ;
43
54import config from 'config' ;
65import { Octokit } from 'octokit' ; // eslint-disable-line import/no-unresolved
@@ -13,7 +12,7 @@ const logger = createModuleLogger('github');
1312export default async function publish ( { archivePath, releaseDate, stats } ) {
1413 const octokit = new Octokit ( { auth : process . env . OTA_ENGINE_GITHUB_TOKEN } ) ;
1514
16- const [ owner , repo ] = url . parse ( config . get ( '@opentermsarchive/engine.dataset.versionsRepositoryURL' ) ) . pathname . split ( '/' ) . filter ( component => component ) ;
15+ const [ owner , repo ] = new URL ( config . get ( '@opentermsarchive/engine.dataset.versionsRepositoryURL' ) ) . pathname . split ( '/' ) . filter ( component => component ) ;
1716
1817 const tagName = `${ path . basename ( archivePath , path . extname ( archivePath ) ) } ` ; // use archive filename as Git tag
1918
You can’t perform that action at this time.
0 commit comments