Skip to content

Commit b993e25

Browse files
committed
Fix: docs action empty body
1 parent 423ed27 commit b993e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
ISSUE_TITLE: ${{ toJson(github.event.issue.title) }}
1515
ISSUE_BODY: ${{ toJson(github.event.issue.body) }}
1616
run: |
17-
python -c "import requests; import json; import os; issue_title = json.loads(os.environ['ISSUE_TITLE']); issue_body = json.loads(os.environ['ISSUE_BODY']); content = issue_title + '\n\n' + issue_body; 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': content}], '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}')"
17+
python -c "import requests; import json; import os; issue_title = json.loads(os.environ['ISSUE_TITLE']) or ''; issue_body = json.loads(os.environ['ISSUE_BODY']) or ''; content = issue_title + (('\n\n' + issue_body) if issue_body else ''); 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': content}], '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)