cleanowners
cleanowners copied to clipboard
Add a warning if we are removing all users from CODEOWNERS
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days.
I would be happy to see that :)
@zkoppert Any chance that you could contribute such functionality?
You might wish to examine the codeowners_file_contents_new in https://github.com/github/cleanowners/issues/11 and act.
I suggest to always use the same issue and update/close/reopn it accordingly.
How would folks like to see this warning? in the command line and dont create a pull request? or should we create the pull request and put the warning in the pull request description so folks dont merge through an empty CODEOWNERS?
In my humble opinion, I believe we should draw inspiration from GitHub's stale-repos project. An organization is likely to run workflows like stale-repos, cleanowners, and others from a single repository, allowing the workflow to examine the entire organization.
For instance, the stale-repos action/workflow could maintain an issue with a list of stale repositories. Similarly, cleanowners could maintain an issue with lists of:
- Repositories without a CODEOWNERS file
- Repositories with an empty CODEOWNORS file
- Links to open PRs created by cleanowners
- Any other such lists...
By doing so, we can streamline our workflow and ensure that our organization's repositories are well-maintained and up-to-date.
@electriquo I like that idea! I think I'll add a report and issue creation as well as printing a warning to the terminal during the workflow run.