diff options
Diffstat (limited to 'bot/src/dotty/tools/bot/model/Github.scala')
-rw-r--r-- | bot/src/dotty/tools/bot/model/Github.scala | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bot/src/dotty/tools/bot/model/Github.scala b/bot/src/dotty/tools/bot/model/Github.scala index c089f0cf2..fafa2b86a 100644 --- a/bot/src/dotty/tools/bot/model/Github.scala +++ b/bot/src/dotty/tools/bot/model/Github.scala @@ -12,4 +12,32 @@ object Github { number: Int, pull_request: Option[PullRequest] ) + + case class CommitInfo( + message: String + ) + + case class Commit( + sha: String, + author: Author, + committer: Author, + commit: CommitInfo + ) + + case class Author( + login: Option[String] + ) + + case class Status( + state: String, + target_url: String, + description: String, + context: String = "CLA" + ) + + case class StatusResponse( + url: String, + id: Long, + state: String + ) } |