Skip to content

Commit 0acbb7f

Browse files
committed
Add early exit for issues with existing linked PRs
1 parent ac4f337 commit 0acbb7f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/claude.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,14 @@ jobs:
263263
echo "📊 Change statistics:"
264264
git diff --stat origin/${{ steps.context-info.outputs.base-ref }}..HEAD || echo "Failed to get stats"
265265
266+
- name: Exit early if Issue already has linked PR
267+
id: exit-early
268+
if: |
269+
steps.context-info.outputs.is-pr == 'false' && steps.context-info.outputs.has-linked-pr == 'true'
270+
run: |
271+
echo "Issue already has linked PR. Exiting early."
272+
exit 0
273+
266274
- name: Get Project Information
267275
id: project-info
268276
run: |
@@ -750,7 +758,7 @@ jobs:
750758
# The 'if' condition is now correctly chained.
751759
if: |
752760
steps.claude.outcome == 'success'
753-
&& steps.context-info.outputs.is-pr == 'false'
761+
&& steps.context-info.outputs.is-pr == 'false'
754762
&& steps.claude.outputs.claude_branch_name
755763
&& steps.check-changes.outputs.has-changes == 'true'
756764
uses: actions/github-script@v7

0 commit comments

Comments
 (0)