Add support for checking of ticket status in pre-commit checks