What PATCH /repos/{owner}/{repo}/milestones/{id} may be told — Forgejo's EditMilestoneOption.
'''Derived from spec/swagger.v1.json''', which declares the same four properties as CreateMilestoneOption and marks none required. No golden capture of this request exists.
'''Only what is set is sent''', which is the whole contract of a PATCH: an unset field contributes no JSON key and the instance leaves that property alone. There is no way to '''clear''' a deadline through this endpoint — Forgejo declares no unset_due_on flag, unlike EditIssue.withoutDueDate — so a milestone's deadline can be changed but not removed, and that is the API's limitation rather than this type's.
An EditMilestone.Empty sent as-is is a well-formed request that changes nothing.
Value parameters
- state
-
the lifecycle transition to apply; see IssueStateChange, shared with issues because it is the same transition
- title
-
the new milestone name; a plain
Stringfor the reason CreateMilestone gives
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any