I have main
as default branch and dev
as non-default.
I created one issue and one PR to merge from new temp
branch to dev
branch
In PR, I have mentioned Resolves #1
.
When I merge PR to dev
branch, the issue #1
does not gets closed as it is non-default branch.
Then I using git commandline inside main
branch, I did git merge dev
so dev
branch is merged to main
.
In main
branch commits, I can see the Merge pull request ...
commit as well.
But the issue #1
does not gets closed even as PR is indirectly merged to main
(from temp
to dev
to main
)
Any reasons for the bug ?
Update: -
When merging dev
to main
, next time I did not used git merge dev
on main
branch, but I created new PR to merge dev
to main
.
And it closes the issue.
Why I worked while merging with PR
and not when git merge
is used ?
Resolves #1
? In the description? Commit message? Comment?