object Github
- Source
- Github.scala
- Alphabetic
- By Inheritance
- Github
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Asset(id: Long, name: String, url: Uri, content: Option[String] = None) extends Product with Serializable
- implicit final class BedazzledRequest extends AnyVal
- final case class Branch(name: String, sha: Option[String] = None) extends Reference with Product with Serializable
- final case class Contents(base64: String, name: String, size: Long) extends Product with Serializable
- final case class DeleteRepoWebHook(slug: Slug, id: Long, token: AccessToken) extends GithubOp[Unit] with Product with Serializable
-
final
case class
Deployment(id: Long, ref: Reference, environment: String, deployables: List[Deployable], url: String) extends Product with Serializable
https://developer.github.com/v3/repos/deployments/#response-1
-
final
case class
DeploymentEvent(slug: Slug, repositoryId: Long, deployment: Deployment) extends Event with Product with Serializable
Reference: https://developer.github.com/v3/activity/events/types/#deploymentevent
-
sealed
trait
Event extends AnyRef
Represents the events Nelson will recieve from Github (from webhooks).
- final case class GetAccessToken(fromCode: String) extends GithubOp[AccessToken] with Product with Serializable
- final case class GetDeployment(slug: Slug, id: Long, t: AccessToken) extends GithubOp[Option[Deployment]] with Product with Serializable
- final case class GetFileFromRepository(slug: Slug, path: String, ref: Reference, t: AccessToken) extends GithubOp[Option[Contents]] with Product with Serializable
- final case class GetOrganizations(keys: List[OrgKey], token: AccessToken) extends GithubOp[List[Organization]] with Product with Serializable
- final case class GetRepoWebHooks(slug: Slug, token: AccessToken) extends GithubOp[List[WebHook]] with Product with Serializable
- final case class GetUser(token: AccessToken) extends GithubOp[User] with Product with Serializable
- final case class GetUserOrgKeys(token: AccessToken) extends GithubOp[List[OrgKey]] with Product with Serializable
- final case class GetUserRepositories(token: AccessToken) extends GithubOp[List[Repo]] with Product with Serializable
- final class GithubHttp extends ~>[GithubOp, IO]
- sealed trait GithubOp[A] extends AnyRef
- type GithubOpF[A] = Free[GithubOp, A]
- final case class OrgKey(id: Long, slug: String) extends Product with Serializable
-
final
case class
PingEvent(zen: String) extends Event with Product with Serializable
this is sent by github when the hook is initially setup, just to make sure that the specified location is actually reachable by github and is responding
- final case class PostRepoWebHook(slug: Slug, hook: WebHook, t: AccessToken) extends GithubOp[WebHook] with Product with Serializable
-
final
case class
PullRequestEvent(id: Long, url: String, slug: Slug) extends Event with Product with Serializable
Reference https://developer.github.com/v3/activity/events/types/#pullrequestevent
Reference https://developer.github.com/v3/activity/events/types/#pullrequestevent
This event definition is a placeholder for future support for inbound pull request deployments. This skeleton is being provided so that Nelson can parse the inbound payload and give a 200 OK response so Github doesn't think Nelson is faulty.
- sealed trait Reference extends AnyRef
- final case class Release(id: Long, url: String, htmlUrl: String, assets: List[Asset], tagName: String) extends Product with Serializable
-
final
case class
ReleaseEvent(id: Long, slug: Slug, repositoryId: Long) extends Event with Product with Serializable
Reference: https://developer.github.com/v3/activity/events/types/#releaseevent
Reference: https://developer.github.com/v3/activity/events/types/#releaseevent
Nelson still accepts these as inbound input for historical reasons, so we simply accept it on the webhook entrypoint so that Github does not get invalid responses from Nelson (putting the webhook into an unsafe state).
- final case class Sha(str: Sha256) extends Reference with Product with Serializable
- final case class Tag(version: Version) extends Reference with Product with Serializable
- final case class User(login: String, avatar: URI, name: Option[String], email: Option[String]) extends Product with Serializable
- final case class WebHook(id: Long, name: String, events: List[String], active: Boolean, config: Map[String, String]) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object Interpreter
- object Reference
- object Request
- object WebHook extends Serializable