Skip to content

Commit

Permalink
Ensure we whitelist /all/ the repositories a GitHub team entitles us to
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Nov 6, 2014
1 parent 869a3ad commit b59117c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/RepoWhitelistService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object RepoWhitelistService {
val organisationRepos: Set[GHRepository] = (for {
teamSet <- gitHub.getMyTeams.values
team <- teamSet if permissionsThatCanPush(team.getPermission)
repo <- team.getRepositories.values.toSet[GHRepository]
repo <- team.listRepositories()
} yield repo).toSet

val userRepos = gitHub.getMyself.listRepositories().asList().toSet
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ libraryDependencies ++= Seq(
ws,
"com.typesafe.akka" %% "akka-agent" % "2.3.2",
"org.webjars" % "bootstrap" % "3.2.0",
"org.kohsuke" % "github-api" % "1.59",
"com.madgag" % "github-api" % "1.59.99.1",
"com.github.nscala-time" %% "nscala-time" % "1.4.0",
"com.netaporter" %% "scala-uri" % "0.4.2",
"com.squareup.okhttp" % "okhttp" % "2.0.0",
Expand Down

0 comments on commit b59117c

Please sign in to comment.