Skip to content

Commit ea07454

Browse files
committed
Fix: github agent sample
1 parent 943cab0 commit ea07454

File tree

21 files changed

+372
-2598
lines changed

21 files changed

+372
-2598
lines changed

.github/workflows/trigger-docs-agent.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: GitHub Helper Agent
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_comment:
6+
types: [created]
7+
jobs:
8+
trigger-uipath-agent:
9+
if: startsWith(github.event.comment.body, '/help')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install Python dependencies
13+
run: pip install requests
14+
- name: Trigger UiPath Agent
15+
env:
16+
COMMENT_BODY: ${{ toJson(github.event.comment.body) }}
17+
run: |
18+
python -c "import requests; import json; import os; import re; comment = json.loads(os.environ['COMMENT_BODY']) or ''; command = re.search(r'/help\s+(\w+)', comment); command_value = command.group(1) if command else 'help'; payload = json.dumps({'owner': '${{ github.repository_owner }}', 'repo': '${{ github.event.repository.name }}', 'pullNumber': ${{ github.event.issue.number }}, 'command': command_value, 'in_reply_to': ${{ github.event.comment.id }}}); resp = requests.post('${{ secrets.UIPATH_URL }}/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs', headers={'Authorization': 'Bearer ${{ secrets.UIPATH_ACCESS_TOKEN }}', 'Content-Type': 'application/json', 'X-UiPath-FolderPath': 'MCP Folder'}, json={'startInfo': {'releaseName': 'github-helper-agent', 'inputArguments': payload}}); print(f'Status code: {resp.status_code}'); print(f'Response: {resp.text}')"

.github/workflows/trigger-reviewer-agent.yml

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

samples/github-docs-agent/.env.example

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

samples/github-docs-agent/agent.mermaid

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

samples/github-docs-agent/main.py

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

samples/github-docs-agent/pyproject.toml

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

samples/github-docs-agent/uipath.json

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

0 commit comments

Comments
 (0)