The PullRequestService listens to notifications from a Github's repository in regards to pull request
creation and closes it if it is targeting the master branch.
Open Source under the Apache License Version 2.0
- Get them from [releases page] (https://github.com/nataren/PullRequestService/releases "PullRequestService binaries")
- Or checkout the
masterbranch and get them from thesrc\redistfolder
.NET 4.5withF# 3.0support (orVS 2012withF# 3.0support) orMonowith support for.NET 4.5andF# 3.0
Visual Studio 2012orXamarin StudiowithF# 3.0support
- [Github Personal API tokens] (https://github.com/blog/1509-personal-api-tokens)
Create a file pr.config with the following content, and change the values appropriately
<config>
<host>{HOSTNAME}</host>
<http-port>{PORT}</http-port>
<script>
<action verb="POST" path="/host/load?name=PullRequestService" />
<action verb="POST" path="/host/services">
<config>
<path>pr</path>
<sid>sid://mindtouch.com/2013/05/pullrequestservice</sid>
<github.token>{TOKEN}</github.token>
<github.owner>{OWNER}</github.owner>
<github.repos>{REPOS}</github.repos>
<public.uri>{ROUTE_TO_NOTIFY_END_POINT</public.uri>
<merge.retries>{NUMBER_OF_MERGE_RETRIES}</merge.retries>
<merge.ttl>{MILLISECONDS_TO_WAIT_BEFORE_TRYING_TO_MERGE_PULL_REQUEST_AGAIN}</merge.ttl>
<mergeability.retries>{NUMBER_OF_MERGEABILITY_CHECK_RETRIES}</mergeability.retries>
<mergeability.ttl>{MILLISECONDS_TO_WAIT_BEFORE_CHECKING_MERGEABILITY}</mergeability.ttl>
</config>
</action>
</script>
</config>Run the following command inside the service's folder:
mono mindtouch.host.exe config pr.config- Create a pull request in your repo against the master branch
- Confirm that the pull request is automatically closed by the
PullRequestService