Fix ref and ssh_url in webhook payload (#3122)

This commit is contained in:
Naoki Takezoe
2022-09-03 13:15:37 +09:00
committed by GitHub
parent 3c8113d607
commit 8160c93c15
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ case class ApiRepository(
val url = ApiPath(s"/api/v3/repos/${full_name}") val url = ApiPath(s"/api/v3/repos/${full_name}")
val clone_url = ApiPath(s"/git/${full_name}.git") val clone_url = ApiPath(s"/git/${full_name}.git")
val html_url = ApiPath(s"/${full_name}") val html_url = ApiPath(s"/${full_name}")
val ssh_url = Some(SshPath(s":${full_name}.git")) val ssh_url = Some(SshPath(""))
} }
object ApiRepository { object ApiRepository {

View File

@@ -416,7 +416,7 @@ class CommitLogHook(owner: String, repository: String, pusher: String, baseUrl:
pusherAccount, pusherAccount,
repositoryInfo, repositoryInfo,
ownerAccount, ownerAccount,
ref = branchName, ref = command.getRefName,
refType = refType refType = refType
) )
} }