Monday, 27 March 2017

How to add GitHub badges

Here is an example of some GitHub badges on a project:

It’s really easy to do, you just need to register your project with david-dm.org and travis-ci.org. Here is the markdown I used within my readme file:

# personal-website
My personal website as a full stack programmer.
[![Dependency Status](https://david-dm.org/stevenh77/personal-website.svg)](https://david-dm.org/stevenh77/personal-website)
[![devDependency Status](https://david-dm.org/stevenh77/personal-website/dev-status.svg)](https://david-dm.org/stevenh77/personal-website#info=devDependencies)
[![GitHub version](https://badge.fury.io/gh/stevenh77%2Fpersonal-website.svg)](https://badge.fury.io/gh/stevenh77%2Fpersonal-website)
[![Build Status](https://travis-ci.org/stevenh77/personal-website.svg?branch=master)](https://travis-ci.org/stevenh77/personal-website)
[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
view raw badges hosted with ❤ by GitHub

In my next blog posts I'll show examples of how to integrate online TravisCI for the build badge.

1 comment: