-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repository creation date #2526
Comments
I sometimes needed this too. Where should it be shown if so? |
@sindresorhus under the repo name |
@yakov116 I disagree. It's not important enough to clutter up that area. It should be in a more subtle place. |
This should be possible with this query, but for some reason it requires a {
repository(owner: "sindresorhus", name: "refined-github") {
defaultBranchRef {
target {
... on Commit {
history(last: 1) {
nodes {
committedDate
}
}
}
}
}
}
}
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. |
I don't know how the extension works, it was just a suggestion that I can't make myself but I see a Edit: Knowing that the first commit is not necessarily equal to the date of creation of the project, right? |
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 However this is kind of a nitpick so |
{
repository(owner: "sindresorhus", name: "refined-github") {
createdAt
}
} => {
"data": {
"repository": {
"createdAt": "2016-02-15T16:45:02Z"
}
}
} |
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? |
Wow, that's awesome. Personally, the date of creation of the repository is perfect for me. |
As long as it can be determined in one HTTP request |
It would be nice if we could have a quick access to the repository creation date (to know if it's a recent or an old project).
Example URL:
github.com/user/repo
The text was updated successfully, but these errors were encountered: