#1579 API: new_ticket always creates private issue
Closed: Fixed Opened by mkosek.

Nevertheless what I put in private argument, the resulting issue is always private:

>>> data = {'title': 'test issue', 'content': 'test content', 'private': False}
>>> r = s.post('https://pagure.io/api/0/{repo}/new_issue', data=data)
>>> r.status_code
200
>>> r = s.get('https://pagure.io/api/0/{repo}/issue/5')
>>> r.json()['private']
True

In my experience, if you pass the string "false", it will work and create a non-public issue.
Which is not what's documented, but there is a workaround.

Commit 9a9e4281 fixes this issue

@pingou changed the status to Closed

Metadata Update from @lslebodn:
- Issue tagged with: IDM

Metadata