Add the "type label nudger" processor
Context
Relates to #988 (closed)
What's in this MR?
- The
Type Label Nudger
processor that will:- Create a discussion if no work type labels are present (or unresolve it if the discussion has been created previously)
- Resolve a previously created discussion if work type labels are found on the MR
- A background job to actually create a discussion 5 minutes after we found the unclassified merge request.
-
📚 Some documentation update on how to run triage-ops locally more effectively
What is looks like
Verify it locally
First test
git checkout 988-add_type_label_nudger_processor
- Change the reaction time from
300
to3
- Build/Run triage-ops locally with a local GitLab instance
- In an existing MR, Remove all work type labels
- A discussion should pop up in the MR, telling you to add a work type label.
- Add a work type label: the discussion should resolve itself
Second test
git checkout 988-add_type_label_nudger_processor
- Change the reaction time from
300
to20
- Build/Run triage-ops locally with a local GitLab instance
- In an existing MR, Remove all work type labels
- After 20 seconds, a discussion should pop up in the MR, telling you to add a work type label.
- Delete that discussion
- Delete any label from the MR, and add a work type label in the next 20 seconds:
/label ~"type::bug"
- No new discussion should pop up
Edited by David Dieulivol