add api method that allows to create pull request for a repo

Issue #6033 duplicate
Zsófia Balogh
created an issue

then it would be possible to write a plugin for creating pull requests form command line