Skip to content

Commit e0535b1

Browse files
committed
git: trigger reviewer agent
1 parent 661d0db commit e0535b1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PR Review Bot
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
trigger-uipath-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install Python dependencies
12+
run: pip install requests
13+
14+
- name: Trigger UiPath PR Review
15+
run: |
16+
python -c "import requests; import json; 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-reviewer-agent', 'inputArguments': json.dumps({'messages': [{'role': 'user', 'content': 'Review this PR and provide detailed feedback'}], 'owner': '${{ github.repository_owner }}', 'repo': '${{ github.event.repository.name }}', 'pullNumber': ${{ github.event.pull_request.number }}})}}); print(f'Status code: {resp.status_code}'); print(f'Response: {resp.text}')"

0 commit comments

Comments
 (0)