Skip to content

Commit a993a06

Browse files
authored
ci: add pr-agent (#6632)
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent aa0c633 commit a993a06

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pr-agent.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PR-Agent
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
issue_comment:
7+
8+
jobs:
9+
prevent-no-label-execution-pr-agent:
10+
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
11+
with:
12+
label: tag:pr-agent
13+
pr_agent_job:
14+
needs: prevent-no-label-execution-pr-agent
15+
if: ${{ needs.prevent-no-label-execution-pr-agent.outputs.run == 'true' }}
16+
runs-on: ubuntu-latest
17+
permissions:
18+
issues: write
19+
pull-requests: write
20+
contents: write
21+
name: Run pr agent on every pull request, respond to user comments
22+
steps:
23+
- name: PR Agent action step
24+
id: pragent
25+
uses: Codium-ai/pr-agent@main
26+
env:
27+
OPENAI_KEY: ${{ secrets.OPENAI_KEY_PR_AGENT }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)