mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Create AI_Agent_review.yml
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
332abbcb8a
commit
5c6fa1707a
1 changed files with 29 additions and 0 deletions
29
.github/workflows/AI_Agent_review.yml
vendored
Normal file
29
.github/workflows/AI_Agent_review.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Trigger Lambda on PR Events
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize] # Triggers on PR open/update
|
||||
branches:
|
||||
- main # Or whatever your base branch is
|
||||
|
||||
jobs:
|
||||
trigger-lambda:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Call Lambda with PR Details
|
||||
run: |
|
||||
echo "Sending PR details to Lambda..."
|
||||
|
||||
curl -X POST "$LAMBDA_URL" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"action": "${{ github.event.action }}",
|
||||
"pr_number": "${{ github.event.pull_request.number }}",
|
||||
"base_branch": "${{ github.event.pull_request.base.ref }}",
|
||||
"main_branch": "${{ github.event.pull_request.head.ref }}",
|
||||
"repo": "${{ github.repository }}",
|
||||
"git_token": "${{ secrets.GITHUB_TOKEN }}"
|
||||
}'
|
||||
env:
|
||||
LAMBDA_URL: ${{ secrets.LAMBDA_URL }}
|
Loading…
Reference in a new issue