pekko/project/GitHub.scala
Konrad Malawski 8b045173ad =pro #17397 improve PR validation speed tremendously (skipping things)
+ enable parallel execution
+ exclude perf tests (TODO mark more as such)
+ uses sbt-dependency-graph plugin
+ implement dependency tracking for testing of only these
+ project which could have been affected by a given PR
2015-05-08 14:09:12 +02:00

13 lines
363 B
Scala

package akka
object GitHub {
def envTokenOrThrow: String =
sys.env.getOrElse("PR_VALIDATOR_GH_TOKEN",
throw new Exception("No PR_VALIDATOR_GH_TOKEN env var provided, unable to reach github!"))
def url(v: String): String = {
val branch = if (v.endsWith("SNAPSHOT")) "master" else "v" + v
"http://github.com/akka/akka/tree/" + branch
}
}