This repository contains a tool that leverages the GitHub API to fetch and compile a list of a user's public repositories, presenting them in a markdown document with links and descriptions for easy reference. It automates the process of creating a comprehensive overview of a user's GitHub projects.
- Fetches all public repositories for a specified GitHub user.
- Generates a markdown document with an unordered list of repository names linked to their GitHub pages.
- Includes detailed descriptions for each repository.
- Easy-to-use and customizable.
- Go (for building and running the tool)
- GitHub account and access token (if needed for higher rate limits)
-
Clone the repository:
git clone https://github.com/opd-ai/projects.git cd projects -
Install dependencies:
go get
-
Open the
main.gofile and replaceusername := "octocat"with the desired GitHub username. -
Build and run the tool:
go build ./projects
-
The tool will generate a markdown file named
{username}_repos.mdin the current directory.
For example, if you set the username to octocat, the tool will generate a file named octocat_repos.md with the following content:
# octocat's Public Repositories
- [repo1](https://github.com/octocat/repo1): Description for repo1.
- [repo2](https://github.com/octocat/repo2): Description for repo2.
- ...We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
This project is licensed under the MIT License.
For any questions or feedback, please feel free to reach out via GitHub Issues or contact us directly.