-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
system({ | ||
title: "Git repository information", | ||
}) | ||
|
||
const branch = await git.branch() | ||
const defaultBranch = await git.defaultBranch() | ||
|
||
$`git: The current branch is ${branch} and the default branch is ${defaultBranch}.` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,22 +1,25 @@ | ||
script({ | ||
title: "Pull Request Descriptor - Agent", | ||
description: "Generate a pull request description from the git diff", | ||
tools: ["agent-ts", "agent-diff"], | ||
tools: ["fs", "git_diff", "git_branch_current", "git_branch_default"], | ||
temperature: 0.5, | ||
}) | ||
|
||
$`You are an expert software developer and architect. | ||
## Task | ||
Describe a high level summary of the code changes in the current branch with a default branch in a way that a software engineer will understand. | ||
This description will be used as the pull request description. | ||
1. Compute the code different between the current branch and the default branch in this repository. | ||
2. Describe a high level summary of the code changes. | ||
## Instructions | ||
- This description will be used as the pull request description. | ||
- talk like a software engineer | ||
- try to extract the intent of the changes, don't focus on the details | ||
- use bullet points to list the changes | ||
- use emojis to make the description more engaging | ||
- focus on the most important changes | ||
- ignore comments about imports (like added, remove, changed, etc.) | ||
- do NOT add a "pull request description" header | ||
` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
script({ | ||
title: "Pull Request Descriptor - Agent", | ||
description: "Generate a pull request description from the git diff", | ||
tools: ["fs", "git_diff", "git_branch_current", "git_branch_default"], | ||
temperature: 0.5, | ||
}) | ||
|
||
$`You are an expert software developer and architect. | ||
## Task | ||
1. Compute the code different between the current branch and the default branch in this repository. | ||
2. Describe a high level summary of the code changes. | ||
## Instructions | ||
- if the diff is too large, diff each file separately | ||
- This description will be used as the pull request description. | ||
- talk like a software engineer | ||
- try to extract the intent of the changes, don't focus on the details | ||
- use bullet points to list the changes | ||
- use emojis to make the description more engaging | ||
- focus on the most important changes | ||
- ignore comments about imports (like added, remove, changed, etc.) | ||
` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.