mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
Update AI_Agent_review.yml
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
3ce9fc2ec6
commit
7a1f7e4b57
1 changed files with 30 additions and 30 deletions
60
.github/workflows/AI_Agent_review.yml
vendored
60
.github/workflows/AI_Agent_review.yml
vendored
|
@ -1,35 +1,35 @@
|
||||||
name: Trigger Lambda on PR Events
|
# name: Trigger Lambda on PR Events
|
||||||
|
|
||||||
on:
|
# on:
|
||||||
pull_request:
|
# pull_request:
|
||||||
types: [opened, reopened, synchronize]
|
# types: [opened, reopened, synchronize]
|
||||||
branches:
|
# branches:
|
||||||
- main # Change this to your target branch if needed
|
# - 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
|
# - name: Extract Repo Owner
|
||||||
id: extract
|
# id: extract
|
||||||
run: |
|
# run: |
|
||||||
echo "##[set-output name=owner;]$(echo '${{ github.repository }}' | cut -d'/' -f1)"
|
# echo "##[set-output name=owner;]$(echo '${{ github.repository }}' | cut -d'/' -f1)"
|
||||||
echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
|
# echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- 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..."
|
||||||
|
|
||||||
curl -X POST "$LAMBDA_URL" \
|
# curl -X POST "$LAMBDA_URL" \
|
||||||
-H "Content-Type: application/json" \
|
# -H "Content-Type: application/json" \
|
||||||
-d '{
|
# -d '{
|
||||||
"repo_owner": "${{ steps.extract.outputs.owner }}",
|
# "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 }}",
|
||||||
"repo": "${{ steps.extract.outputs.repo_name }}",
|
# "repo": "${{ steps.extract.outputs.repo_name }}",
|
||||||
"git_token": "${{ secrets.PAT_TOKEN }}"
|
# "git_token": "${{ secrets.PAT_TOKEN }}"
|
||||||
}'
|
# }'
|
||||||
env:
|
# env:
|
||||||
LAMBDA_URL: ${{ secrets.LAMBDA_URL }}
|
# LAMBDA_URL: ${{ secrets.LAMBDA_URL }}
|
||||||
|
|
Loading…
Reference in a new issue