-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract out a GitHub plugin #31
Conversation
@@ -0,0 +1,2 @@ | |||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to be careful with our versioning strategy here. I'm rolling this back from 1.8 because otherwise I can't use it with http4s-dom which is currently blocked by upstream issues with 1.8, see http4s/http4s-dom#60 (comment).
val GitHubGit = s"git://github.com:$identifier/$identifier(?:\\.git)?".r | ||
val GitHubSsh = s"git@github.com:$identifier/$identifier(?:\\.git)?".r | ||
Try { | ||
val remote = List("git", "ls-remote", "--get-url", "origin").!!.trim() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth calling out this is how it works. Not everybody calls origin origin
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. I was mostly concerned with what the CI runners do, since you want to get this right on publish.
Yep, yet another plugin ...
This one automatically configures boilerplate settings (SCM info and Scala.js sourcemap URIs) assuming you are using GitHub. This was previously part of the settings plugin, but since it seems like many people don't want their scalac settings dictated to them I extracted out this less contentious part.