Salsa/Hooks: fix _check_config for boolean

This commit fixes the error:

salsa info: Error PUTing https://gitlab.com/api/v4/projects/44451755
(HTTP 400): Bad Request {"error":"packages_enabled is invalid"} at
/usr/share/perl5/Devscripts/Salsa/update_repo.pm line 52.

For the background:

Commit 3ebcb3f5 introduced many features, however some of them are simply boolean (ie. value being either 0 or 1), but they were added as if they were string (value either 'enabled' or 'disabled').

Then in 489e7a93 the code was refactored.

After a quick check at https://docs.gitlab.com/ee/api/projects.html, the situation is quite simple: the fields that can have a 'private' values are strings, those who don't are simply boolean. So it's easy to fix.

Merge request reports

Loading