-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat(ci): TODO GitHub issue checker #7642
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
23852f4
to
052f795
Compare
052f795
to
47f5643
Compare
47f5643
to
d6f6b46
Compare
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.
Nice. :)
Somehow I lost the comment I was actually trying to add... I'd suggest we run this only on a schedule and not with every PR. Otherwise closing an issue could prevent unrelated PRs from failing to merge which would be very disruptive. We can either add a slack notification on failures or possibly better, just reopen the issue. :) |
c8a7b7e
to
f1f3143
Compare
f1f3143
to
fc3d956
Compare
Added this - great point 👍 |
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.
LGTM. Can try to tighten up the bash mode for a bit more safety but not worth stressing about too much given this is just informational.
bc488d6
to
91a9858
Compare
db70bcb
to
95cf06b
Compare
Adding
M-do-not-merge
|
@clabby I added a PAT that should have the right permissions to CCI's env var |
Overview
Adds a script to
ops
that greps through the codebase for TODO comments that reference GitHub issues. If any of the issuesreferenced are closed, an error is thrown, and the script exits with a non-zero exit code and an error asking the user
to remove the stale TODO comment.
The script also has several options:
--verbose
: Prints out warnings and a summary for issues that were either not found as well as TODO comments with invalid formats.--strict
: Fails if any TODO comments are found that fit an invalid format.Accepted
TODO
formatsTODO(<issue_number>): <description>
(Default org & repo: "ethereum-optimism/optimism")TODO(repo#<issue_number>): <description>
(Default org "ethereum-optimism")TODO(org/repo#<issue_number>): <description>
Examples
TODO
ethereum-optimism
organization in order for CI to be able to reference issues inclient-pod
.