All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gitbucket.core.plugin.ReceiveHook.scala Maven / Gradle / Ivy

package gitbucket.core.plugin

import gitbucket.core.model.Profile._
import org.eclipse.jgit.transport.{ReceivePack, ReceiveCommand}
import profile.api._

trait ReceiveHook {

  def preReceive(owner: String, repository: String, receivePack: ReceivePack, command: ReceiveCommand, pusher: String)
                (implicit session: Session): Option[String] = None

  def postReceive(owner: String, repository: String, receivePack: ReceivePack, command: ReceiveCommand, pusher: String)
                 (implicit session: Session): Unit = ()

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy