mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-11-03 20: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 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 {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
                  )
 | 
					                  )
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user