I need to block a commit until its redmine condition is acceptable. Knowing that the required status index is 2 (In progress).
Example (I do not use this just for understanding):
if ["status" == "1"]; then
$commit = true;
else
["status" != "1"];
$commit = false;
fi
How could I validate this index? so that he understood the 2. Could you use JSON?