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: af78ec900b383ecf72ec91ef8b67e39e74598049 (plain)
1
2
3
4
5
6
7
8
9
10
11
package com.getbootstrap.rorschach.github

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

abstract class GitHubActorWithLogging extends ActorWithLogging {
  protected val settings = Settings(context.system)
  protected val gitHubClient = new GitHubClient()
  gitHubClient.setUserAgent(settings.UserAgent)
  gitHubClient.setCredentials(settings.BotUsername, settings.BotPassword)
}