mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-08 07:50:24 -05:00
fix: Add drone env for the url of the repo (#18222)
This commit is contained in:
@@ -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',
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user