Search code examples
gitworkflowbitbucketissue-tracking

How to close bitbucket task in a pull request comment via commit message?


We work we bitbucket for a git version control system.

When doing a code review, one can create a task. Is it possible to close a task from a commit message? Or is it something that bitbucket doesn't provide?

I used to work with github, and there it was possible to reference and close issues via commit messages.


Solution

  • According to Atleassian's documentation, you can use a keyword and the task id to close it directly.

    Statements that can be used within the commit message are:

    close #845
    fix bug #89
    fixes issue #746
    resolving #3117