@response_or_error
    def create(self, title, fromRef, toRef, description='', state='OPEN', reviewers=None):
        data = dict(title=title,
                    description=description,
                    fromRef=self._make_ref(fromRef, "fromRef"),
                    toRef=self._make_ref(toRef, "toRef"),
                    state=state)

        if reviewers is not None:
            data['reviewers'] = []
            for reviewer in reviewers:
                data['reviewers'].append({"user": dict(name=reviewer)})

        return self._client.post(self.url(""), data=data)
Create a new pull request between two branches.
dataset/ETHPy150Open RisingOak/stashy/stashy/pullrequests.py/PullRequests.create