Git Product home page Git Product logo

action-repository-roster's Introduction

~ Shout-out supporters in your GitHub README file. ~

๐Ÿš€ Usage

  1. Setup Action Workflow File
  2. Update Your README.md with below code

Repository Stargazers

    ## โ†ณ Stargazers
    <!-- REPOSITORY_STARS:START --> <!-- REPOSITORY_STARS:END -->

Repository Forks

    ## โ†ณ Forkers
    <!-- REPOSITORY_FORKS:START --><!-- REPOSITORY_FORKS:END -->

โ„น๏ธ Currently there are ways to auto trigger the workflow when a users stars / forks the repository.

โ„น๏ธ Using this action with the workflow trigger fork & watch is the best optmized way.

if you want to remove users that have un-stared / deleted the fork then you might have to use cron to handle it


โš™๏ธ Configuration

Option Description Default
General Config
IMAGE_SAVE_PATH Custom location on where to save generated SVG image file.
Image Files Are Generated When Output Type Set To image
.github/roster/
Forks Config
FORK Set to true to generate latest forked users information. or provide a file location to update the information
If its set to FALSE the forked users information will not be generated
README.md
FORK_OUTPUT_TYPE this can be set to either table, list OR image markdown
FORK_OUTPUT_STYLE Please Refer ๐Ÿ–Œ๏ธ Styling Options Below table
FORK_COUNTS No of latest forked users to generate 7
FORK_DESCRIPTION set to true to show default description after Forks users information.
or you can also provide your custom text to show after the Forks users information. if its set to FALSE description will not be generated
true
Stars Config
STARS Set to true to generate latest Stargazers users information. or provide a file location to update the information
If its set to FALSE the Stargazers users information will not be generated
README.md
STARS_OUTPUT_TYPE this can be set to either table, list OR image markdown
STARS_OUTPUT_STYLE Please Refer ๐Ÿ–Œ๏ธ Styling Options Below table
STARS_COUNTS No of latest Stargazers users to generate 7
STARS_DESCRIPTION set to true to show default description after Stargazers users information.
or you can also provide your custom text to show after the Stargazers users information. if its set to FALSE description will not be generated
true

๐Ÿ–Œ๏ธ Styling Options

Option Description Output Types
Image Table List
no-image User's avatar will not be rendered โœ” โœ” โŒ
img-smooth User's avatar will slightly rounded โœ” โŒ โŒ
img-rounded User's avatar will rounded โœ” โŒ โŒ
img-small User's avatar will be set to small size โœ” โœ” โŒ
img-large User's avatar will be set to large size โœ” โœ” โŒ
no-name User's name will not be rendered โœ” โœ” โŒ
no-link Link to users github profile will not be added โŒ โœ” โœ”
list-ordered HTML list will be ordered โŒ โŒ โœ”
bold username text will be rendered in bold text โœ” โœ” โœ”
italic username text will be rendered in italic text โœ” โœ” โœ”
small username text will be rendered in small fontsize text โœ” โœ” โœ”

You can provide multiple styles in *_OUTPUT_STYLE by entering , separated | Example : img-small,bold,italic

Example Code

# Below Will Render Stargazers Data In HTML Table With small user avatar
STARS_OUTPUT_TYPE: 'table' # Possible Options [ image , table , list ]
STARS_OUTPUT_STYLE: 'img-small'

# Below Will Render Fork's Data In SVG Image with small user avatar & user's name hidden
FORK_OUTPUT_TYPE: 'image' # Possible Options [ image , table , list ]
FORK_OUTPUT_STYLE: 'img-small,no-name'

๐Ÿš€ Github Action Workflow File

name: "๐Ÿ™ Repository Roster"

on:
  workflow_dispatch:
  watch:
    types:
      - started
  fork:

jobs:
  update_latest_roster:
    if: github.repository == 'varunsridharan/action-repository-roster'
    name: "๐Ÿ”  Update Latest Roster"
    runs-on: ubuntu-latest
    steps:
      - name: "๐Ÿ“ฅ  Fetching Repository Contents"
        uses: actions/checkout@main

      - name: "๐Ÿ”  Markdown - Repository Roster"
        uses: "varunsridharan/action-repository-roster@main"
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

๐ŸŽ‰ Live Examples (for this repo)

โ†ณ Stargazers

@EnterpriseBranding
@EnterpriseBranding

1 have starred this repository

โ†ณ Forkers

@EnterpriseBranding
@EnterpriseBranding

1 have forked this repository

For Styling Demo Please Check Examples Directory


๐Ÿ“ Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Checkout CHANGELOG.md

๐Ÿค Contributing

If you would like to help, please take a look at the list of issues.

๐Ÿ“œ License & Conduct

๐Ÿ“ฃ Feedback

  • โญ This repository if this project helped you! ๐Ÿ˜‰
  • Create An ๐Ÿ”ง Issue if you need help / found a bug

๐Ÿ’ฐ Sponsor

I fell in love with open-source in 2013 and there has been no looking back since! You can read more about me here. If you, or your company, use any of my projects or like what Iโ€™m doing, kindly consider backing me. I'm in this for the long run.

  • โ˜• How about we get to know each other over coffee? Buy me a cup for just $9.99
  • โ˜•๏ธโ˜•๏ธ How about buying me just 2 cups of coffee each month? You can do that for as little as $9.99
  • ๐Ÿ”ฐ We love bettering open-source projects. Support 1-hour of open-source maintenance for $24.99 one-time?
  • ๐Ÿš€ Love open-source tools? Me too! How about supporting one hour of open-source development for just $49.99 one-time ?

Connect & Say ๐Ÿ‘‹


Built With โ™ฅ By Varun Sridharan


action-repository-roster's People

Contributors

gaction avatar varunsridharan avatar

Watchers

 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.