Skip to content
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

Merged
merged 9 commits into from
Jan 2, 2022

Conversation

armanbilge
Copy link
Member

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.

@@ -0,0 +1,2 @@
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1")
Copy link
Member Author

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()
Copy link
Member

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.

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants