Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
GitHub Essentials

You're reading from   GitHub Essentials Unleash the power of collaborative development workflows using GitHub

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789138337
Length 178 pages
Edition 2nd Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Achilleas Pipinellis Achilleas Pipinellis
Author Profile Icon Achilleas Pipinellis
Achilleas Pipinellis
Arrow right icon
View More author details
Toc

Tips and tricks

So far, we have explored most of the functionality of pull requests. Let's see a couple of things that leverage their power even more.

Closing issues via commit messages

In Chapter 1, Brief Repository Overview and Usage of the Issue Tracker, in the Tips and tricks section, you learned how to reference issues inside the issue tracker. Extending this ability, you can reference issue numbers in commit messages in order to close some issues when the commit is merged to the default branch.

For this action to be triggered, you have to use some keywords. For example, Closes #42 in the commit message will close issue 42 when that commit is merged with the default branch.

As per the GitHub documentation, the following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image