项目作者: RocktimSaikia

项目描述 :
Github action to automatically add badges to your readme :zap:
高级语言: JavaScript
项目地址: git://github.com/RocktimSaikia/badge-it.git
创建时间: 2020-08-25T13:43:27Z
项目社区:https://github.com/RocktimSaikia/badge-it

开源协议:MIT License

下载


" class="reference-link">badge-it Build Status

Github action to automatically add shield badges to your README.md :zap:

A Github action to add badges in your README.md without any hassle. We love badges but generially it’s a tedious job to copy paste badges from shield.io to your README.md .So this Action helps to add badges without you having to do all the copy pasting and configuration.

DEMO REPO

Usage

  • Badges - To add your preffered badge, check it’s correspoding key in the Availabe Badges section below and add the key in the badges input seperated by commas (,).

  • Badge Style - To specifiy style for your badges .Add your preffered badge style in the badge-style input. Default is flat.

  1. - name: Add Badges
  2. uses: rocktimsaikia/badge-it@master
  3. with:
  4. GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}
  5. badges: 'gh_license, gh_version, gh_stars'
  6. badge-style: 'flat-square'

Inputs

  • GITHUB_TOKEN - A personal Github token.
  • badges - Name of the badges to add to your README.
  • badge-style - The style type for your badges.

Available Badges

Keys are enclosed in brackets ()

  • GitHub - Github license (gh_license)
  • GitHub - Package.json version (gh_version)
  • GitHub - Stars (gh_stars)
  • GitHub - Fork counts (gh_fork)
  • GitHub - Followers counts (gh_followers)
  • GitHub - Open issues (gh_open_issues)
  • GitHub - Closed issues (gh_closed_issues)
  • GitHub - open pull requests (gh_open_pr)
  • GitHub - All dependecnies (gh_dependencies)
  • GitHub - Repo Size (gh_repo_size)
  • GitHub - Code Size (gh_code_size)
  • GitHub - TravisCI.com (travis_com)
  • GitHub - TravisCI.org key(travis_org)

Todo

There are many more badges that can be added here. If you want to contribute open a issue to discuss before hand. Currenly this action accepts only specifically Github related badges. But badges for CI services can also be added here. Thats could a be seperate issue on itself.