finish proximitygap, do bivariate #7
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
| name: PR Summary | |
| on: | |
| pull_request_target: | |
| permissions: | |
| pull-requests: write | |
| issues: read | |
| jobs: | |
| summarize: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR Code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 # Fetch all history to enable diffing against base | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install -r ./scripts/requirements.txt | |
| - name: Generate diff | |
| run: git diff ${{ github.event.pull_request.base.sha }} HEAD > pr.diff | |
| - name: Generate summary | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: python ./scripts/pr-summary.py |