Create system notes for compliance violations
Description
- Create system notes whenever the status of the compliance violation is updated.
- Create system notes whenever an issue is linked or unliked from a compliance violation.
- These system notes would be used as shown in this design
Proposal
We can probably refer zoom_service and create a similar class for compliance violations, it should handle the meta aspects of the system note by default (like icons, marking it as a system note etc.)
create_note(NoteSummary.new(noteable, project, author, _('linked issue #{issue.title} to this compliance violation'), action: 'relate'))
Edited by 🤖 GitLab Bot 🤖
