[Feature Request]: Reopen an issue if it corresponds to unresolved TODOs in the codebase. #19755
Labels
enhancement
Label to indicate an issue is a feature/improvement
Impact: High
Blocks or significantly slows down a core workflow.
Work: Medium
The means to find the solution is clear, but it isn't at good-first-issue level yet.
Is your feature request related to a problem? Please describe.
The Oppia Android repo has a nice feature where GitHub Actions reopens an issue if there are unresolved TODOs left in the codebase, e.g. oppia/oppia-android#3016 (comment)
We should do this for Oppia Web as well, but I would suggest additionally having this as a check that runs on PRs that claim to fix an issue.
Describe the solution you'd like
When a PR gets linked to an issue on GitHub (e.g. through "Fix #XXX" in the title/description), a GitHub Actions workflow should do a scan to see whether there are any remaining unhandled TODOs left in the codebase, and leave a comment on the PR if there are.
When an issue is closed, the workflow should scan the codebase for TODOs corresponding to that issue, and reopen the issue if such TODOs are found (mentioning where these TODOs are in the code).
Describe alternatives you've considered
N/A
Additional context
We can probably just repurpose what's already written for Oppia Android.
Note: See also oppia/oppia-android#4930 which suggests a better system than Oppia Android's status quo for handling this (i.e. triggering the TodoCheck workflow on PR creation). See also oppia/oppia-android#5315 which tries to make it locally runnable.
The text was updated successfully, but these errors were encountered: