Open jpmcb opened 3 weeks ago
Initial thoughts:
pizza offboard <usernames/emails>
: removes the associated User(s) via name/email from .sauced.yaml
attribution file; regenerate the CODEOWNERS
after offboarding in the same commandI'd like to try my hand creating the base command both automatic and interactive mode, where in both can have multiple users defined to remove on config and CODEOWNERS
file! 🙋♀️
Suggested solution
Some early feedback we've gotten has been around the "offboarding experience" as it relates to GitHub resources and generating codeowners files.
Scenario: let's say an engineering team on GitHub maintains the following sauced config file:
Where commits authored by
john
andbrandon
get attributed to the@open-sauced/engineering
GitHub team in theCODEOWNERS
file.Let's say that someone leaves the company and the file gets updated to:
Now, those (and future) commits authored by
john
won't appear as part of the@open-sauced/engineering
team attribution in theCODEOWNERS
.But, there still may be issues assigned to
john
on GitHub or other resources (like the GitHub team) thatjohn
needs to get offboarded from. A subsequentpizza clean john@email.domain
orpizza offboard ...
command could be used to remove that user from those resources on GitHub.We'd also want to think through this experience with users who are not operating on GitHub since the
pizza generate codeowners
command attempts to be as agnostic as possible.