mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
(refs #74)Add web hook URL addition.
This commit is contained in:
@@ -6,7 +6,7 @@ object WebHooks extends Table[WebHook]("WEB_HOOK") with BasicTemplate {
|
||||
def url = column[String]("URL")
|
||||
def * = userName ~ repositoryName ~ url <> (WebHook, WebHook.unapply _)
|
||||
|
||||
def byPrimaryKey(owner: String, repository: String) = byRepository(owner, repository)
|
||||
def byPrimaryKey(owner: String, repository: String, url: String) = byRepository(owner, repository) && (this.url is url.bind)
|
||||
}
|
||||
|
||||
case class WebHook(
|
||||
|
||||
Reference in New Issue
Block a user