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

Commit70cb737

Browse files
authored
projects: update fields and prompt (#1292)
* update fields and prompt* update snapshots* update docs* pr feedback* update snapshots* update docs
1 parent5ca232e commit70cb737

File tree

5 files changed

+179
-82
lines changed

5 files changed

+179
-82
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ Options are:
851851
-`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)
852852
-`owner_type`: Owner type (string, required)
853853
-`project_number`: The project's number. (number, required)
854-
-`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)
854+
-`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)
855855

856856
</details>
857857

‎docs/remote-server.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ Below is a table of available toolsets for the remote GitHub MCP Server. Each to
1919
<!-- START AUTOMATED TOOLSETS-->
2020
| Name| Description| API URL| 1-Click Install (VS Code)| Read-only Link| 1-Click Read-only Install (VS Code)|
2121
|----------------|--------------------------------------------------|-------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
22-
| default| Default GitHub MCP toolset (see[default toolset](../README.md#default-toolset))|https://api.githubcopilot.com/mcp/|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D)|[read-only](https://api.githubcopilot.com/mcp/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Freadonly%22%7D)|
23-
| all| All available GitHub MCP tools|https://api.githubcopilot.com/mcp/x/all|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=github-all&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fall%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/all/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=github-all&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fall%2Freadonly%22%7D)|
22+
| all| All available GitHub MCP tools|https://api.githubcopilot.com/mcp/|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D)|[read-only](https://api.githubcopilot.com/mcp/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Freadonly%22%7D)|
2423
| Actions| GitHub Actions workflows and CI/CD operations|https://api.githubcopilot.com/mcp/x/actions|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-actions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Factions%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/actions/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-actions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Factions%2Freadonly%22%7D)|
2524
| Code Security| Code security related tools, such as GitHub Code Scanning|https://api.githubcopilot.com/mcp/x/code_security|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/code_security/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%2Freadonly%22%7D)|
2625
| Dependabot| Dependabot tools|https://api.githubcopilot.com/mcp/x/dependabot|[Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%22%7D)|[read-only](https://api.githubcopilot.com/mcp/x/dependabot/readonly)|[Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%2Freadonly%22%7D)|

‎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-
typeMinimalProjectItemstruct {
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
funcconvertToMinimalProject(fullProject*github.ProjectV2)*MinimalProject {
@@ -186,29 +169,6 @@ func convertToMinimalUser(user *github.User) *MinimalUser {
186169
}
187170
}
188171

189-
funcconvertToMinimalProjectItem(item*projectV2Item)*MinimalProjectItem {
190-
ifitem==nil {
191-
returnnil
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
funcconvertToMinimalCommit(commit*github.RepositoryCommit,includeDiffsbool)MinimalCommit {
214174
minimalCommit:=MinimalCommit{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp