Skip to content

Commit 0889f80

Browse files
committed
feat: manually missing workflow file
1 parent 4b806f8 commit 0889f80

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: PraisonAI PR Reviewer
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
review:
11+
runs-on: ubuntu-latest
12+
if: github.event.pull_request.draft == false && (github.event_name == 'pull_request' || contains(github.event.comment.body, '@praisonai'))
13+
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Generate GitHub App Token
21+
id: generate_token
22+
uses: tibdex/github-app-token@v2
23+
with:
24+
app_id: ${{ secrets.PRAISONAI_APP_ID }}
25+
private_key: ${{ secrets.PRAISONAI_APP_PRIVATE_KEY }}
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.11'
31+
32+
- name: Install PraisonAI
33+
run: pip install praisonaiagents[all]
34+
35+
- name: Run PraisonAI PR Review
36+
env:
37+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
38+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
39+
run: |
40+
praisonai agents --file .github/praisonai-reviewer.yaml

0 commit comments

Comments
 (0)