scala-ide/scala-ide.github.com

Name: scala-ide.github.com

Owner: Eclipse Scala IDE

Description: null

Created: 2011-11-25 16:27:42.0

Updated: 2017-03-12 17:28:00.0

Pushed: 2018-01-03 11:48:12.0

Homepage:

Size: 6172

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Scala IDE website

The website is rendered by github.

Testing

To test the website locally, use jekyll v1.0.2

To start the server locally, with automatic refresh on file modification:

ll serve --baseurl ""
Prepare Release Notes

Generally, we want to include information about which new features exist, how many bugfixes are there and how many commits were contributed by whom.

The stats about the number of bugfixes can be found on Assembla. We need to download a list of tickets that were closed after the day of the last release. Make sure that the data export includes the AssignedTo and the Status field. After downloading the data, it can be analyzed with the following Scala program, which shows the author together with the count of rows where they are mentioned:

ct Stats extends App {

l src = io.Source.fromFile("/path/to/fixed-tickets.csv").mkString

l (header, data) = {
val d = src.split("\n").map(_.split(","))
(d.head, d.tail)


l ass = for (i <- 0 until header.size)
yield header(i) -> (for (j <- 0 until data.size) yield data(j)(i))

 "assigned_to_name" is the name of the datafield of the "AssignedTo" column
l assignees = ass.find { case (field, _) => field == "assigned_to_name" }.get._2

l names = assignees.groupBy(identity).map {
case (name, ns) => name -> ns.size


l sortedNames = names.toList.sortBy(-_._2)

intln(s"""|
|As for every release, we'll take a look at some statistics from our bug database.
|
|<pre>
|${data.length} tickets closed:
|${
  val strs = sortedNames map {
    case (name, nr) ?
      s"    $nr\t${if (name.isEmpty) "(unassigned)" else name}"
  }
  strs.mkString("\n")
}
|</pre>
""".stripMargin)

This program is not perfect, it assumes that the CSV file doesn't include commas in its data. If you see inconsistencies in the calculated output, its likely that such a comma exist. Either remove it manually from the CSV file or update the parsing to handle CSV correctly.

The stats about the number of contributed commits can be calculated with:

shortlog -sn --no-merges <prev-release>..<current-release>

Unfortunately, the section about new features can not be automatically generated, but the changelog can, which helps in getting an overview about all changes. In the Scala IDE main repo, there is a script:

nChangeLog.bash <prev-release> <current-release>

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.