Feat(pull): Add pullhero for first pass PR reviews #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request: | |
| types: [opened, review_requested, edited] | |
| jobs: | |
| pullhero: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install pullhero | |
| run: pip3 install pullhero | |
| - name: Push code review | |
| run: > | |
| pullhero --vcs-provider github | |
| --vcs-token ${{ secrets.GITHUB_TOKEN }} | |
| --vcs-change-id ${{ github.event.pull_request.number }} | |
| --vcs-repository ${{ github.repository }} | |
| --vcs-change-type pr | |
| --agent review | |
| --agent-action comment | |
| --vcs-base-branch ${{ github.event.pull_request.base.ref }} | |
| --vcs-head-branch ${{ github.event.pull_request.head.ref }} | |
| --llm-api-key ${{ secrets.PULLHERO_API_KEY }} | |
| --llm-api-host ${{ secrets.PULLHERO_API_HOST }} | |
| --llm-api-model ${{ secrets.PULLHERO_API_MODEL }} | |
| --llm-api-endpoint ${{ secrets.PULLHERO_API_ENDPOINT }} |