Skip to content

Fix timestamps and system notes when cloning issues

Heinrich Lee Yu requested to merge 362546-fix-clone-timestamps into master

What does this MR do and why?

Our docs say:

Does not copy comments or system notes unless --with_notes is provided as an argument.

But we actually copy resource events which are rendered as system notes. This fixes that bug so that only system notes related to cloned attributes will be generated.

This also changes the cloned issue's created_at so that it is set to the time of clone.

Related to #362546 (closed)

Screenshots or screen recordings

Before After
Screen_Shot_2022-07-02_at_1.13.43_AM Screen_Shot_2022-07-02_at_1.13.49_AM

How to set up and validate locally

  1. Use the /clone quick action on an issue
  2. Check the timestamps and system notes on the new issue

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #362546 (closed)

Edited by Heinrich Lee Yu

Merge request reports