Skip to content

Feat/add major changes #5

Feat/add major changes

Feat/add major changes #5

Workflow file for this run

name: PR Summarizer
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
summarize:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Summarize PR using Gemini
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_REPOSITORY: ${{ github.repository }}-
run: |
python main.py > summary.txt
SUMMARY=$(cat summary.txt)
echo "$SUMMARY"