-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use llmified keys for github #751
Changes from all commits
02594e8
7026599
11e1fc7
d3c39b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -961,11 +961,11 @@ | |
|
||
Queries results from workflows in GitHub actions. | ||
|
||
- tool `github_actions_workflows_list`: List all workflows as a list of 'id: name' pair. | ||
- tool `github_actions_runs_list`: List all runs for a workflow. Use 'git_actions_list_workflows' to list workflows. | ||
- tool `github_actions_jobs_list`: List all jobs for a run. | ||
- tool `github_actions_workflows_list`: List all workflows. 'llm_id' is the ID used in other tools. | ||
- tool `github_actions_runs_list`: List all runs for a workflow. 'llm_id' is the ID used in other tools. Use 'git_actions_list_workflows' to list workflows. | ||
- tool `github_actions_jobs_list`: List all jobs for a run. 'llm_id' is the ID used in other tools. | ||
- tool `github_actions_job_logs_get`: Download workflow job log. If the log is too large, use 'github_actions_job_logs_diff' to compare logs. | ||
- tool `github_actions_job_logs_diff`: Diffs two workflow job logsr. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo in the word "logsr", should be "logs".
|
||
|
||
`````js wrap title="system.github_actions" | ||
system({ | ||
|
@@ -975,22 +975,22 @@ | |
|
||
defTool( | ||
"github_actions_workflows_list", | ||
"List all workflows as a list of 'id: name' pair.", | ||
"List all workflows. 'llm_id' is the ID used in other tools.", | ||
{}, | ||
async (args) => { | ||
const { context } = args | ||
context.log("github action list workflows") | ||
const res = await github.listWorkflows() | ||
return CSV.stringify( | ||
res.map(({ id, name, path }) => ({ id, name, path })), | ||
res.map(({ llm_id, name, path }) => ({ llm_id, name, path })), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_id' should be 'id' to match the context and the rest of the documentation.
|
||
{ header: true } | ||
) | ||
} | ||
) | ||
|
||
defTool( | ||
"github_actions_runs_list", | ||
"List all runs for a workflow. Use 'git_actions_list_workflows' to list workflows.", | ||
"List all runs for a workflow. 'llm_id' is the ID used in other tools. Use 'git_actions_list_workflows' to list workflows.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1020,9 +1020,9 @@ | |
status, | ||
}) | ||
return CSV.stringify( | ||
res.map(({ id, name, conclusion, head_sha }) => ({ | ||
id, | ||
res.map(({ llm_id, name, conclusion, head_sha }) => ({ | ||
llm_id, | ||
name, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_id' should be 'id' to match the context and the rest of the documentation.
|
||
conclusion, | ||
head_sha, | ||
})), | ||
|
@@ -1033,7 +1033,7 @@ | |
|
||
defTool( | ||
"github_actions_jobs_list", | ||
"List all jobs for a run.", | ||
"List all jobs for a run. 'llm_id' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1050,7 +1050,11 @@ | |
context.log(`github action list jobs for run ${run_id}`) | ||
const res = await github.listWorkflowJobs(run_id) | ||
return CSV.stringify( | ||
res.map(({ id, name, status }) => ({ id, name, status })), | ||
res.map(({ llm_id, name, status }) => ({ | ||
llm_id, | ||
name, | ||
status, | ||
})), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_id' should be 'id' to match the context and the rest of the documentation.
|
||
{ header: true } | ||
) | ||
} | ||
|
@@ -1183,9 +1187,9 @@ | |
|
||
|
||
|
||
- tool `github_issues_list`: List all issues in a repository. | ||
- tool `github_issues_get`: Get a single issue by number. | ||
- tool `github_issues_comments_list`: Get comments for an issue. | ||
- tool `github_issues_list`: List all issues in a repository. 'llm_number' is the ID used in other tools. | ||
- tool `github_issues_get`: Get a single issue by number. 'llm_number' is the ID used in other tools. | ||
- tool `github_issues_comments_list`: Get comments for an issue. 'llm_id' is the ID used in other tools. | ||
|
||
`````js wrap title="system.github_issues" | ||
system({ | ||
|
@@ -1194,7 +1198,7 @@ | |
|
||
defTool( | ||
"github_issues_list", | ||
"List all issues in a repository.", | ||
"List all issues in a repository. 'llm_number' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1223,15 +1227,19 @@ | |
context.log(`github issue list ${state ?? "all"}`) | ||
const res = await github.listIssues({ state, labels, sort, direction }) | ||
return CSV.stringify( | ||
res.map(({ number, title, state }) => ({ number, title, state })), | ||
res.map(({ llm_number, title, state }) => ({ | ||
llm_number, | ||
title, | ||
state, | ||
})), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_number' should be 'number' to match the context and the rest of the documentation.
|
||
{ header: true } | ||
) | ||
} | ||
) | ||
|
||
defTool( | ||
"github_issues_get", | ||
"Get a single issue by number.", | ||
"Get a single issue by number. 'llm_number' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1245,10 +1253,10 @@ | |
async (args) => { | ||
const { number: issue_number, context } = args | ||
context.log(`github issue get ${issue_number}`) | ||
const { number, title, body, state, html_url, reactions } = | ||
const { llm_number, title, body, state, html_url, reactions } = | ||
await github.getIssue(issue_number) | ||
return YAML.stringify({ | ||
number, | ||
llm_number, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_number' should be 'number' to match the context and the rest of the documentation.
|
||
title, | ||
body, | ||
state, | ||
|
@@ -1260,7 +1268,7 @@ | |
|
||
defTool( | ||
"github_issues_comments_list", | ||
"Get comments for an issue.", | ||
"Get comments for an issue. 'llm_id' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1276,11 +1284,11 @@ | |
context.log(`github issue list comments ${issue_number}`) | ||
const res = await github.listIssueComments(issue_number) | ||
return CSV.stringify( | ||
res.map(({ id, body, updated_at }) => ({ | ||
id, | ||
res.map(({ llm_id, body, updated_at }) => ({ | ||
llm_id, | ||
body, | ||
updated_at, | ||
})), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_id' should be 'id' to match the context and the rest of the documentation.
|
||
{ header: true } | ||
) | ||
} | ||
|
@@ -1295,9 +1303,9 @@ | |
|
||
|
||
|
||
- tool `github_pulls_list`: List all pull requests in a repository. | ||
- tool `github_pulls_get`: Get a single pull request by number. | ||
- tool `github_pulls_review_comments_list`: Get review comments for a pull request. | ||
- tool `github_pulls_list`: List all pull requests in a repository. 'llm_number' is the ID used in other tools. | ||
- tool `github_pulls_get`: Get a single pull request by number. 'llm_number' is the ID used in other tools. | ||
- tool `github_pulls_review_comments_list`: Get review comments for a pull request. 'llm_id' is the ID used in other tools. | ||
|
||
`````js wrap title="system.github_pulls" | ||
system({ | ||
|
@@ -1306,7 +1314,7 @@ | |
|
||
defTool( | ||
"github_pulls_list", | ||
"List all pull requests in a repository.", | ||
"List all pull requests in a repository. 'llm_number' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1335,11 +1343,12 @@ | |
context.log(`github pull list`) | ||
const res = await github.listPullRequests({ state, sort, direction }) | ||
return CSV.stringify( | ||
res.map(({ number, title, state, body }) => ({ | ||
res.map(({ number, llm_number, title, state, body }) => ({ | ||
number, | ||
llm_number, | ||
title, | ||
state, | ||
})), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_number' should be 'number' to match the context and the rest of the documentation.
|
||
{ header: true } | ||
) | ||
} | ||
|
@@ -1347,7 +1356,7 @@ | |
|
||
defTool( | ||
"github_pulls_get", | ||
"Get a single pull request by number.", | ||
"Get a single pull request by number. 'llm_number' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1361,12 +1370,13 @@ | |
async (args) => { | ||
const { number: pull_number, context } = args | ||
context.log(`github pull get ${pull_number}`) | ||
const { number, title, body, state, html_url, reactions } = | ||
const { number, llm_number, title, body, state, html_url, reactions } = | ||
await github.getPullRequest(pull_number) | ||
return YAML.stringify({ | ||
number, | ||
llm_number, | ||
title, | ||
body, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_number' should be 'number' to match the context and the rest of the documentation.
|
||
state, | ||
html_url, | ||
reactions, | ||
|
@@ -1376,7 +1386,7 @@ | |
|
||
defTool( | ||
"github_pulls_review_comments_list", | ||
"Get review comments for a pull request.", | ||
"Get review comments for a pull request. 'llm_id' is the ID used in other tools.", | ||
{ | ||
type: "object", | ||
properties: { | ||
|
@@ -1393,7 +1403,7 @@ | |
context.log(`github pull comments list ${pull_number}`) | ||
const res = await github.listPullRequestReviewComments(pull_number) | ||
return CSV.stringify( | ||
res.map(({ id, body }) => ({ id, body })), | ||
res.map(({ id, llm_id, body }) => ({ id, llm_id, body })), | ||
{ header: true } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable 'llm_id' should be 'id' to match the context and the rest of the documentation.
|
||
) | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in the word "logsr", should be "logs".