Unable to edit/save issue that has a milestone set #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PATCH https://git.jhodges.co.uk/api/v1/repos/james/test/issues/3 {"id":488,"url":"https://git.jhodges.co.uk/api/v1/repos/james/test/issues/3","number":3,"user":{"id":1,"login":"james","full_name":"James","email":"james@noreply@git.jhodges.co.uk","avatar_url":"https://git.jhodges.co.uk/avatars/eb3cf7a0247e00374308a0296aaa2551","language":"en-US","is_admin":true,"last_login":"2019-08-26T09:02:57+01:00","created":"2019-05-10T09:27:18+01:00","username":"james"},"original_author":"","original_author_id":0,"title":"test lab","body":"","labels":[{"id":66,"name":"bug","color":"ee0701","description":"Something is not working","url":""},{"id":106,"name":"daily/repeat","color":"ffff00","description":"Reopen this issue with the given frequency","url":""}],"milestone":{"id":5,"title":"test","description":"","state":"open","open_issues":0,"closed_issues":2,"closed_at":null,"due_on":null},"assignee":null,"assignees":null,"state":"open","comments":6,"created_at":"2019-06-23T20:18:02+01:00","updated_at":"2019-07-25T20:49:18+01:00","closed_at":"2019-07-25T20:49:18+01:00","due_date":null,"pull_request":null}
PHP Fatal error: Uncaught Exception: API 400 Code: [{"classification":"DeserializationError","message":"json: cannot unmarshal object into Go struct field EditIssueOption.milestone of type int64"}] in /home/bob/bot/vendor/jhodges/giteabot/src/Client.php:54
Thinking I use a separate array to store "set" data, then only the changed has to be POSTed on save.
Implemented in v1.2.1