0.0.7 • Published 8 years ago

gh-badge v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Gh-badge

This is an ember addon that shows a list of commits for a github repository.

Installation

  • ember install gh-badge

Usage

  • Firstly you'll need a Github API key/personal access token. Get it here
  • You'll need to store the token in config/environment.js like so
var ENV = {
    APP: {
      GITHUB_AUTH: '<Your Token Here>'
    }
  }
  • In your template file where you'd like the badge(s) to show up, use the following markup {{gh-badge user='emberjs' repo='ember.js'}}. Replace the user and repo with whatever you'd like. Note that the repo has to be public in order for the addon to work.

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.