Skip to content

Commit 2657bc8

Browse files
authored
Merge pull request #54 from UiPath/fix/add_docs_trigger
Fix: Add Docs Agent action
2 parents 2952dab + a2f77ee commit 2657bc8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Documentation Agent
2+
on:
3+
issues:
4+
types: [opened]
5+
jobs:
6+
trigger-uipath-docs-agent:
7+
if: contains(github.event.issue.title, '[Docs Agent]')
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Install Python dependencies
11+
run: pip install requests
12+
- name: Trigger UiPath Documentation Agent
13+
run: |
14+
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-documentation-agent', 'inputArguments': json.dumps({'messages': [{'role': 'user', 'content': '${{ github.event.issue.title }}\n\n${{ github.event.issue.body }}'}], 'owner': '${{ github.repository_owner }}', 'repo': '${{ github.event.repository.name }}', 'issueNumber': ${{ github.event.issue.number }}})}}); print(f'Status code: {resp.status_code}'); print(f'Response: {resp.text}')"

0 commit comments

Comments
 (0)