mojira / arisa-kt

:robot::sparkles: Run checks and perform automated tasks in Mojira
https://bugs.mojang.com
GNU General Public License v3.0
10 stars 6 forks source link

Add support for deletion of Arisa's comments (#488) #748

Closed DrAwesome4333 closed 3 years ago

DrAwesome4333 commented 3 years ago

Purpose

Support the removal of incorrect or redundant comments made by Arisa since staff members can still see the comments after they are hidden.

Approach

Have Arisa delete its own comment if a staff member edits the unwanted comment with a specified tag.

The module will check for recently edited comments that where originally authored by Arisa, staff restricted, and contain the configurable tag _ARISADELETE

The comment deletion was accomplished by modifying the Domain's Comment class to include a removal method similar to that of the Attachment class.

Future work

Checklist

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.