Skip to content

Commit 72e176b

Browse files
refactor: Drop redundant (Required.)/(Optional.) field notes
Per review, remove the parenthetical (Required.)/(Optional.) annotations from CreateProjectV2DraftItemRequest.Title/Body and the single-select option Name comments; the value/pointer type already conveys this. The conditional notes on AddProjectV2FieldRequest (required for single_select / iteration) are kept since they describe the one-of constraint.
1 parent 1b60234 commit 72e176b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

github/projects.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ func (s *ProjectsService) DeleteUserProjectItem(ctx context.Context, username st
732732

733733
// CreateProjectV2DraftItemRequest specifies the parameters to create a draft item in a project.
734734
type CreateProjectV2DraftItemRequest struct {
735-
// Title is the title of the draft issue item to create. (Required.)
735+
// Title is the title of the draft issue item to create.
736736
Title string `json:"title"`
737-
// Body is the body content of the draft issue item to create. (Optional.)
737+
// Body is the body content of the draft issue item to create.
738738
Body *string `json:"body,omitempty"`
739739
}
740740

@@ -785,7 +785,7 @@ func (s *ProjectsService) CreateUserProjectDraftItem(ctx context.Context, userID
785785

786786
// ProjectV2FieldSingleSelectOption represents an option to create for a single_select project field.
787787
type ProjectV2FieldSingleSelectOption struct {
788-
// Name is the display name of the option. (Required.)
788+
// Name is the display name of the option.
789789
Name string `json:"name"`
790790
// Color is the color associated with the option.
791791
// One of: BLUE, GRAY, GREEN, ORANGE, PINK, PURPLE, RED, YELLOW.

0 commit comments

Comments
 (0)