Displays a list of latest Github commits in Wordpress
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
latest-github-commits.php
widget.js

README.md

#Github-Latest-Commits

Author: bivald - http://www.bivald.com/wordpress/

Contributors: benkeen

Tested on Wordpress 3.3.2

Description

Latest Github Commits is a simple WordPress widget to fetch your latest commits from Github. It allows you to choose to specify one or more of your repositories and whether or not the commits listed are purely your own - or anyone else's contributions. To prevent long page loads, results are cached in Wordpress transient storage for a period of your choosing.

With github v1 and v2 being dropped this week, I've started on a v3 port. Coming soon...

You need to configure:

  • Github owner of the project (i.e bivald in the author's case)
  • Github repo name(s), or allow it to pull commit data from all your repos

Optional configurations:

  • Widget title
  • Max commits to list
  • How long to cache the results (defaults to 30 mins)
  • Date formatting
  • Whether or not the commits to be displayed are only your own, or anyone contributing to your projects

Installation

  1. Upload latest-github-commits.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Add the plugin to somewhere on your site (sidebar, footer etc) as a widget

Notes

  • The option to let you pull from all your repositories is convenient, but can be very slow when the data is first polled if you have a large number of repos. So generally, you'll want to specify which of the repositories you're interested in.
  • Right now, the format of the outputted commit data is pretty basic. I hope to finer controls at a later date.

Changelog

0.3 Updated by Ben Keen to provide a little more functionality: date formatting; option to pull from multiple repositories or all repos; option to only display commits by yourself, or all committers to your repo.

0.2 Patched by Jacob Lowe, redeyeoperations.com

0.1 Initial relase

Ben Keen @vancouverben