mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update AI_Agent_review.yml
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
5c6fa1707a
commit
3240c4860b
1 changed files with 8 additions and 3 deletions
11
.github/workflows/AI_Agent_review.yml
vendored
11
.github/workflows/AI_Agent_review.yml
vendored
|
@ -2,15 +2,20 @@ name: Trigger Lambda on PR Events
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened, synchronize] # Triggers on PR open/update
|
types: [opened, reopened, synchronize]
|
||||||
branches:
|
branches:
|
||||||
- main # Or whatever your base branch is
|
- main # Change this to your target branch if needed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-lambda:
|
trigger-lambda:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Extract Repo Owner
|
||||||
|
id: extract
|
||||||
|
run: |
|
||||||
|
echo "##[set-output name=owner;]$(echo '${{ github.repository }}' | cut -d'/' -f1)"
|
||||||
|
|
||||||
- name: Call Lambda with PR Details
|
- name: Call Lambda with PR Details
|
||||||
run: |
|
run: |
|
||||||
echo "Sending PR details to Lambda..."
|
echo "Sending PR details to Lambda..."
|
||||||
|
@ -18,7 +23,7 @@ jobs:
|
||||||
curl -X POST "$LAMBDA_URL" \
|
curl -X POST "$LAMBDA_URL" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"action": "${{ github.event.action }}",
|
"repo_owner": "${{ steps.extract.outputs.owner }}",
|
||||||
"pr_number": "${{ github.event.pull_request.number }}",
|
"pr_number": "${{ github.event.pull_request.number }}",
|
||||||
"base_branch": "${{ github.event.pull_request.base.ref }}",
|
"base_branch": "${{ github.event.pull_request.base.ref }}",
|
||||||
"main_branch": "${{ github.event.pull_request.head.ref }}",
|
"main_branch": "${{ github.event.pull_request.head.ref }}",
|
||||||
|
|
Loading…
Reference in a new issue