Skip to main content

star_history

Creates, updates, deletes, gets or lists a star_history resource.

Overview​

Namestar_history
TypeResource
Idgithub.activity.star_history

Fields​

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
starred_atstring (date-time)When the star was given.
userobjectThe user who starred the repository (login, id, database_id, name, company, location, url, avatar_url).

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectowner, repoEvery star on a repository with the time it was given, oldest first - suitable for star growth over time. Backed by the GitHub GraphQL API (repository.stargazers ordered by STARRED_AT). Since July 2026 GitHub limits stargazer listings to repository admins and collaborators; other tokens get "Resource not accessible by personal access token".

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository.
repostringThe name of the repository.

SELECT examples​

Every star on a repository with the time it was given, oldest first - suitable for star growth over time. Backed by the GitHub GraphQL API (repository.stargazers ordered by STARRED_AT). Since July 2026 GitHub limits stargazer listings to repository admins and collaborators; other tokens get "Resource not accessible by personal access token".

SELECT
starred_at,
user
FROM github.activity.star_history
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;