Back to Resources

How to star GitHub gists with gh api

Star one public gist with gh api PUT /gists/{id}/star, prove starred via HTTP 204 and GET /gists/starred, then DELETE unstar to HTTP 404. Never --web.

Flowchart
4 linescompact
flowchart LR
    Gist["View Public / Secret Gist"] --> Star["Click 'Star' Button in Header"]
    Star --> Saved["Gist Added to Personal Starred List"]
    Saved --> View["Browse anytime at gist.github.com/starred"]
Rendered from Mermaid source with the native ZeroLabs diagram container.

Star a gist

From Saving gists with stars:

  1. Navigate to Discover and open the gist you want to star (or open any gist URL).
  2. In the top-right corner of the page, click Star.
  3. Optionally, to remove it later, click Unstar. That drops the gist from your starred list.

View your starred gists

Starring makes it easy to find a gist again. Either:

  • Go directly to https://gist.github.com/YOUR_USERNAME/starred, or
  • Follow the menu path:
  1. Navigate to your gist home page.
  2. In the top right, click your profile picture.
  3. From the dropdown, select Starred gists.

You can also browse recently starred gists from other users on the Gist starred page.

Further reading

Share