Since there was a dependency issue #208 breaking the workflow, I created a copy of the action.yml file in my repository. I edited the file to add the install command as proposed by this solution on the same issue and use this as my workflow.
The workflow runs successfully, but no changes are seen on the PR. No comments or reviews are created.
4. Create a PR on the repo
5. The workflow triggers, succeeds (screenshot below)
![image](https://github.com/microsoft/gpt-review/assets/58355527/ff3f1b2d-3c8a-4635-bc57-946ede6436fe)
6. No comment is seen in the original PR
Module path
gpt review
review-gpt CLI version
0.9.5
Describe the bug
Since there was a dependency issue #208 breaking the workflow, I created a copy of the
action.yml
file in my repository. I edited the file to add the install command as proposed by this solution on the same issue and use this as my workflow.The workflow runs successfully, but no changes are seen on the PR. No comments or reviews are created.
To reproduce
on: pull_request_target: branches: [ 'main' ]
jobs: add_pr_comment: runs-on: ubuntu-latest environment:
name: Azure OpenAI PR Comment
steps:
uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 2
name: Set up Python 3.11 uses: actions/setup-python@v4 with: python-version: 3.11
name: Install gpt-review with fixed dependencies shell: bash run: | sudo apt-get update python3 -m venv .env source .env/bin/activate python -m pip install --upgrade pip python -m pip install langchain==0.0.301 python -m pip install pydantic==1.10.13 python -m pip install gpt-review==v0.9.5
name: Populate azure.yaml from vars env: AZURE_YAML: ${{ vars.AZURE_YAML }} shell: bash run: | echo "$AZURE_YAML" > azure.yaml
name: Review PR and make comment shell: bash run: | source .env/bin/activate
Code snippet
No response
Relevant log output
No response