Coder Social home page Coder Social logo

my-badges's Introduction

My Badges

My Badges

Do you like GitHub Achievements?
Do you want to get more badges?
We got you covered!

My Badges is a GitHub Action that generates badges for your profile README.md. Badges will be updated automatically every day. And you will get new badges as you progress, or as community adds new badges. Yes, you can add your own badges!

But how does those badges look like? Take a look here, or here.

Installation

Here is how to add my badges to your profile:

  • Star this repository.
  • Create your-username/your-username GH profile repository.
  • In README.md add the following code:
<!-- my-badges start -->
<!-- my-badges end -->
  • Add the following workflow .github/workflows/my-badges.yml to your repository.
name: my-badges

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

permissions:
  contents: write

jobs:
  my-badges:
    runs-on: ubuntu-latest
    steps:
      - name: Update My Badges
        run: npx update-my-badges ${{github.repository_owner}}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  • Start my-badges workflow, or wait for it to run automatically.

You can also perform these steps manually:

  • Go to username/username local repo.
  • Run npx update-my-badges --user <username> --token=<token> --dryrun.
  • Verify my-badges and readme.md changes.
  • Push a commit: git add -- . ':!data' && git commit -m "chore: update my-bagdes".

Configuration

Param ENV alias Description Default
token GITHUB_TOKEN Auth token
user GITHUB_USER Username
repo GITHUB_REPO Repository name to push badges {user/user}
data Path to JSON to generate badges. If empty, required data will be obtained from the GH API
size Badge size for README.md, px 64
dryrun Generate badges, but skip pushing them to git
pick List of badges to pick. Pass --pick="a-commit,ab-commit,revert-revert-commit" to generate only the specified entries. If empty gets all of them
omit List of badges to exclude. For example, if you're too shy to flex your stars: --omit:stars-100,stars-500,stars-1000 or even shorter --omit:stars-*
compact Represent the highest tier badges in README.md. For example, If you have both stars-100 and stars-500 achievements, only the last one will be shown

License

MIT

my-badges's People

Contributors

antonmedv avatar antongolub avatar general-cbic avatar annamedv avatar ccamel 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.