Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd835623

Browse files
committed
Rename field
1 parenteb4d7c4 commitd835623

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎pkg/github/projects.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,9 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
745745
iferr!=nil {
746746
returnnil,fmt.Errorf("failed to create request: %w",err)
747747
}
748-
addedItem:=projectV2Item{}
748+
updatedItem:=projectV2Item{}
749749

750-
resp,err:=client.Do(ctx,httpRequest,&addedItem)
750+
resp,err:=client.Do(ctx,httpRequest,&updatedItem)
751751
iferr!=nil {
752752
returnghErrors.NewGitHubAPIErrorResponse(ctx,
753753
ProjectUpdateFailedError,
@@ -764,7 +764,7 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
764764
}
765765
returnmcp.NewToolResultError(fmt.Sprintf("%s: %s",ProjectUpdateFailedError,string(body))),nil
766766
}
767-
r,err:=json.Marshal(convertToMinimalProjectItem(&addedItem))
767+
r,err:=json.Marshal(convertToMinimalProjectItem(&updatedItem))
768768
iferr!=nil {
769769
returnnil,fmt.Errorf("failed to marshal response: %w",err)
770770
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp