Skip to content
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

Generate timestamps on pre-commit #58

Merged
merged 3 commits into from
Jun 1, 2024
Merged

Conversation

mostafa
Copy link
Member

@mostafa mostafa commented Jun 1, 2024

This PR updates the old generate_last_modified_data.sh to be executed as a pre-commit hook when committing a change that involves doc pages. The script is updated to only update the timestamp on files that has actually been changed and not all the files and since it runs as a pre-commit hook (if enabled), it'll add the changes to the same commit, thus preventing unnecessary extra commits for modification of the last date and time field in the frontmatter.

Copy link

vercel bot commented Jun 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2024 9:51am

@mostafa mostafa merged commit 63f2e2a into main Jun 1, 2024
4 checks passed
@mostafa mostafa deleted the generate-timestamps-on-precommit branch June 1, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant