Skip to content

Commit 26f92e0

Browse files
fix: Add drone env for the url of the repo (#18222)
1 parent 853a6f5 commit 26f92e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/server/lib/util/ci_provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ const _providerCommitParams = () => {
505505
message: env.DRONE_COMMIT_MESSAGE,
506506
authorName: env.DRONE_COMMIT_AUTHOR,
507507
authorEmail: env.DRONE_COMMIT_AUTHOR_EMAIL,
508-
// remoteOrigin: ???
508+
remoteOrigin: env.DRONE_GIT_HTTP_URL,
509509
defaultBranch: env.DRONE_REPO_BRANCH,
510510
},
511511
githubActions: {

packages/server/test/unit/ci_provider_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ describe('lib/util/ci_provider', () => {
519519
DRONE_COMMIT_AUTHOR: 'droneCommitAuthor',
520520
DRONE_COMMIT_AUTHOR_EMAIL: 'droneCommitAuthorEmail',
521521
DRONE_REPO_BRANCH: 'droneRepoBranch',
522+
DRONE_GIT_HTTP_URL: 'droneRemoteOrigin',
522523
}, { clear: true })
523524

524525
expectsName('drone')
@@ -536,6 +537,7 @@ describe('lib/util/ci_provider', () => {
536537
authorName: 'droneCommitAuthor',
537538
authorEmail: 'droneCommitAuthorEmail',
538539
defaultBranch: 'droneRepoBranch',
540+
remoteOrigin: 'droneRemoteOrigin',
539541
})
540542
})
541543

0 commit comments

Comments
 (0)