tbh ts pmo icl 😭🙏🏽 #135
This file contains 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: AI Code Reviewer | |
on: | |
pull_request_target: | |
types: [opened, synchronize, reopened] | |
jobs: | |
ai_review: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Generate App Token | |
id: generated_token | |
uses: tibdex/github-app-token@v2.1.0 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.PRIVATE_KEY }} | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set Up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install PyGithub | |
- name: Run AI Code Reviewer | |
env: | |
GITHUB_TOKEN: ${{ steps.generated_token.outputs.token }} | |
BOT: ${{ secrets.BOT }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
run: python etc/tool/copilot.py |