Skip to content

Commit 5ee9474

Browse files
committed
Use @scala-steward-dev for the runSteward task
1 parent 77d868d commit 5ee9474

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

build.sbt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -424,20 +424,22 @@ lazy val moduleRootPkg = settingKey[String]("").withRank(KeyRanks.Invisible)
424424
moduleRootPkg := rootPkg
425425

426426
// Run Scala Steward from sbt for development and testing.
427-
// Do not do this in production.
427+
// Members of the @scala-steward-org/core team can request an access token
428+
// of @scala-steward-dev for local development from @fthomas.
428429
lazy val runSteward = taskKey[Unit]("")
429430
runSteward := Def.taskDyn {
430431
val home = System.getenv("HOME")
431432
val projectDir = (LocalRootProject / baseDirectory).value
432-
// val ghAppDir = projectDir.getParentFile / "gh-app"
433+
val gitHubLogin = projectName + "-dev"
434+
// val gitHubAppDir = projectDir.getParentFile / "gh-app"
433435
val args = Seq(
434436
Seq("--workspace", s"$projectDir/workspace"),
435437
Seq("--repos-file", s"$projectDir/repos.md"),
436-
Seq("--git-author-email", s"me@$projectName.org"),
437-
Seq("--forge-login", projectName),
438-
Seq("--git-ask-pass", s"$home/.github/askpass/$projectName.sh"),
439-
// Seq("--github-app-id", IO.read(ghAppDir / "scala-steward.app-id.txt").trim),
440-
// Seq("--github-app-key-file", s"$ghAppDir/scala-steward.private-key.pem"),
438+
Seq("--git-author-email", s"dev@$projectName.org"),
439+
Seq("--forge-login", gitHubLogin),
440+
Seq("--git-ask-pass", s"$home/.github/askpass/$gitHubLogin.sh"),
441+
// Seq("--github-app-id", IO.read(gitHubAppDir / "scala-steward.app-id.txt").trim),
442+
// Seq("--github-app-key-file", s"$gitHubAppDir/scala-steward.private-key.pem"),
441443
Seq("--whitelist", s"$home/.cache/coursier"),
442444
Seq("--whitelist", s"$home/.cache/JNA"),
443445
Seq("--whitelist", s"$home/.cache/mill"),

0 commit comments

Comments
 (0)