private def isPullRequest: Boolean = sys.env.getOrElse()

in project/GitVersion.scala [29:45]


  private def isPullRequest: Boolean = sys.env.getOrElse("GITHUB_EVENT_NAME", "unknown") == "pull_request"

  /**
   * Bump the last git described version to use for the current snapshot. If it is a version branch
   * and the prefix doesn't match, then it is the first snapshot for the branch so use the branch
   * version to start with. 
   */
  private def toSnapshotVersion(branch: String, v: String): String = {
    val v2 = Version(v).map(_.bump.string).getOrElse(v)
    val suffix = "-SNAPSHOT"
    branch match {
      case versionBranch(b) if !v2.startsWith(b) =>
        s"${Version(s"$b.0").map(_.string).getOrElse(v2)}$suffix"
      case _ =>
        s"$v2$suffix"
    }
  }