Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update github/sub_issue.go
Co-authored-by: Glenn Lewis <[email protected]>
  • Loading branch information
e7217 and gmlewis authored May 20, 2025
commit 5562069751d9d9570cbd8c187c6aed03c01a5566
8 changes: 4 additions & 4 deletions github/sub_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ type SubIssueListByIssueOptions struct {

// SubIssueRequest represents a request to add, remove, or reprioritize sub-issues.
type SubIssueRequest struct {
SubIssueID int `json:"sub_issue_id,omitempty"` // Required: The ID of the sub-issue
AfterID int `json:"after_id,omitempty"` // Optional: Position after this sub-issue ID
BeforeID int `json:"before_id,omitempty"` // Optional: Position before this sub-issue ID
ReplaceParent bool `json:"replace_parent,omitempty"` // Optional: Whether to replace the existing parent
SubIssueID int64 `json:"sub_issue_id"` // Required: The ID of the sub-issue
AfterID *int64 `json:"after_id,omitempty"` // Optional: Position after this sub-issue ID
BeforeID *int64 `json:"before_id,omitempty"` // Optional: Position before this sub-issue ID
ReplaceParent *bool `json:"replace_parent,omitempty"` // Optional: Whether to replace the existing parent
}

// Remove a sub-issue from the specified repository.
Expand Down