If you're looking to generate a markdown list of commits in your GitHub repository for use in I've got just the one-liner for you.

git --no-pager log --format="format:- %s [\`%h\`](https://github.com/example/example/commit/%h)"

Simply replace example/example with the path of your specific GitHub repository.

The text that is returned can be copy & pasted into your release history.