Skip to content

Commit eebe75e

Browse files
author
M. Fatih Cırıt
committed
ci: add pr-agent
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent aa0c633 commit eebe75e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pr-agent.yaml

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

0 commit comments

Comments
 (0)