Skip to content

Commit efbd7a1

Browse files
author
M. Fatih Cırıt
committed
require label dep
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent d00c240 commit efbd7a1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/pr-agent.yaml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
name: PR-Agent
22

33
on:
4-
pull_request_target:
5-
types:
6-
- labeled
74
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
86
issue_comment:
97

108
jobs:
11-
prevent-no-label-execution-pr-agent:
12-
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
13-
with:
14-
label: tag:pr-agent
159
pr_agent_job:
16-
needs: prevent-no-label-execution-pr-agent
17-
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
1810
runs-on: ubuntu-latest
1911
permissions:
2012
issues: write
2113
pull-requests: write
2214
contents: write
2315
name: Run pr agent on every pull request, respond to user comments
2416
steps:
17+
- uses: mheap/github-action-required-labels@v5
18+
with:
19+
mode: exactly
20+
count: 1
21+
labels: "tag:pr-agent"
2522
- name: PR Agent action step
2623
id: pragent
2724
uses: Codium-ai/pr-agent@main

0 commit comments

Comments
 (0)