-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 757 Bytes
/
pr.yml
File metadata and controls
26 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Processar Pull Request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
call-pr-ai-service:
runs-on: ubuntu-latest
steps:
- name: Debug JSON
run: |
echo "Repository: ${{ github.repository }}"
echo "PR number: ${{ github.event.pull_request.number }}"
- name: Chamar API
run: |
curl -X POST \
-H "Content-Type: application/json" \
-H "X-API-TOKEN: ${{ secrets.PRAI_API_TOKEN }}" \
-d "{
\"repository\": \"${{ github.repository }}\",
\"pr_number\": \"${{ github.event.pull_request.number }}\",
\"merge\": \"False\"
}" \
https://api.softwareai.site/api/prai/gen