Skip to content

Set `first_mentioned_in_commit_at` on issue closes

What does this MR do?

Currently first_mentioned_in_commit_at is set when the issue is referenced in the commit message. This workflow is not followed very often, which leads to missing cycle analytics data.

If an MR is merged and first_mentioned_in_commit_at is not set: look up the first commit in the MR and use its timestamp.

The change is behind feature flag: store_first_mentioned_in_commit_on_issue_close

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Adam Hegyi

Merge request reports