Autolinks in commit messages don't work reliably for automated commits

It seems commit SHA autolinks in commit messages don’t work for commits created via the API.

We had commit messages along the lines of Do foobar in org-name/repo-name@deadbeef and something else and we’d get an auto link to the relevant commit in org-name/repo-name. When we switched to creating those commits using the API and a github app, those links stopped working.

I tried playing around with the length of the SHA and it didn’t help.

Is this a bug? Or is it intended for Github Apps? Or commits created from the API?

The only reference to this I found was here: Autolinked references and URLs - GitHub Docs and there’s no special mention of anything related to this issue.