Currently the goal is to create pull request autmatically upon each push to origin, if it is not existing. It would be good to set pull request author to other than the one logged into API, but ... the request is not possible in that case. Datastructure used:
{
'title': 'name for PR here...',
'reviewers': [{user.username for user in get_required_users()],
'author': {
'role': 'AUTHOR',
'user': {'name': 'bigmacaronnimonster'}
},
'toRef': {'id': mainline, 'repository': repository},
'fromRef': {'id': branch, 'repository': repository}
}
So, the question could also be - 'Is it possible to do that?'