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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra: Ignore certain commits when calculating the last modified date #3432

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Sep 9, 2023

Depends on #3431.

Due to #3418, all dates in the footers of PEPs report that the PEP was last modified on 9 September 2023. Whilst this was expected, and is superficially correct, we really want to report the last substantive modification time.

This uses the comprehensive list of ignored commits from #3431 to display the most recent substantive modification of each PEP, which is what readers would expect.

A


馃摎 Documentation preview 馃摎: https://pep-previews--3432.org.readthedocs.build/

@AA-Turner AA-Turner requested a review from a team as a code owner September 9, 2023 20:42
@AA-Turner AA-Turner marked this pull request as draft September 9, 2023 20:42
@AA-Turner
Copy link
Member Author

(Converting to draft as this should not be merged before #3431)

@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label Sep 10, 2023
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly I'd never noticed the "Last modified" date at the very bottom. Instead of setting up all of this new logic, what if we simply remove date and leave only a link to the list of commits?

@hugovk
Copy link
Member

hugovk commented Sep 14, 2023

Should "Last modified:" be renamed as "Last substantive modified:"? I don't think so.

You can mark edits on Wikipedia as "minor edits", but they still show up as "Last edited".

I'd just leave it as is, let "Last modified" reflect reality, and people who click it can see the history and decide for themselves what is important for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants