Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconZet committed Jan 19, 2023
1 parent 0f656f6 commit cf0849a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/kotlin/org/virtuslab/bazelsteward/app/Context.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ data class Context(
.optional()
val github by parser.option(ArgType.Boolean, description = "Run as a github action").default(false)
val pushToRemote by parser.option(ArgType.Boolean, description = "Push to remote", shortName = "p").default(false)
parser.parse(args)
val baseBranch by parser.argument(
val baseBranch by parser.option(
ArgType.String,
description = "Branch that will be set as a base in pull request"
).optional()
)

parser.parse(args)

val repoPath = if (github) GithubClient.getRepoPath(env) else Path(repository ?: ".")
val baseBranchName = baseBranch ?: runBlocking {
Expand Down

0 comments on commit cf0849a

Please sign in to comment.