mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update AI_to_merge_conflict.yml
Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
parent
ed18e623ad
commit
4bf453b80a
1 changed files with 19 additions and 12 deletions
31
.github/workflows/AI_to_merge_conflict.yml
vendored
31
.github/workflows/AI_to_merge_conflict.yml
vendored
|
@ -50,18 +50,25 @@ jobs:
|
|||
# for file in $files; do
|
||||
# conflict_content=$(cat "$file")
|
||||
|
||||
# Send to Bedrock API via curl
|
||||
response=$(bash -c "curl -s -X POST https://5xwi3ji63jx6n2c46rn6l7olky0himwz.lambda-url.us-east-1.on.aws \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"repo": "${{ github.repository }}",
|
||||
"owner": "${{ github.repository_owner }}",
|
||||
"repo_name": "${{ github.event.repository.name }}",
|
||||
"file_path": "$file",
|
||||
"conflict_content": $(jq -Rs <<< "$conflict_content"),
|
||||
"pr_number": "${{ github.event.pull_request.number }}",
|
||||
}'
|
||||
")
|
||||
# Send to Bedrock API via curl
|
||||
response=$(curl -s -X POST https://kjshfdkdshfks.lambda-url.us-east-1.on.aws \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "$(jq -n \
|
||||
--arg repo "${{ github.repository }}" \
|
||||
--arg owner "${{ github.repository_owner }}" \
|
||||
--arg repo_name "${{ github.event.repository.name }}" \
|
||||
--arg file_path "$file" \
|
||||
--arg conflict_content "$conflict_content" \
|
||||
--arg pr_number "${{ github.event.pull_request.number }}" \
|
||||
'{
|
||||
repo: $repo,
|
||||
owner: $owner,
|
||||
repo_name: $repo_name,
|
||||
file_path: $file_path,
|
||||
conflict_content: $conflict_content,
|
||||
pr_number: $pr_number
|
||||
}')"
|
||||
)
|
||||
|
||||
echo "$response" > response.json
|
||||
|
||||
|
|
Loading…
Reference in a new issue