Giter Site home page Giter Site logo

github-basic-badges's Introduction

GitHub Basic Badges

GitHub Release GitHub Download Count GitHub Issues Open

Basic badges for using with GitHub, and a service that you can deploy and create your own service to serve the GitHub badges.

Motivation

I know there are alots of services that you can generate badges for GitHub, i just developed one more to play around with Ruby and Heroku.

Badges

All the URL Patterns showed in the table bellow must be used as <app-url>\<url-pattern>.

URL Pattern Description Preview
downloads/<user>/<repo>/total.svg Sum of downloads of all artifacts in the latest release. GitHub Download Count
downloads/<user>/<repo>/<tag>/total.svg Sum of downloads of all artifacts in the release with the <tag> GitHub Download Count By Tag
downloads/<user>/<repo>/<file>.svg Total downloads of the artifact named <file> in the latest release. GitHub Download Count By Artifact
downloads/<user>/<repo>/<tag>/<file>.svg Total downloads of an artifact named <file> in the release with a tag name <tag>. GitHub Download Count By Artifact and Release
release/<user>/<repo>.svg Latest release tag name. GitHub Release
issues/<user>/<repo>.svg Total issues open. GitHub Issues Open
commits/<user>/<repo>.svg Total commits. GitHub Commits
license/<user>/<repo>.svg Project LICENSE. GitHub License
pulls/<user>/<repo>.svg Project open pull requests. GitHub Pull Requests

Custom colors and text

You can customize the colors and the text of the badges, just use color and text parameters in the url, like customizing the last release example, check below:

GitHub Release Ex 1 GitHub Release Ex 2 GitHub Release Ex 3 GitHub Release Ex 4 GitHub Release Ex 5 GitHub Release Ex 6

For colors you can use any hex colors you want, and some basic already defined, check the file badge.rb for some basic colors.

Deploying on Heroku

Install heroku toolbet and log to it after that, it's pretty straigth forward deploying on heroku, just do the following:

# Cloning the repository
git clone https://github.com/kennedyoliveira/github-basic-badges.git
cd github-basic-badges

# Create a heroku app
heroku create

# Push the code to heroku
git push heroku master

# Open the app
heroku open

Mine Heroku App

My instance is running in the following url https://github-basic-badges.herokuapp.com you can use it to generate badges for your repos!

If you have any question or suggestion, open an issue!

github-basic-badges's People

Contributors

kennedyoliveira avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.