PDA

View Full Version : Github Commits Tracking


madmaxmangos
03-17-2014, 11:32 AM
Hey,

We are going to be moving from SMF to vBulletin in a few weeks and need a mod made that is able to pull the latest commits from Github using the .atom (rss) files and load them into a page.

This is for vBulletin 4.4.2 level 1 patch.

Currently we use a simple HTML page to display these: http://getmangos.com/#cores

Atom file: https://github.com/mangoszero/server/commits/master.atom

There are five in total.

As changes are committed to the repository the .atom file for the reposity is updated with a commit like so:

<entry>
<id>tag:github.com,2008:Grit::Commit/8f219f118d584f1b09441a4966e884c71480a1d5</id>
<link type="text/html" rel="alternate" href="https://github.com/mangoszero/server/commit/8f219f118d584f1b09441a4966e884c71480a1d5"/>
<title>
Added source grouping for various script types.
</title>
<updated>2013-11-01T11:59:50-07:00</updated>
<media:thumbnail height="30" width="30" url="https://1.gravatar.com/avatar/71af419d210792536bcbb39dd15a292e?d=https%3A%2F%2Fi denticons.github.com%2Fc052a2c7cda859b576622ada7eb 31fa7.png&amp;r=x&amp;s=30"/>
<author>
<name>danielsreichenbach</name>
<uri>https://github.com/danielsreichenbach</uri>
</author>
<content type="html">
&lt;pre style='white-space:pre-wrap;width:81ex'>Added source grouping for various script types.

Scripts have been grouped by continent, and type.

Signed-off-by: Daniel S. Reichenbach;</pre>
</content>
</entry>


Ideally we'd like the .atom file pulled into a database so we can keep a complete history of commits and an admin page to add / remove or edit existing repository urls and admin the commits.

For the user side there is not much interaction as you can see on our current site. It would be nice if each repository feed was given it's own block to display information in like our site though with a bit more information then just the title of the commit.

Maybe how our forums have it - https://community.getmangos.co.uk/index.php/topic,20705.0.html

It displays the title, Content, author and link to the github commit page.


End result:

User visits a page (commits.php) and has blocks for each repository with information on each commit.