github / cleanowners

A GitHub Action to suggest removal of non-organization members from CODEOWNERS files
MIT License
109 stars 7 forks source link

feat: Report as issue markdown #90

Closed zkoppert closed 3 months ago

zkoppert commented 3 months ago

Pull Request

fixes #11

Proposed Changes

This pull request introduces a new feature that generates a report of users removed from the CODEOWNERS files across the repos that were affected. The report is written in Markdown format and can be optionally created as an issue in the repository. The ISSUE_REPORT environment variable controls this feature. The README.md file has been updated to explain this new feature and how to use it.

I also added/modified tests to cover the new functionality.

Readiness Checklist

Author/Contributor

Reviewer

jmeridth commented 3 months ago

Ran lint locally and got cleanowners.py:145:58: E0601: Using variable 'codeowners_file_contents_new' before assignment (used-before-assignment) hence the change to default codeowners_file_contents_new to None in my commit.

zkoppert commented 3 months ago

Looks good! Thanks for adding @jmeridth. Leaving this pr open for @sutterj to take a look at.