Commit blocking with Redmine

1

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?

    
asked by anonymous 16.03.2016 / 18:32

0 answers