Skip to content

Review Pull Request

Review Pull Request #6

name: Review Pull Request
on:
pull_request:
types: [opened, synchronize]
pull_request_review_comment:
types: [ created ]
jobs:
respond:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Print pull request number
run: |
echo "Pull Request Number - ${{ github.event.pull_request.number }}"
echo "Organization - ${{ github.repository_owner }}"
echo "Repository Name - ${{ github.repository }}"
- name: Print Job details
run: |
echo "Run ID - ${{ github.run_id }}"
echo "Run No - ${{ github.run_number }}"
echo "Job - ${{ github.job }}"
echo "Job ID - ${{ github.job_id }}"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git-bob==0.2.1
- name: Run Python
env:
ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}"
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
GIT_BOB_LLM_NAME: "${{ secrets.GIT_BOB_LLM_NAME }}"
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_RUN_ID: "${{ github.run_id }}"
run: |
git-bob review-pull-request-action ${{ github.repository }} ${{ github.event.pull_request.number }}