Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commits can't close issues on github remote repository

I have a remote repository on GitHub and usually fix several issues by using commits containing terms like "Fixes", "Closes", etc. For example:

git commit file -m "Fixes #123 closes #123 lorem ipsum"
git push origin mybranch

However, recently issues aren't being closed by these commits. I have to close them manually on GitHub.

Is there something wrong with the commit?

Best, and thanks in advance for any help

like image 727
Jorch914 Avatar asked Nov 01 '22 02:11

Jorch914


1 Answers

I thought it was just me. You are indeed using the correct commit syntax as per the GitHub page But it will only close the issue when committed to the default branch. Which is the master branch by default. You can change your default branch if you'd like.

like image 93
AJ. Avatar answered Nov 13 '22 07:11

AJ.