ℹ️ The code in this repo belongs to a blog post about Github Copilot agents and was mostly generated by Copilot.
This is a FastAPI application that serves a GitHub Copilot Skillset. It provides two endpoints:
/top-github-repos: Retrieves the top GitHub repositories from the public GitHub API and filters them by star rating./hacker-news-posts: Retrieves current posts from Hacker News.
- Python 3.8+
- Poetry
- Clone the repository:
git clone <repository-url>
cd github-copilot-skillset- Install the dependencies using Poetry:
poetry installTo run the FastAPI application, use the following command:
poetry run uvicorn main:app --reloadThe application will be available at http://127.0.0.1:8000.
Retrieves the top GitHub repositories filtered by star rating.
Request Body:
stars(int): The minimum number of stars.
Example:
POST /top-github-repos
{
"stars": 10000
}
Retrieves current posts from Hacker News.
Example:
POST /hacker-news-posts