Distinguish commits from wiki edit and normal push commit

I’m using custom hook to make sure the commit message contains a JIRA issue. Everything goes ok until when I edit the wiki in gitlab, when I upload an image from paste, gitlab will show the error message which I customized in pre-receive.

I want to distinguish the edit of wiki when the pre-receive script executed, but the document of pre-receive shows that there are only three standard input: oldrev newrev refname.

These three arguments cannot help me find which commit is normal commit, which one is wiki edit.

Could anyone help me find ways to solve this problem?