Skip to content

Commit e6ec2f0

Browse files
authored
Merge branch 'main' into tonytrg-repos-consolidation
2 parents 6fba3ac + 5e5e80a commit e6ec2f0

File tree

5 files changed

+199
-100
lines changed

5 files changed

+199
-100
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ Options are:
852852
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
853853
- `owner_type`: Owner type (string, required)
854854
- `project_number`: The project's number. (number, required)
855-
- `updated_field`: Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set "value" to null. Example: {"id": 123456, "value": "New Value"} (object, required)
855+
- `updated_field`: Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set value to null. Example: {"id": 123456, "value": "New Value"} (object, required)
856856

857857
</details>
858858

pkg/github/__toolsnaps__/update_project_item.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"type": "number"
2828
},
2929
"updated_field": {
30-
"description": "Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set \"value\" to null. Example: {\"id\": 123456, \"value\": \"New Value\"}",
30+
"description": "Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set value to null. Example: {\"id\": 123456, \"value\": \"New Value\"}",
3131
"properties": {},
3232
"type": "object"
3333
}

pkg/github/minimal_types.go

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,6 @@ type MinimalProject struct {
131131
DeletedBy *MinimalUser `json:"deleted_by,omitempty"`
132132
}
133133

134-
type MinimalProjectItem struct {
135-
ID *int64 `json:"id,omitempty"`
136-
NodeID *string `json:"node_id,omitempty"`
137-
Title *string `json:"title,omitempty"`
138-
Description *string `json:"description,omitempty"`
139-
ProjectNodeID *string `json:"project_node_id,omitempty"`
140-
ContentNodeID *string `json:"content_node_id,omitempty"`
141-
ProjectURL *string `json:"project_url,omitempty"`
142-
ContentType *string `json:"content_type,omitempty"`
143-
Creator *MinimalUser `json:"creator,omitempty"`
144-
CreatedAt *github.Timestamp `json:"created_at,omitempty"`
145-
UpdatedAt *github.Timestamp `json:"updated_at,omitempty"`
146-
ArchivedAt *github.Timestamp `json:"archived_at,omitempty"`
147-
ItemURL *string `json:"item_url,omitempty"`
148-
Fields []*projectV2ItemFieldValue `json:"fields,omitempty"`
149-
}
150-
151134
// Helper functions
152135

153136
func convertToMinimalProject(fullProject *github.ProjectV2) *MinimalProject {
@@ -186,29 +169,6 @@ func convertToMinimalUser(user *github.User) *MinimalUser {
186169
}
187170
}
188171

189-
func convertToMinimalProjectItem(item *projectV2Item) *MinimalProjectItem {
190-
if item == nil {
191-
return nil
192-
}
193-
194-
return &MinimalProjectItem{
195-
ID: item.ID,
196-
NodeID: item.NodeID,
197-
Title: item.Title,
198-
Description: item.Description,
199-
ProjectNodeID: item.ProjectNodeID,
200-
ContentNodeID: item.ContentNodeID,
201-
ProjectURL: item.ProjectURL,
202-
ContentType: item.ContentType,
203-
Creator: convertToMinimalUser(item.Creator),
204-
CreatedAt: item.CreatedAt,
205-
UpdatedAt: item.UpdatedAt,
206-
ArchivedAt: item.ArchivedAt,
207-
ItemURL: item.ItemURL,
208-
Fields: item.Fields,
209-
}
210-
}
211-
212172
// convertToMinimalCommit converts a GitHub API RepositoryCommit to MinimalCommit
213173
func convertToMinimalCommit(commit *github.RepositoryCommit, includeDiffs bool) MinimalCommit {
214174
minimalCommit := MinimalCommit{

0 commit comments

Comments
 (0)