Skip to content

Commit 593b870

Browse files
authored
refactor: remove duplicated example and rename folder (#765)
1 parent fbbd570 commit 593b870

File tree

13 files changed

+10
-518
lines changed

13 files changed

+10
-518
lines changed

.github/workflows/assign-reviews.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
runs-on: ubuntu-latest
2626
env:
2727
# Configuration (modify these values as needed)
28-
AGENT_SCRIPT_URL: https://raw.githubusercontent.com/All-Hands-AI/agent-sdk/main/examples/github_workflows/01_basic_action/agent_script.py
28+
AGENT_SCRIPT_URL:
29+
https://raw.githubusercontent.com/All-Hands-AI/agent-sdk/main/examples/03_github_workflows/01_basic_action/agent_script.py
2930
# Provide either PROMPT_LOCATION (URL/file) OR PROMPT_STRING (direct text), not both
3031
# Option 1: Use a URL or file path for the prompt
3132
PROMPT_LOCATION: ''

.github/workflows/pr-review-by-openhands.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
cd pr-repo
9191
9292
# Run the PR review script from the agent-sdk checkout
93-
uv run python ../agent-sdk/examples/github_workflows/02_pr_review/agent_script.py
93+
uv run python ../agent-sdk/examples/03_github_workflows/02_pr_review/agent_script.py
9494
9595
- name: Upload logs as artifact
9696
uses: actions/upload-artifact@v4

examples/github_workflows/01_basic_action/README.md renamed to examples/03_github_workflows/01_basic_action/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This example demonstrates how to set up a GitHub Actions workflow for automated
1414
Copy `workflow.yml` to `.github/workflows/maintenance-task.yml` in your repository:
1515

1616
```bash
17-
cp examples/github_workflows/01_routine_maintenance/workflow.yml .github/workflows/maintenance-task.yml
17+
cp examples/03_github_workflows/01_routine_maintenance/workflow.yml .github/workflows/maintenance-task.yml
1818
```
1919

2020
### 2. Configure the workflow
@@ -72,7 +72,7 @@ export LLM_MODEL="openhands/claude-sonnet-4-5-20250929"
7272
echo "Check for outdated dependencies in requirements.txt and create a PR to update them" > prompt.txt
7373

7474
# Run the agent
75-
python examples/github_workflows/01_routine_maintenance/agent_script.py prompt.txt
75+
python examples/03_github_workflows/01_routine_maintenance/agent_script.py prompt.txt
7676
```
7777

7878
## Usage

examples/github_workflows/01_basic_action/workflow.yml renamed to examples/03_github_workflows/01_basic_action/workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
runs-on: ubuntu-latest
2626
env:
2727
# Configuration (modify these values as needed)
28-
AGENT_SCRIPT_URL: https://raw.githubusercontent.com/All-Hands-AI/agent-sdk/main/examples/github_workflows/01_basic_action/agent_script.py
28+
AGENT_SCRIPT_URL:
29+
https://raw.githubusercontent.com/All-Hands-AI/agent-sdk/main/examples/03_github_workflows/01_basic_action/agent_script.py
2930
# Provide either PROMPT_LOCATION (URL/file) OR PROMPT_STRING (direct text), not both
3031
# Option 1: Use a URL or file path for the prompt
3132
PROMPT_LOCATION: ''

examples/github_workflows/02_pr_review/README.md renamed to examples/03_github_workflows/02_pr_review/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This example demonstrates how to set up a GitHub Actions workflow for automated
2828
Copy `workflow.yml` to `.github/workflows/pr-review-by-openhands.yml` in your repository:
2929

3030
```bash
31-
cp examples/github_workflows/02_pr_review/workflow.yml .github/workflows/pr-review-by-openhands.yml
31+
cp examples/03_github_workflows/02_pr_review/workflow.yml .github/workflows/pr-review-by-openhands.yml
3232
```
3333

3434
### 2. Configure secrets
@@ -72,4 +72,4 @@ To trigger an automated review of a pull request:
7272
1. Open the pull request you want reviewed
7373
2. Add the `review-this` label to the PR
7474
3. The workflow will automatically start and analyze the changes
75-
4. Review comments will be posted to the PR when complete
75+
4. Review comments will be posted to the PR when complete

examples/github_workflows/02_pr_review/workflow.yml renamed to examples/03_github_workflows/02_pr_review/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
cd pr-repo
9696
9797
# Run the PR review script from the agent-sdk checkout
98-
uv run python ../agent-sdk/examples/github_workflows/02_pr_review/agent_script.py
98+
uv run python ../agent-sdk/examples/03_github_workflows/02_pr_review/agent_script.py
9999
100100
- name: Upload logs as artifact
101101
uses: actions/upload-artifact@v4

examples/remote_execution_and_sandbox/1_remote_convo_with_agent_server.py

Lines changed: 0 additions & 239 deletions
This file was deleted.

0 commit comments

Comments
 (0)