Skip to content

Commit ee08fff

Browse files
authored
Fix release-draft workflow to use pull_request_target and increase max_turns to 50 (#2930)
1 parent 5acb178 commit ee08fff

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release-draft.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Release Draft
22

33
on:
4-
pull_request:
4+
# Use pull_request_target to always use the workflow file from main branch
5+
# This ensures new PRs from branches that don't have the latest workflow will still work
6+
# Security note: This is safe because we only run on merged PRs (code is already in main)
7+
pull_request_target:
58
types: [closed]
69
branches: [main]
710

@@ -76,7 +79,7 @@ jobs:
7679
7780
claude_args: |
7881
--model claude-opus-4-5-20251101
79-
--max-turns 20
82+
--max-turns 50
8083
--json-schema '{"type":"object","properties":{"has_breaking_changes":{"type":"boolean","description":"Whether this PR contains breaking changes"},"breaking_changes_content":{"type":"string","description":"Formatted breaking changes section content (without ## Breaking Changes header), or empty string if none"},"reasoning":{"type":"string","description":"Brief explanation of why this is or is not a breaking change"}},"required":["has_breaking_changes","breaking_changes_content","reasoning"]}'
8184
8285
- name: Parse Claude output

0 commit comments

Comments
 (0)