Skip to content

Commit

Permalink
Merge pull request #423 from CondensedTea/master
Browse files Browse the repository at this point in the history
  • Loading branch information
benjivesterby authored Feb 19, 2022
2 parents 8413325 + 31b7505 commit c0a2d48
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,26 @@ type TransitionField struct {

// CreateTransitionPayload is used for creating new issue transitions
type CreateTransitionPayload struct {
Update TransitionPayloadUpdate `json:"update,omitempty" structs:"update,omitempty"`
Transition TransitionPayload `json:"transition" structs:"transition"`
Fields TransitionPayloadFields `json:"fields" structs:"fields"`
}

// TransitionPayloadUpdate represents the updates of Transition calls like DoTransition
type TransitionPayloadUpdate struct {
Comment []TransitionPayloadComment `json:"comment,omitempty" structs:"comment,omitempty"`
}

// TransitionPayloadComment represents comment in Transition payload
type TransitionPayloadComment struct {
Add TransitionPayloadCommentBody `json:"add,omitempty" structs:"add,omitempty"`
}

// TransitionPayloadCommentBody represents body of comment in payload
type TransitionPayloadCommentBody struct {
Body string `json:"body,omitempty"`
}

// TransitionPayload represents the request payload of Transition calls like DoTransition
type TransitionPayload struct {
ID string `json:"id" structs:"id"`
Expand Down

0 comments on commit c0a2d48

Please sign in to comment.