aboutsummaryrefslogblamecommitdiff
path: root/bot/src/dotty/tools/bot/model/Github.scala
blob: fafa2b86a37ada0e0b70604ddffc6c34e1a6f12c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                     



























                            
 
package dotty.tools.bot
package model

object Github {
  case class PullRequest(
    url: String,
    id: Long,
    commits_url: String
  )

  case class Issue(
    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
  )
}