-
Notifications
You must be signed in to change notification settings - Fork 1.5k
WIP: automatically diff KEP headings versus the template #5267
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BenTheElder The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -0,0 +1,100 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is based on hack/update-toc.sh + hack/apidiff.sh (kubernetes/kubernetes)
eb4fc35
to
ea63ef8
Compare
echo >&2 "Diffing table of contents for $kep_readme:" | ||
# diff only removals versus the template | ||
# we don't care about _additional_ headings in the KEP | ||
# TODO: ignore certain allowed removals "(Optional)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we just stuck (Optional)
in all of the optional headings (most already do), then this is already implemented.
proof of concept using mdtoc (which we already use for update-toc.sh)
ea63ef8
to
1c4a3e8
Compare
Sharing a quick proof of concept using mdtoc (which we already use for update-toc.sh)
See thread: https://kubernetes.slack.com/archives/C5P3FE08M/p1746127465971139
TODO:
The gist is there though, we can check for any new questions that have been missed by diffing against the template for kep READMEs touched by the PR.