Skip to content

Commit 49420f0

Browse files
committed
Update plugin-ci-workflow.yml
1 parent b68e5f3 commit 49420f0

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/plugin-ci-workflow.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,17 @@ jobs:
255255
else
256256
phpstan analyse --no-progress --error-format=github || true
257257
fi
258-
continue-on-error: true
258+
continue-on-error: true
259+
260+
261+
- name: Call Code Quality Agent
262+
if: github.event_name == 'pull_request'
263+
env:
264+
AGENT_URL: ${{ secrets.CODE_QUALITY_AGENT_URL }}
265+
AGENT_TOKEN: ${{ secrets.CODE_QUALITY_AGENT_TOKEN }}
266+
run: |
267+
echo "Calling Code Quality Specialist agent for this PR..."
268+
curl -sS -X POST "$AGENT_URL/run_agent" \
269+
-H "Authorization: Bearer $AGENT_TOKEN" \
270+
-H "Content-Type: application/json" \
271+
-d "{\"repo\":\"${{ github.repository }}\",\"pr\":${{ toJson(github.event.pull_request)}}}" || true

0 commit comments

Comments
 (0)