Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kaustubhgupta/readme-projects-display

🔥 Display your projects information on your profile README
https://github.com/kaustubhgupta/readme-projects-display

github-actions github-api hacktoberfest profile-readme project project-management pygithub pygithub-examples python readme

Last synced: 22 days ago
JSON representation

🔥 Display your projects information on your profile README

Awesome Lists containing this project

README

        

![readme-projects-display](https://socialify.git.ci/kaustubhgupta/readme-projects-display/image?description=1&font=KoHo&forks=1&issues=1&language=1&owner=1&pattern=Floating%20Cogs&pulls=1&stargazers=1&theme=Light)





GitHub's Profile readme is a great tool to showcase your skills and projects to potential recruiters/developers. This GitHub action allows you to update a particular section of README with your Project details. These include the project name, stars, and a controllable amount of description.



## Getting Your Profile Ready

- Add this comment in your README.md/specified file:
```

```

- The repositories need to have `project` topics to add them to the project section.

- A GitHub personal access token will be needed which can be obtained by going to Settings > Developer Settings > Personal Access Tokens.

_Note: If you give personal repositories access then they will be added to the sections but their links will not work for others_

## Action Setup

GitHub actions can be integrated into any repository. Create a new folder called `.github/workflows/.yml`. Paste the following starter code:

```yml
name: Update Projects
on:
schedule:
- cron: '0 0 * * *'
# This makes the action run at the end of every day. Customize this accordingly or you can also trigger this action for GitHub events (Pull, Push). Check the GitHub actions page for that.
workflow_dispatch:
# workflow_dispatch allows you to trigger the action any time manually

jobs:
update-readme-with-projects:
name: Update this repo's README with latest project updates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: kaustubhgupta/readme-projects-display@master
with:
gh_token: ${{ secrets.TOKEN }} # Create a secret to store the access token
```

## Available Options

| Option | Default Value | Description | Required | Example |
| -------------- | ------------- | ---------------------------------------------------------------------------- | -------- | ------- |
| `gh_token` | NA | GitHub Personal Access token | Yes | NA |
| `file_name` | `README.md` | Name of the readme file or any other file containing the comment mentioned above. Note: The file needs to be at the root of the repository. (Dynamic paths coming in next version!) | No | myfile.txt/ myfile.html |
| `max_repo_description` | 50 | How much description you want to Display | No | 40 |
| `allow_forks` | True | Control if you want to display the number of forks of the repository | No | False |
| `project_sort_by` | `stars` | Control the sorting of projects by `'stars'` or `'forks'` | No | `'forks'` |

## Examples
- [My Workflow File](https://github.com/kaustubhgupta/kaustubhgupta/blob/master/.github/workflows/project-updater.yml)

**Happy?? Do Star ⭐ this Repo. 🤩**

## License

[![MIT Licence](https://img.shields.io/github/license/kaustubhgupta/PortfolioFy)](https://choosealicense.com/licenses/mit/)