Skip to content

An html widget to show the latest github commits of any public repository

Notifications You must be signed in to change notification settings

nlalonde/commits-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Commits Widget

Want to see the latest commits to a github repo on a web page? Have I got a widget for you!

Click here for a demo

It takes the following parameters:

Required:

  • owner: (string) The owner of the github repo.
  • repo: (string) The name of the repo.

Optional:

  • limit: (integer) How many commits to show, starting with the most recent.
  • width: (integer) The width in pixels of the widget.
  • height: (integer) The height in pixels of the widget.
  • heading: (string) The text to use in the header of the widget.

For example, to view this repository's 6 latest commits, I could load the widget in an iframe on a page like this:

<iframe src="http://nlalonde.github.com/commits-widget/index.html?owner=nlalonde&repo=nlalonde.github.com&limit=6&width=500&height=200" width="502px" height="202px"></iframe>

Easy pickings!

Feel free to fork this code, change it, and host it on your own servers. As shown in the example, I'm hosting it as a Github page at http://nlalonde.github.com/commits-widget/index.html.

About

An html widget to show the latest github commits of any public repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published