To be able to directly set bounties for issues without middle-person that takes a margin with complete transparency and a high-degree of trust, I was wondering about the following: how one can write a smart-contract that automatically pays out to an ethereum address that is commented* in a github pull request for the following scenario:
- A single Ethereum address is posted by the github account that submits the pull request.
- A particular set of- (or all) tests in a CI (e.g. Travis-CI) result is used by a distributed oracle to determine when to pay-out.
- The pull request and accompanying tests are passed before a certain date and time.
- Otherwise no bounty is rewarded.
Which leads me to ask: how can one write a smart contract that pays out x Eth if a github pull request satisfies a predefined set of CI tests before a certain date and time?