You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see a created_at property when I use the REST API
D'oh. Indeed. It should be pretty easy to implement then. Ideally this information should be found on the GraphQL API though; Only as a last resort we should use the REST API.
Knowing that the first commit is not necessarily equal to the date of creation of the project, right?
Technically I'd say that the first commit is the birth of the project. I think created_at is the time you created a GitHub repo but one could create a GitHub repo long after starting work locally.
However this is kind of a nitpick so created_at should be good enough.
Activity
sindresorhus commentedon Nov 10, 2019
I sometimes needed this too. Where should it be shown if so?
yakov116 commentedon Nov 10, 2019
@sindresorhus under the repo name
sindresorhus commentedon Nov 10, 2019
@yakov116 I disagree. It's not important enough to clutter up that area. It should be in a more subtle place.
fregante commentedon Nov 10, 2019
This should be possible with this query, but for some reason it requires a
beforecursor.history(first: 1)works without any other parameter (but it's the latest commit, not the first)Otherwise we have to use the REST API and still use 2 queries. The first one includes a link to the last page, which will include the first commit.
Androz2091 commentedon Nov 13, 2019
I don't know how the extension works, it was just a suggestion that I can't make myself but I see a
created_atproperty when I use the REST API to get repository informations (for example https://api.github.com/repos/Androz2091/AtlantaBot) with only one query. Wouldn't it be better to use that?Edit: Knowing that the first commit is not necessarily equal to the date of creation of the project, right?
fregante commentedon Nov 13, 2019
D'oh. Indeed. It should be pretty easy to implement then. Ideally this information should be found on the GraphQL API though; Only as a last resort we should use the REST API.
Technically I'd say that the first commit is the birth of the project. I think
created_atis the time you created a GitHub repo but one could create a GitHub repo long after starting work locally.However this is kind of a nitpick so
created_atshould be good enough.yakov116 commentedon Nov 13, 2019
@fregante
{ repository(owner: "sindresorhus", name: "refined-github") { createdAt } }=>
{ "data": { "repository": { "createdAt": "2016-02-15T16:45:02Z" } } }maxmclau commentedon Nov 19, 2019
I like the idea of this, I'm going to give adding it a shot. Does anyone have issues with @fregante's idea of adding it to the stats/number's bar?
maxmclau commentedon Nov 20, 2019
This is using the repo's
created atvalue, but I'd like to base it off the time of first commit as discussedAndroz2091 commentedon Nov 20, 2019
Wow, that's awesome. Personally, the date of creation of the repository is perfect for me.
fregante commentedon Nov 20, 2019
As long as it can be determined in one HTTP request