Fix docs pages showing identical created/updated dates - #149
Merged
Conversation
The pages workflow used the default shallow clone (fetch-depth: 1), which only fetches the latest commit. git log --follow therefore saw only one commit per file, making created == updated == today. Adding fetch-depth: 0 gives the full repository history so git timestamps correctly reports the oldest commit as created and the newest commit as last-updated. Signed-off-by: Copilot <copilot@github.com> Agent-Logs-Url: https://github.com/onnxruntime/mobius/sessions/5f272c31-b070-420b-9ee7-7da1f8930821 Co-authored-by: justinchuby <11205048+justinchuby@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix documentation page creation and update date capture
Fix docs pages showing identical created/updated dates
Apr 10, 2026
justinchuby
approved these changes
Apr 10, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes Sphinx docs pages showing identical “Created” and “Last updated” dates by ensuring the Pages workflow checks out full git history so git log --follow can see more than one commit per file during the build.
Changes:
- Configure
actions/checkoutin the Pages workflow to usefetch-depth: 0(full history) for accurate timestamp extraction.
Performance Comparison
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Sphinx pages workflow used a shallow clone (default
fetch-depth: 1), sogit log --followsaw exactly one commit per file — collapsing "Created" and "Last updated" to the same date for every page.Change
.github/workflows/pages.yml: addfetch-depth: 0to theactions/checkoutstep so the full repo history is available whengit_timestamps.pyrunsgit log --followduring the Sphinx build.