Skip to content

Commit

Permalink
Conform to surrounding whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburtenshaw committed Jan 4, 2024
1 parent 8af2f1a commit 2eb7e0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions clickup/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type TaskRequest struct {
LinksTo string `json:"links_to,omitempty"`
CheckRequiredCustomFields bool `json:"check_required_custom_fields,omitempty"`
CustomFields []CustomFieldInTaskRequest `json:"custom_fields,omitempty"`
CustomItemId int `json:"custom_item_id,omitempty"` // To create a task that doesn't use a custom task type, either don't include this field in the request body, or send 'null'. To create this task as a Milestone, send a value of 1. To use a custom task type, send the custom task type ID as defined in your Workspace, such as 2.
CustomItemId int `json:"custom_item_id,omitempty"` // To create a task that doesn't use a custom task type, either don't include this field in the request body, or send 'null'. To create this task as a Milestone, send a value of 1. To use a custom task type, send the custom task type ID as defined in your Workspace, such as 2.
}

type CustomFieldInTaskRequest struct {
Expand All @@ -45,7 +45,7 @@ type CustomFieldInTaskRequest struct {
type Task struct {
ID string `json:"id"`
CustomID string `json:"custom_id"`
CustomItemId int `json:"custom_item_id"` // A null value means this item is a task. A value of 1 is a Milestone. Any other number is a custom task type.
CustomItemId int `json:"custom_item_id"` // A null value means this item is a task. A value of 1 is a Milestone. Any other number is a custom task type.
Name string `json:"name"`
TextContent string `json:"text_content"`
Description string `json:"description"`
Expand Down
10 changes: 5 additions & 5 deletions clickup/tasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestTasksService_GetTask(t *testing.T) {
`{
"id": "9hx",
"custom_id":null,
"custom_item_id": null,
"custom_item_id": null,
"name": "Task Name",
"text_content": "New Task Description",
"description": "New Task Description",
Expand Down Expand Up @@ -81,11 +81,11 @@ func TestTasksService_GetTask(t *testing.T) {
}

want := &Task{
ID: "9hx",
ID: "9hx",
CustomItemId: 0,
Name: "Task Name",
TextContent: "New Task Description",
Description: "New Task Description",
Name: "Task Name",
TextContent: "New Task Description",
Description: "New Task Description",
Status: TaskStatus{
Status: "in progress",
Color: "#d3d3d3",
Expand Down

0 comments on commit 2eb7e0c

Please sign in to comment.