Skip to content

Add codeowners metric handler for archived projects

What does this MR do?

This MR fixes a bug with CODEOWNERS metric not being properly calculated for archived projects. Those projects have a repo, but have no default branch, so we need to fall back to 'HEAD' ref of the repo.

Related Sentry report: https://sentry.gitlab.net/gitlab/gitlabcom/issues/1693083/

Screenshots (strongly suggested)

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

Related to #326008 (closed)

Edited by Pavel Shutsin

Merge request reports