-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor and optimize git operations for commit messages and failure …
…analysis (#7412)
- Loading branch information
Showing
4 changed files
with
264 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**/genaiscript.d.ts | ||
**/package-lock.json | ||
**/yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
script({ | ||
tools: ["agent_fs", "agent_git", "agent_github"], | ||
}) | ||
|
||
const { | ||
workflow = "latest failed", | ||
failure_run_id = "latest", | ||
branch = await git.defaultBranch(), | ||
} = env.vars | ||
|
||
$`Investigate the status of the ${workflow} workflow and identify the root cause of the failure of run ${failure_run_id} in branch ${branch}. | ||
- Correlate the failure with the relevant commits, pull requests or issues. | ||
- Compare the source code between the failed run commit and the last successful run commit before that run. | ||
In your report, include html links to the relevant runs, commits, pull requests or issues. | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.