We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenteb4d7c4 commitd835623Copy full SHA for d835623
pkg/github/projects.go
@@ -745,9 +745,9 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
745
iferr!=nil {
746
returnnil,fmt.Errorf("failed to create request: %w",err)
747
}
748
-addedItem:=projectV2Item{}
+updatedItem:=projectV2Item{}
749
750
-resp,err:=client.Do(ctx,httpRequest,&addedItem)
+resp,err:=client.Do(ctx,httpRequest,&updatedItem)
751
752
returnghErrors.NewGitHubAPIErrorResponse(ctx,
753
ProjectUpdateFailedError,
@@ -764,7 +764,7 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
764
765
returnmcp.NewToolResultError(fmt.Sprintf("%s: %s",ProjectUpdateFailedError,string(body))),nil
766
767
-r,err:=json.Marshal(convertToMinimalProjectItem(&addedItem))
+r,err:=json.Marshal(convertToMinimalProjectItem(&updatedItem))
768
769
returnnil,fmt.Errorf("failed to marshal response: %w",err)
770