fdns / Terasology

Terasology is an open source project started by Benjamin "begla" Glatzel to research procedural terrain generation and efficient rendering techniques in Java using the LWJGL. The engine uses a block-based voxel-like approach as seen in Minecraft. After proving itself as a solid tech demo begla was joined at first by Anton "small-jeeper" Kireev and Rasmus "Cervator" Praestholm and a full-fledged game concept was born. Our goal is a game that pays ample tribute to Minecraft in initial look and origin, but stakes out its own niche by adopting the NPC-helper and caretaker feel from such games as Dwarf Fortress and Dungeon Keeper, while striving for added depth and sophistication in the foundation systems akin to DF.
http://terasology.org/
Apache License 2.0
0 stars 4 forks source link

RS60 - Obtener información de bugs por clase desde un repositorio #90

Closed kidonkey closed 9 years ago

kidonkey commented 9 years ago

Obtener de GitHub la información disponible sobre bugs de un repositorio, en particular la cantidad de bugs reportados por cada clase.

kidonkey commented 9 years ago

Mediante la API se pueden obtener los issues por repositorio, filtrarlos por label "bug". Vienen en formato JSON, no necesariamente referencian a una clase. https://developer.github.com/v3/issues/comments/

kidonkey commented 9 years ago

As the decision was not to use the GitHub API but JGit, the lib's structures to interact with git objects were used to search the tree for commits containing the word 'bug' or 'fixed' (to eliminate false positives) and map them to their .class files. This again was achieved by searching the tree for the change log, so commits could be associated with their respective classes, since the commit structure itself does not contain this information.

Sure enough there was a more efficient way to implement, but it does the work.