varunsridharan / github-gitea-mirror

Simple Python Script To Mirror Repository From Github To Gitea
MIT License
177 stars 20 forks source link

Add a blacklist for repositories #3

Closed mrksr closed 2 years ago

mrksr commented 2 years ago

Hi @varunsridharan, thank you for sharing this work! I have added functionality to specify a blacklist in the config. Repository names are checked against this blacklist before any operation takes place. The blacklist consists of a list of glob expressions (like some_user/bla-*).

What do you think? :)

varunsridharan commented 2 years ago

Can you please add a condtion inside isBlacklistedRepository to check if the config variable is an array or its defined ?