Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/varunsridharan/action-repository-roster

Shout-out supporters in your GitHub README file.
https://github.com/varunsridharan/action-repository-roster

action action-roster action-units actions community fork github github-action github-actions roster rosters shoutout stars

Last synced: 13 days ago
JSON representation

Shout-out supporters in your GitHub README file.

Awesome Lists containing this project

README

        



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

## šŸš€ Usage
1. [Setup Action Workflow File](#-github-action-workflow-file)
2. Update Your `README.md` with below code

***Repository Stargazers***
```markdown
## ā†³ Stargazers

```

***Repository Forks***
```markdown
## ā†³ Forkers

```
> :information_source: Currently there are ways to auto trigger the workflow when a users **stars** / **forks** the repository.
>
> :information_source: Using this action with the workflow trigger [fork](https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#fork) & [watch](https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#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](https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#schedule) 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 :paintbrush: 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 :paintbrush: 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

### :paintbrush: 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
```yaml
# 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

```yml
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

@dexit
@dexit
@trinitybranding
@trinitybranding

2 have starred this repository

### ā†³ Forkers

@dexit
@dexit
@trinitybranding
@trinitybranding

2 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](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[Checkout CHANGELOG.md](https://github.com/varunsridharan/action-repository-roster/blob/main/CHANGELOG.md)

## šŸ¤ Contributing
If you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/action-repository-roster/issues/).

## šŸ“œ License & Conduct
- [**MIT License**](https://github.com/varunsridharan/action-repository-roster/blob/main/LICENSE) Ā© [Varun Sridharan](website)
- [Code of Conduct](https://github.com/varunsridharan/.github/blob/master/CODE_OF_CONDUCT.md)

## šŸ“£ Feedback
- ā­ This repository if this project helped you! :wink:
- Create An [šŸ”§ Issue](https://github.com/varunsridharan/action-repository-roster/issues/) if you need help / found a bug

## šŸ’° Sponsor
[I][twitter] fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here][website].
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**][buymeacoffee]
- ā˜•ļøā˜•ļø How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**][buymeacoffee]
- šŸ”° We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**][paypal]
- šŸš€ Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**][paypal]

[paypal]: https://sva.onl/paypal
[buymeacoffee]: https://sva.onl/buymeacoffee
[twitter]: https://sva.onl/twitter/
[website]: https://sva.onl/website/

## Connect & Say šŸ‘‹
- **Follow** me on [šŸ‘Øā€šŸ’» Github][github] and stay updated on free and open-source software
- **Follow** me on [šŸ¦ Twitter][twitter] to get updates on my latest open source projects
- **Message** me on [šŸ“  Telegram][telegram]
- **Follow** my pet on [Instagram][sofythelabrador] for some _dog-tastic_ updates!

[sofythelabrador]: https://www.instagram.com/sofythelabrador/
[github]: https://sva.onl/github/
[twitter]: https://sva.onl/twitter/
[telegram]: https://sva.onl/telegram/

---


Built With ā™„ By Varun Sridharan




---