Skip to content

Commit b57674e

Browse files
committed
completely done
1 parent 2a9eb83 commit b57674e

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ runs:
8585
shell: bash
8686

8787
- name: Create Pull Request
88+
id: create_pr
8889
uses: peter-evans/create-pull-request@v3
8990
with:
9091
token: ${{ inputs.github_token }}
@@ -94,4 +95,13 @@ runs:
9495
body: ${{ steps.get-pr-body.outputs.body}}
9596
base: ${{ inputs.base_branch }}
9697

97-
# TODO: finish the autodoc workflow
98+
- name: Mark the Autodoc Run as completed
99+
env:
100+
PYTHONPATH: ${{ github.action_path }}
101+
run: |
102+
python ${{ github.action_path }}/scripts/mark_run_completed.py \
103+
--server-address ${{ inputs.runllm_server_address }} \
104+
--api-key ${{ inputs.runllm_api_key }} \
105+
--run-id ${{ github.run_id }} \
106+
--gh-action-url ${{ steps.create_pr.outputs.pull-request-url }}
107+
shell: bash

scripts/mark_run_completed.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import argparse
2+
3+
from scripts.client import RunLLMClient
4+
5+
parser = argparse.ArgumentParser(description="Mark an autodoc run as completed.")
6+
parser.add_argument("--server-address", type=str, required=True, help="The address of the RunLLM server")
7+
parser.add_argument("--api-key", type=str, required=True, help="The API key to use for the RunLLM server")
8+
parser.add_argument("--run-id", type=int, required=True, help="The GH action run id")
9+
parser.add_argument("--pr-url", type=str, required=True, help="The URL of the pull request")
10+
args = parser.parse_args()
11+
12+
if __name__ == "__main__":
13+
client = RunLLMClient(args.server_address, args.api_key)
14+
client.mark_completed(args.run_id, args.pr_url)

0 commit comments

Comments
 (0)