Check ServiceNow change status before commit

Hi,

I would like to know how I can check if a change on ServiceNow is in the right state (Exists and Approved) before a committing a change to the PROD branch which will then trigger a deployment.

The closest finding to what I want to achieve was GitHub - godaddy/django-snow: ServiceNow Ticket Management App for Django based projects. But the only thing I want to do is just run a check not modify the change

Thanks in advance