Auto credit Comp off

Hi,
I would like to auto credit leave for comp off. So far the employee needs to apply compensatory leave request to claim comp off. Is there any way to auto credit leaves based on their attendance marked on holidays?