Skip to content

Commit 3b8c0b2

Browse files
authored
feat
add workflow
1 parent 66b5bba commit 3b8c0b2

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/pr-review.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PR Review with MCP
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write # necesario para comentar en el PR
10+
11+
jobs:
12+
pr-validation:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
# Validación de código con Copilot MCP
18+
- name: Copilot Code Review
19+
run: |
20+
copilot-mcp review . \
21+
--agent copilot-code-reviewer \
22+
--output-format github-pr-comment
23+
24+
# Validación de infraestructura con Codex MCP
25+
- name: Codex Infra Review
26+
run: |
27+
codex-mcp validate infrastructure/ \
28+
--agent infrastructure-configuration-validator \
29+
--output-format github-pr-comment
30+
31+
# Validación de seguridad con MCP
32+
- name: Security Review
33+
run: |
34+
copilot-mcp analyze security/ \
35+
--agent copilot-security-reviewer \
36+
--output-format github-pr-comment

0 commit comments

Comments
 (0)