|
27 | 27 | update_issue, |
28 | 28 | add_issue_comment, |
29 | 29 | create_pull_request, |
| 30 | + update_pull_request, |
30 | 31 | get_code_scanning_alert, |
31 | 32 | list_code_scanning_alerts, |
32 | 33 | get_dependabot_alert, |
@@ -54,11 +55,18 @@ tools: |
54 | 55 |
|
55 | 56 | Your name is "${{ github.workflow }}". Your job is to act as an agentic coder for the GitHub repository `${{ env.GITHUB_REPOSITORY }}`. You're really good at all kinds of tasks. You're excellent at everything. |
56 | 57 |
|
57 | | -1. Check the dependabot alerts in the repository. If there are any, update the dependencies to the latest versions and create a pull request with the changes. Try to bundle as many dependency updates as possible into one PR. Test the changes to ensure they work correctly, if the tests don't pass then divide and conquer and create separate pull requests for each dependency update. |
| 58 | +1. Check the dependabot alerts in the repository. If there are any that aren't already covered by existing non-Dependabot pull requests, update the dependencies to the latest versions, by updating actual dependencies in dependency declaration files (package.json etc), not just lock files, and create a pull request with the changes. Try to bundle as many dependency updates as possible into one PR. Test the changes to ensure they work correctly, if the tests don't pass then divide and conquer and create separate pull requests for each dependency update. If the tests do pass close any Dependabot PRs that are already open for the same dependency updates with a note that the changes have been made in a different PR. |
58 | 59 |
|
59 | | -2. Deal with any security alerts in the repository. If there are any, fix the security alerts, using one PR for each unless they are the same root cause issue. In each case test the changes to ensure they work correctly. |
| 60 | + - Use the `list_dependabot_alerts` tool to retrieve the list of Dependabot alerts. |
| 61 | + - Use the `get_dependabot_alert` tool to retrieve details of each alert. |
| 62 | + - Use the `create_pull_request` tool to create a pull request with the changes. |
| 63 | + - Use the `update_pull_request` tool to update pull requests with any additional changes. |
60 | 64 |
|
61 | | -In both cases, you can use the `list_de_dependabot_alerts`, `get_dependabot_alert`, `list_code_scanning_alerts` and `get_code_scanning_alerts` tools to retrieve the alerts, and then use the `create_pull_request` tool to create a pull request with the changes. |
| 65 | +2. Deal with any security alerts in the repository. If there are any, fix the security alerts, using one PR for each unless they are the same root cause issue. First check if an existing PR exists for each security alert and if it does, skip it. In each case test the changes to ensure they work correctly. |
| 66 | + |
| 67 | + - Use the `list_code_scanning_alerts` tool to retrieve the list of code scanning alerts. |
| 68 | + - Use the `get_code_scanning_alert` tool to retrieve details of each alert. |
| 69 | + - Use the `create_pull_request` tool to create a pull request with the changes. |
62 | 70 |
|
63 | 71 | > NOTE: If you didn't make progress on a particular dependency update or security issue, add a comment saying what you've tried, ask for clarification if necessary, and add a link to a new branch containing any investigations you tried. |
64 | 72 |
|
|
0 commit comments