Skip to content

Commit

Permalink
Include 'status' in GitHub Action log messages for workflow runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 6, 2024
1 parent d6def88 commit 1a35cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/scripts/system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ defTool(
async (args) => {
const { workflow_id, branch, status, context } = args
context.log(
`github action list runs for ${workflow_id ? `worfklow ${workflow_id}` : `repository`} and branch ${branch || "all"}`
`github action list ${status || ""} runs for ${workflow_id ? `worfklow ${workflow_id}` : `repository`} and branch ${branch || "all"}`
)
const res = await github.listWorkflowRuns(workflow_id, {
branch,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/genaisrc/system.github_actions.genai.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defTool(
async (args) => {
const { workflow_id, branch, status, context } = args
context.log(
`github action list runs for ${workflow_id ? `worfklow ${workflow_id}` : `repository`} and branch ${branch || "all"}`
`github action list ${status || ""} runs for ${workflow_id ? `worfklow ${workflow_id}` : `repository`} and branch ${branch || "all"}`
)
const res = await github.listWorkflowRuns(workflow_id, {
branch,
Expand Down

0 comments on commit 1a35cdf

Please sign in to comment.