Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Add Installations Badge for number of installations of App #73

@abhijeetps

Description

@abhijeetps

I think it would be really cool, if we can add an installation badge in README.md of your application repository.
It could look something like this:
Installs Badge

How to add this badge in your repository?
I am using Dynamic Badge feature provided by Sheilds.io. Using this, one can add dynamic badges to show number of installations of the application.

Here's a template to know installations of your app:
https\://img.shields.io/badge/dynamic/json.svg?label={LABEL}&url={DEPLOYMENT-URL}/stats&query={QUERY}&colorB={HEXCODE}&style={SOME-STYLE}

Here's how to configure the badge using above template ☝️

Placeholder Replace with
{LABEL} Install (Or Installations, or whatever name you would like to add)
{DEPLOYMENT-URL} URL where you have deployed your app. (Note: This will only work if you have enabled stats for your app
{QUERY} Uses jsonpath, for probot app, this should be $.installations
{HEX-CODE} Hex code of the color you want (without # symbol)
{SOME-STYLE} One of the Styles provided by Shield.io

Thus, for example, for the Weekly Digest app, the number of installation badge could look something like this:
https://img.shields.io/badge/dynamic/json.svg?label=installs&url=https://weekly-digest.glitch.me/probot/stats&query=$.installations&colorB=01B1D7&style=for-the-badge

As @hiimbex suggested that this could be added to Probot template, please let me know where I can add this so that I can open a PR for the same. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions