@@ -38,6 +38,9 @@ export default (ctx: Context): Git => {
3838 if ( ctx . options . githubURL && ctx . options . githubURL . startsWith ( 'https://' ) ) {
3939 githubURL = ctx . options . githubURL ;
4040 }
41+ if ( ctx . options . gitURL && ctx . options . gitURL . startsWith ( 'https://' ) ) {
42+ githubURL = ctx . options . gitURL ;
43+ }
4144 if ( ctx . env . SMARTUI_GIT_INFO_FILEPATH ) {
4245 let gitInfo = JSON . parse ( fs . readFileSync ( ctx . env . SMARTUI_GIT_INFO_FILEPATH , 'utf-8' ) ) ;
4346
@@ -51,7 +54,7 @@ export default (ctx: Context): Git => {
5154 commitId : gitInfo . commit_id . slice ( 0 , 6 ) || '' ,
5255 commitMessage : gitInfo . commit_body || '' ,
5356 commitAuthor : gitInfo . commit_author || '' ,
54- githubURL : githubURL ? githubURL : ( ctx . env . GITHUB_ACTIONS ) ? `${ constants . GITHUB_API_HOST } /repos/${ process . env . GITHUB_REPOSITORY } /statuses/${ gitInfo . commit_id } ` : '' ,
57+ githubURL : githubURL ? githubURL : ( ctx . env . GIT_URL ) ? ctx . env . GIT_URL : `${ constants . GITHUB_API_HOST } /repos/${ process . env . GITHUB_REPOSITORY } /statuses/${ gitInfo . commit_id } ` ,
5558 baselineBranch : ctx . options . baselineBranch || ctx . env . BASELINE_BRANCH || ''
5659 }
5760 } else {
@@ -78,7 +81,7 @@ export default (ctx: Context): Git => {
7881 commitId : res [ 0 ] || '' ,
7982 commitMessage : res [ 2 ] || '' ,
8083 commitAuthor : res [ 7 ] || '' ,
81- githubURL : githubURL ? githubURL : ( ctx . env . GITHUB_ACTIONS ) ? `${ constants . GITHUB_API_HOST } /repos/${ process . env . GITHUB_REPOSITORY } /statuses/${ res [ 1 ] } ` : '' ,
84+ githubURL : githubURL ? githubURL : ( ctx . env . GIT_URL ) ? ctx . env . GIT_URL : `${ constants . GITHUB_API_HOST } /repos/${ process . env . GITHUB_REPOSITORY } /statuses/${ res [ 1 ] } ` ,
8285 baselineBranch : ctx . options . baselineBranch || ctx . env . BASELINE_BRANCH || ''
8386 } ;
8487 }
@@ -95,6 +98,9 @@ function setNonGitInfo(ctx: Context) {
9598 if ( ctx . options . githubURL && ctx . options . githubURL . startsWith ( 'https://' ) ) {
9699 githubURL = ctx . options . githubURL ;
97100 }
101+ if ( ctx . options . gitURL && ctx . options . gitURL . startsWith ( 'https://' ) ) {
102+ githubURL = ctx . options . gitURL ;
103+ }
98104
99105 ctx . git = {
100106 branch : branch ,
0 commit comments