Closed
Description
- Gitea version (or commit ref): 85414d8
- Operating system: elementary os / Ubuntu 16.04
- Database (use
[x]
):- MySQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes
- Log gist:
Description
If I try to create an issue via the API and I try to assign a milestone in that request it won't be set.
Request:
curl -X POST "https://try.gitea.io/api/v1/repos/JonasFranzDEV/gitea/issues" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"body\": \"Test\", \"milestone\": 165, \"title\": \"Test Milestone\"}"
Response:
{
"id": 1556,
"url": "https://try.gitea.io/api/v1/repos/JonasFranzDEV/gitea/issues/50",
"number": 50,
"user": {
"id": 1609,
"login": "JonasFranzDEV",
"full_name": "",
"email": "info@jonasfranz.software",
"avatar_url": "https://try.gitea.io/avatars/a85562fb670c0233a9bf1f61b2c6c4ee",
"language": "de-DE",
"username": "JonasFranzDEV"
},
"title": "Test Milestone",
"body": "Test",
"labels": [],
"milestone": null,
"assignee": null,
"assignees": null,
"state": "open",
"comments": 0,
"created_at": "2018-06-18T13:08:57Z",
"updated_at": "2018-06-18T13:08:57Z",
"closed_at": null,
"due_date": null,
"pull_request": null
}
milestone
is null
but should be set.