mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-01 19:15:59 +01:00
Fix ref and ssh_url in webhook payload (#3122)
This commit is contained in:
@@ -21,7 +21,7 @@ case class ApiRepository(
|
||||
val url = ApiPath(s"/api/v3/repos/${full_name}")
|
||||
val clone_url = ApiPath(s"/git/${full_name}.git")
|
||||
val html_url = ApiPath(s"/${full_name}")
|
||||
val ssh_url = Some(SshPath(s":${full_name}.git"))
|
||||
val ssh_url = Some(SshPath(""))
|
||||
}
|
||||
|
||||
object ApiRepository {
|
||||
|
||||
@@ -416,7 +416,7 @@ class CommitLogHook(owner: String, repository: String, pusher: String, baseUrl:
|
||||
pusherAccount,
|
||||
repositoryInfo,
|
||||
ownerAccount,
|
||||
ref = branchName,
|
||||
ref = command.getRefName,
|
||||
refType = refType
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user