Use the got_revision property instead of the revision property

The revision property is set to an empty string in some builders. As the
initial value of merge_sha is also an empty string, an arbitrary PR is
mistakenly chosen when the test result is successful. It seems that
got_revision doesn't have this problem.

Fixes #15.