Problem with auto-closing issues when merging pull request (BB-8985)

Issue #7819 resolved
Dave Kaminski
created an issue

The short story is that "close issue #33" works as expected but "closes issue #33" does not.

Whether the text is in the message of a commit that gets merged in as a pull request, or in the message of the merge commit itself, "close" ALWAYS works and "closes" NEVER works.

"See" works as expected, adding a comment to the issue with a reference to the commit.

I have not tried the other verbs.

Comments (10)

  1. Dave Kaminski reporter

    Here are links to problematic commits in a private repo.

    Here is one (using "closes") that was pushed to a separate repo and then brought in via a pull request to the repo with the issue tracker:

    And here is a merge commit (using "Closes") from accepting a pull request:

    For good measure, here's one (using "close") that worked as a commit that was pushed to a different repo and then brought in via a pull request:

    And here's one (using "See") that worked in a merge commit from accepting a pull request:

  2. Erik van Zijst

    I'm not able to reproduce that either. Again, everything transitions as expected, both when the command is in the commit that was on the source repo, as well as with the command as part as the Bitbucket-created merge commit.

    I can see that your issue #30 didn't get closed even though you have a commit that addresses it, but I'm unable to tell what happened.

    I've raised an internal issue for this and will leave this public issue open for other people to discover and comment on.

  3. Log in to comment