CreateMilestoneOption #356

Closed
opened 2020-06-03 01:54:14 +00:00 by 6543 · 1 comment
Owner

allow to set State

mile, err := client.CreateMilestone(newOwner, newRepo, gitea.CreateMilestoneOption{
  Title:       old.Title,
  Description: old.Description,
  Deadline:    old.Deadline,
})
if err == nil && old.State == StateClosed {
  stringClosed := "closed"
  mile, err = newC.EditMilestone(newOwner, newRepo, mile.ID, gitea.EditMilestoneOption{
    State: &stringClosed,
  })
}
allow to set State ```go mile, err := client.CreateMilestone(newOwner, newRepo, gitea.CreateMilestoneOption{ Title: old.Title, Description: old.Description, Deadline: old.Deadline, }) if err == nil && old.State == StateClosed { stringClosed := "closed" mile, err = newC.EditMilestone(newOwner, newRepo, mile.ID, gitea.EditMilestoneOption{ State: &stringClosed, }) } ```
6543 added this to the v0.12.1 milestone 2020-06-03 01:54:14 +00:00
6543 added the
kind/enhancement
label 2020-06-03 01:54:20 +00:00
Author
Owner

gitea >= v1.13 will have this option on Creation itself:

https://github.com/go-gitea/gitea/pull/11745

gitea >= v1.13 will have this option on Creation itself: https://github.com/go-gitea/gitea/pull/11745
lunny closed this issue 2020-06-19 04:49:36 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/go-sdk#356
No description provided.