vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Github Commits Tracking (https://vborg.vbsupport.ru/showthread.php?t=309612)

madmaxmangos 03-17-2014 10:32 AM

Github Commits Tracking
 
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...ts/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:
Code:

<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%2Fidenticons.github.com%2Fc052a2c7cda859b576622ada7eb31fa7.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/in...c,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.


All times are GMT. The time now is 09:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02021 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete