go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Feature Request: Public API for GitHub Stars Lists (create/manage lists, add repositories to lists)

Open loveRyujin opened this issue 1 year ago • 3 comments

Summary

Please provide public REST/GraphQL APIs to manage GitHub "Stars Lists" so that clients can programmatically:

  • Create/list/update/delete lists
  • Add/remove repositories to/from a list
  • Query items by list, and optionally reorder items

This feature exists in the Web UI ("Lists" on the stars page), but there is no public API to automate it.

Background / Problem

I want to categorize my starred repositories into lists (e.g., "AI and LLM", "Database") via automation/CLI.
Currently:

  • REST and GraphQL only support basic starring (star/unstar, list starred repos).
  • There are no public endpoints to manage "Stars Lists".

This blocks use cases like:

  • Personal knowledge management: batch organization, scheduled cleanup

Request

  • Consider exposing public REST and/or GraphQL APIs for Stars Lists
  • Share any timeline or plans; happy to help test or provide more detailed requirements

loveRyujin avatar Aug 13 '25 13:08 loveRyujin

As described in our README.md, this repo is a Go client library that covers only the GitHub v3 API.

If you wish to use the GitHub v4 API, please see: https://developer.github.com/v4/ and the corresponding Go client library: https://github.com/shurcooL/githubv4

When making requests like this, it would be incredibly useful if you linked to the official GitHub v3 API documentation to state exactly which endpoint(s) you would like to be supported.

gmlewis avatar Aug 13 '25 14:08 gmlewis

Thank you for the quick response and for clarifying the scope.

Image

The feature I’m requesting is the ability to manage “Stars Lists” (the lists shown on the Stars page in the GitHub web UI, as shown above). As far as I can tell, there are currently no public endpoints for this in either the v3 REST API or the v4 GraphQL API, so I’m unable to link to specific endpoints. Could you please confirm whether there are any public or preview endpoints (REST or GraphQL) for Stars Lists, or if there’s a place to track plans for exposing them? If/when an official API becomes available, I’d be happy to open a PR to add support in this client.

loveRyujin avatar Aug 14 '25 12:08 loveRyujin

According to GitHub Copilot: https://docs.github.com/?search-overlay-open=true&search-overlay-ask-ai=true&search-overlay-input=Are%20there%20any%20v3%20API%20endpoints%20that%20allow%20you%20to%20manage%20%22Stars%20Lists%22%3F

No, there are no v3 API endpoints available to manage "Stars Lists." The documentation does not mention any API support for creating, editing, or managing "Stars Lists." These actions can only be performed through the GitHub web interface.

Note that this repo is maintained by volunteers and is not officially affiliated with GitHub or their tech support team. Therefore, this request:

...or if there’s a place to track plans for exposing them? If/when an official API becomes available, I’d be happy to open a PR to add support in this client.

should be directed to the official GitHub tech support team, and not to this repo, as we can only attempt to support what is provided by the official GitHub v3 API.

Closing as not possible.

gmlewis avatar Aug 14 '25 13:08 gmlewis