Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GitHubActorWithLogging.scala « github « rorschach « getbootstrap « com « scala « main « src - github.com/twbs/rorschach.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d2ab6f6e1957c044f486b74e00ef7889b9fa943e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package com.getbootstrap.rorschach.github

import org.eclipse.egit.github.core.RepositoryId
import org.eclipse.egit.github.core.client.GitHubClient
import com.getbootstrap.rorschach.server.{Settings, ActorWithLogging}

abstract class GitHubActorWithLogging extends ActorWithLogging {
  private val settings = Settings(context.system)
  protected val BootstrapRepoId = new RepositoryId("twbs", "bootstrap")
  protected val gitHubClient = new GitHubClient()
  gitHubClient.setCredentials(settings.BotUsername, settings.BotPassword)
}