Do not update comment if there has been no changes
IIUC, merbocop passes each MR on each run. For each MR, it analyses. It then posts the result of the analyses in a new comment or in its previous one, if it exists.
An issue with this is that pollutes the updated_at
field of merge requests. It longer signifies that meaningful changes has been added, just that merbocop passed.
Would it be possible to change merbocop so that:
- If the MR has not been updated since last time merbocop passed (as given by the previous comment), then no update is made. Presumably, (unless merbocop changed), the result of the analysis should be the same anyhow.
- Or, if the result of the analysis is exactly the same (modulo timestamps), as in the previous comment, then no update is made?