Skip to content

New scenario to ensure that a push with `Closes #1234` effectively closes the related issue and creates a cross-reference note in it

Part of gitlab-qa#53 (moved).

Steps:

  1. Setup a project
  2. Create an issue
  3. Push a commit with its commit message containing Closes #IID where IID is the issue IID, e.g. if the issue is gitlab-qa#53 (moved), the IID is 53, hence the message would contain Closes #53
  4. Visit the issue page
  5. Ensure that it's closed
  6. Ensure that there's a message saying @author closed via commit sha1 where sha1 is the first 8 chars of the commit SHA1, similarly to https://gitlab.com/gitlab-org/gitlab-ce/issues/45761#note_71264279 (which references a MR instead of a commit)