Skip to content

htrinter/copilot-skillsets-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Copilot Skillsets Example

ℹ️ 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:

  1. /top-github-repos: Retrieves the top GitHub repositories from the public GitHub API and filters them by star rating.
  2. /hacker-news-posts: Retrieves current posts from Hacker News.

Requirements

  • Python 3.8+
  • Poetry

Installation

  1. Clone the repository:
git clone <repository-url>
cd github-copilot-skillset
  1. Install the dependencies using Poetry:
poetry install

Running the Application

To run the FastAPI application, use the following command:

poetry run uvicorn main:app --reload

The application will be available at http://127.0.0.1:8000.

Endpoints

/top-github-repos

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
}

/hacker-news-posts

Retrieves current posts from Hacker News.

Example:

POST /hacker-news-posts

About

FastAPI application that serves a GitHub Copilot Skillset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published