mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-07-13 04:33:05 +02:00
add head_commit on webhook push payload
This commit is contained in:
@@ -204,6 +204,7 @@ object WebHookService {
|
||||
case _ if before.filterNot(_=='0').isEmpty => ApiPath(s"/${repository.full_name}/compare/${commits.head.id}^...${after}")
|
||||
case _ => ApiPath(s"/${repository.full_name}/compare/${before}...${after}")
|
||||
}
|
||||
val head_commit = commits.lastOption
|
||||
}
|
||||
|
||||
object WebHookPushPayload {
|
||||
|
||||
Reference in New Issue
Block a user