Skip to content

Commit b27d514

Browse files
author
M. Fatih Cırıt
committed
better separation
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent 3e52bb8 commit b27d514

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/pr-agent.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,26 @@ name: PR-Agent
22

33
on:
44
pull_request:
5-
types: [opened, labeled, unlabeled, synchronize]
5+
types: [ opened, labeled, unlabeled, synchronize ]
66
issue_comment:
77

88
jobs:
9+
prevent-no-label-execution-pr-agent:
10+
- uses: mheap/github-action-required-labels@v5
11+
with:
12+
mode: exactly
13+
count: 1
14+
labels: "tag:pr-agent"
915
pr_agent_job:
16+
needs: prevent-no-label-execution-pr-agent
17+
if: needs.label.outputs.status == 'success'
1018
runs-on: ubuntu-latest
1119
permissions:
1220
issues: write
1321
pull-requests: write
1422
contents: write
1523
name: Run pr agent on every pull request, respond to user comments
1624
steps:
17-
- uses: mheap/github-action-required-labels@v5
18-
with:
19-
mode: exactly
20-
count: 1
21-
labels: "tag:pr-agent"
2225
- name: PR Agent action step
2326
id: pragent
2427
uses: Codium-ai/pr-agent@main

0 commit comments

Comments
 (0)