If someone goes out of their way to hide it, it probably can't be detected. But the default commit comment and PR writeup styles are pretty distinctive.