fix: Add drone env for the url of the repo (#18222)

This commit is contained in:
Jennifer Shehane
2021-09-27 08:19:50 -05:00
committed by GitHub
parent 853a6f5a33
commit 26f92e0e56
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ const _providerCommitParams = () => {
message: env.DRONE_COMMIT_MESSAGE,
authorName: env.DRONE_COMMIT_AUTHOR,
authorEmail: env.DRONE_COMMIT_AUTHOR_EMAIL,
// remoteOrigin: ???
remoteOrigin: env.DRONE_GIT_HTTP_URL,
defaultBranch: env.DRONE_REPO_BRANCH,
},
githubActions: {
@@ -519,6 +519,7 @@ describe('lib/util/ci_provider', () => {
DRONE_COMMIT_AUTHOR: 'droneCommitAuthor',
DRONE_COMMIT_AUTHOR_EMAIL: 'droneCommitAuthorEmail',
DRONE_REPO_BRANCH: 'droneRepoBranch',
DRONE_GIT_HTTP_URL: 'droneRemoteOrigin',
}, { clear: true })
expectsName('drone')
@@ -536,6 +537,7 @@ describe('lib/util/ci_provider', () => {
authorName: 'droneCommitAuthor',
authorEmail: 'droneCommitAuthorEmail',
defaultBranch: 'droneRepoBranch',
remoteOrigin: 'droneRemoteOrigin',
})
})