Skip to content

repo-age - Use repository creation date - #10258

Open
kumaranurag00748-byte wants to merge 3 commits into
refined-github:mainfrom
kumaranurag00748-byte:repo-age-api-creation-date
Open

kumaranurag00748-byte wants to merge 3 commits into
refined-github:mainfrom
kumaranurag00748-byte:repo-age-api-creation-date

Conversation

@kumaranurag00748-byte

@kumaranurag00748-byte kumaranurag00748-byte commented Oct 16, 2026 •

Copy link
Copy Markdown

Closes #10012

What changed

Keep the repository age based on the first commit date, while comparing it with GitHub’s repository creation date from the existing GraphQL API request.

When the dates differ substantially, display a question-mark warning icon. Hovering the warning shows both the first commit date and repository creation date in the tooltip. The existing first-commit lookup and commits-page link are preserved.

Test URLs

Validation

  • npm test
  • npm run lint
  • npm run format:check
  • npm run build

All checks passed.

Screenshot

tooltip

Use the GitHub REST API created_at value for repository age while preserving the first-commit link and date in the tooltip.
@github-actions github-actions Bot closed this Oct 16, 2026
@github-actions

This comment was marked as resolved.

@kumaranurag00748-byte kumaranurag00748-byte changed the title repo-age - Use repository creation date (#10012) repo-age - Use repository creation date Oct 16, 2026
@waifucon

waifucon commented Oct 16, 2026 •

Copy link
Copy Markdown

@fregante, if it looks good merge this pr, it should close the issue i opened.

@kumaranurag00748-byte

Copy link
Copy Markdown
Author

The PR is currently closed, but the requested change has been verified on the real GitHub page:

https://github.com/NextAlone/Nagram

The sidebar displays 5 years old, using the repository API created_at value:

https://api.github.com/repos/NextAlone/Nagram

The PR description includes the verification screenshot. Could a maintainer please reopen the PR for review?

@fregante fregante reopened this Oct 16, 2026
@fregante

fregante commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

It can reuse the same API call, it doesn't need another one. If you test it and it works, the correct implementation should look something like this: https://github.com/refined-github/refined-github/pull/10182/changes

Read createdAt from the existing GraphQL requests instead of making an additional REST API call.
Comment thread source/features/repo-age.tsx Outdated
…10012)

Keep the age based on the first commit and show the repository creation date only when the dates differ substantially.
@fregante

Copy link
Copy Markdown
Member

Would be good to get a screenshot of this new icon with the tooltip

@kumaranurag00748-byte

Copy link
Copy Markdown
Author

I added the required screenshot of tooltip in the PR description and changed the same accordingly.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

repo-age should use github api for repo date creation.

3 participants