Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 829
k0pernikus Avatar asked Jun 02 '15 08:06

k0pernikus


People also ask

How do I close a pull request in bitbucket?

To decline a pull request, select the More options ( ) button and select Decline in the dropdown menu. After the pull request is declined, the comments and tasks are preserved. To see a list of declined pull requests, click Pull Requests in the sidebar of your repository.

How do I leave a comment on a pull request?

On the pull request, click Files changed. Hover over the line of code where you'd like to add a comment, and click the blue comment icon. To add a comment on multiple lines, click and drag to select the range of lines, then click the blue comment icon.

How do you respond to a pull request comment?

Always reply to every comment, regardless of whether it's a question or not. Reply with something like: “Will do,” “Done,” or “Good catch”. A simple emoji like thumb-up 👍 or smiley 😀 is a simple acknowledgment gesture. If you disagree, explain why.


1 Answers

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
like image 117
Ôrel Avatar answered Sep 22 '22 00:09

Ôrel