How do I merge my pull request timeline to an issue?

I want my commits to show in my issue. I know its possible but I don’t know how to do it. I’m trying to do it through my command line in VS code.

You need to reference the Issues in the commit messages:

https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls