Skip to content

Bump version to 2.1.1 and update FastAPI dependency #61

Bump version to 2.1.1 and update FastAPI dependency

Bump version to 2.1.1 and update FastAPI dependency #61

name: "Gito: AI Code Reviewer"
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
pr_number:
description: "Pull Request number"
required: true
jobs:
review:
runs-on: ubuntu-latest
permissions: { contents: read, pull-requests: write } # 'write' for leaving the summary comment
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Set up Python
uses: actions/setup-python@v5
with: { python-version: "3.13" }
- name: Fetch Latest Gito Version
id: gito-version
run: pip index versions gito.bot 2>/dev/null | head -1 | sed -n 's/.* (\([^)]*\)).*/version=\1/p' >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: cache
with:
path: |
${{ env.pythonLocation }}/lib/python3.13/site-packages
${{ env.pythonLocation }}/bin
key: gito_v${{ steps.gito-version.outputs.version }}
- name: Install Gito
if: steps.cache.outputs.cache-hit != 'true'
run: pip install gito.bot~=3.2
- name: Run AI code review
env:
LLM_API_TYPE: open_ai
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: gpt-5
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
JIRA_URL: ${{ secrets.JIRA_URL }}
JIRA_USER: ${{ secrets.JIRA_USER }}
LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER_FROM_WORKFLOW_DISPATCH: ${{ github.event.inputs.pr_number }}
run: |
gito --verbose review
gito github-comment
- uses: actions/upload-artifact@v4
with:
name: gito-code-review-results
path: |
code-review-report.md
code-review-report.json