Skip to content Skip to sidebar Skip to footer

How To Set An Issue Pipeline With ZenHub API

We use ZenHub with our enterprise GitHub installation. I'm writing a script to move issues from one GitHub repo to another, including the ZenHub info. I've gotten the issues copied

Solution 1:

Pablo from ZenHub here. The problem here is that the request is not well-formed. The position parameter is missing, and you don’t need to encode the request body as a string, you can just send the dictionary directly:

import requests

# No need to stringify
params = {
    "pipeline_id": "5a36d8584b9b9e57bc9729f9",
    "position": "top"
}

# some code omitted here...

response = requests.post(url, headers=zenhub_headers, data=params, verify=False)

The documentation of the move issues endpoint is available here. Cheers,


Post a Comment for "How To Set An Issue Pipeline With ZenHub API"