1
0
mirror of synced 2026-01-05 12:07:35 -05:00
Files
docs/data/reusables/rest-reference/activity/starring.md
2022-02-28 18:30:54 +00:00

1.3 KiB

Starring

Repository starring is a feature that lets users bookmark repositories. Stars are shown next to repositories to show an approximate level of interest. Stars have no effect on notifications or the activity feed.

Starring vs. Watching

In August 2012, we changed the way watching works on {% data variables.product.prodname_dotcom %}. Many API client applications may be using the original "watcher" endpoints for accessing this data. You can now start using the "star" endpoints instead (described below). For more information, see the Watcher API Change post and the "Repository Watching API."

Custom media types for starring

There is one supported custom media type for the Starring REST API. When you use this custom media type, you will receive a response with the starred_at timestamp property that indicates the time the star was created. The response also has a second property that includes the resource that is returned when the custom media type is not included. The property that contains the resource will be either user or repo.

application/vnd.github.v3.star+json

For more information about media types, see "Custom media types."