Introduce a new LabelResidentContribution processor
What does this MR do and why?
This new processor automatically adds the ~"Resident Contributor" label to MRs opened by resident contributors.
The mapping is fetched from Periscope similarly to how we retrieve the user -> organization mapping for CustomerContributionCreatedNotifier
/CustomerContributionMergedNotifier
.
The first commit introduces the ResidentContributorDetector
class and refactors OrgByUsernameLocator
to make use of a new PeriscopeCsv
concern that encapsulate the logic to retrieve CSV from Periscope.
Expected impact & dry-runs
These are strongly recommended to assist reviewers and reduce the time to merge your change.
See https://gitlab.com/gitlab-org/quality/triage-ops/-/tree/master/doc/scheduled#testing-with-a-dry-run on how to perform dry-runs.
Action items
-
(If applicable) Add documentation to the handbook pages for Triage Operations => - (If applicable) Identify the affected groups and how to communicate to them:
-
/cc @ person_or_group
=> -
Relevant Slack channels => -
Engineering week-in-review
-
Edited by Nao Hashizume