Skip to content
type

GitHub Action

Visitor Badge

v1.1.0 Latest version

Visitor Badge

type

Visitor Badge

Adds a badge to count visitors for your issues and PRs

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Visitor Badge

uses: wow-actions/[email protected]

Learn more about this action in wow-actions/visitor-badge

Choose a version

Visitor Badge

Adds a badge to count visitors for your issues and PRs.

screenshot

Usage

Create .github/workflows/visitor-badge.yml in the default branch:

name: Visitor Badge
on:
  pull_request:
    types: [opened]
  issues:
    types: [opened]
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: wow-actions/visitor-badge@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs

GITHUB_TOKEN

Your GitHub token for authentication.

color

The color or the badge. You can use any valid HEX color or pick from a predefined set of named colors. Default is blue. Note that the HEX colors should be used without # symbol prefix.

color demo
brightgreen
green
yellow
yellowgreen
orange
red
blue
grey
lightgrey
blueviolet
ff69b4

style

The style of the badge. Support flat, flat-square , plastic. Default is flat.

style demo
flat
flat-square
plastic

label

The label of the badge. Default is 'visitors'.

License

The scripts and documentation in this project are released under the MIT License