Basically, if the project requires a minimal score to merge PR, the data returned by the API will be either a True or False. If the project does not enforce any score to merge the PR, the data returned by the API will be None.
True
False
None
Fixes https://pagure.io/pagure/issue/4014
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
Style test failure:
11:01:07 Failed tests: 11:01:07 FAILED test: py-test_style
I should add a test of a PR that passed the minimal score
rebased onto 8d534b81c96ebd69e40fad71d1a26eccf79ab819
rebased onto 7dd629fdf0e3f5c54036585c48a355fcc62c8c2f
rebased onto 3e42010d0fb80f1365840a1b8be449be4d04b000
2 new commits added
Include whether the PR passed the threshold or not in the API data
Change the way votes are recorded
rebased onto e6ffccfbca86da12ec395bac2f7f88605d392d30
rebased onto b9a9c8fd89546d4710a26e426ff1389debdfae53
rebased onto ccf06461c506783d99cbb10a0982fbe1c8be58d4
rebased onto b87330d3ad58b982909565a91912794e3227e3a4
rebased onto f36738d3be32626e84faed35197b9f5bbb6987ef
LGTM
rebased onto aaa2d1b5f5640795fcf28a46fd080c2905d52cdb
Pull-Request has been merged by pingou
Basically, if the project requires a minimal score to merge PR,
the data returned by the API will be either a
TrueorFalse.If the project does not enforce any score to merge the PR, the
data returned by the API will be
None.Fixes https://pagure.io/pagure/issue/4014
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr