Giter VIP home page Giter VIP logo

scala-ide.github.com's Introduction

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:

jekyll 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:

object Stats extends App {

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

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

  val 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
  val assignees = ass.find { case (field, _) => field == "assigned_to_name" }.get._2

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

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

  println(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:

git 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:

./GenChangeLog.bash <prev-release> <current-release>

scala-ide.github.com's People

Contributors

dotta avatar dragos avatar kiritsuku avatar huitseeker avatar heathermiller avatar skyluc avatar misto avatar esebastian avatar michih57 avatar rladstaetter avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.