Skip to content

Commit 997b8cb

Browse files
authored
Merge pull request #4 from githubnext/d2
clarify
2 parents f025cd5 + 65bb75b commit 997b8cb

2 files changed

Lines changed: 74 additions & 6 deletions

File tree

README.md

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,64 @@
1-
# agents
2-
Agents definitions for gh-aw
1+
# GitHub Agentic Workflows (Samples)
2+
3+
More information about the format at https://github.com/githubnext/gh-aw
4+
5+
To install:
6+
7+
```bash
8+
gh extension install githubnext/gh-aw
9+
gh aw install githubnext/gh-aw-samples
10+
```
11+
12+
## Weekly Researcher
13+
14+
```bash
15+
gh aw add agentic-researcher
16+
git commit -a -m "Add agentic-researcher workflow"
17+
```
18+
19+
## Security and Dependency Updater
20+
21+
```bash
22+
gh aw add agentic-dependency-updater
23+
git commit -a -m "Add agentic-dependency-updater workflow"
24+
```
25+
26+
## QA Engineer
27+
28+
```bash
29+
gh aw add agentic-qa
30+
git commit -a -m "Add agentic-qa workflow"
31+
```
32+
33+
## Triage Assistant
34+
35+
```bash
36+
gh aw add agentic-triage
37+
git commit -a -m "Add agentic-triage workflow"
38+
```
39+
40+
## Planner
41+
42+
```bash
43+
gh aw add agentic-planner
44+
git commit -a -m "Add agentic-planner workflow"
45+
```
46+
47+
## Job Summary
48+
49+
```bash
50+
gh aw install githubnext/gh-aw-samples
51+
gh aw add job-summary
52+
git commit -a -m "Add job-summary workflow"
53+
```
54+
55+
## Coder
56+
57+
```bash
58+
gh aw install githubnext/gh-aw-samples
59+
gh aw add agentic-coder
60+
git commit -a -m "Add agentic-coder workflow"
61+
```
62+
63+
364

4-
- More information about the format at https://github.com/githubnext/gh-aw

workflows/agentic-dependency-updater.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ tools:
2727
update_issue,
2828
add_issue_comment,
2929
create_pull_request,
30+
update_pull_request,
3031
get_code_scanning_alert,
3132
list_code_scanning_alerts,
3233
get_dependabot_alert,
@@ -54,11 +55,18 @@ tools:
5455

5556
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.
5657

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.
5859

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.
6064

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.
6270

6371
> 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.
6472

0 commit comments

Comments
 (0)