Repository navigation
Commit 0abc357
committed
ci(translator): address second round of CodeRabbit findings
- Use max-tokens instead of max-completion-tokens: at the pinned SHA
(b81b2afb) the action reads max-tokens with a 200-token default;
max-completion-tokens is silently ignored, cutting off long
translations mid-JSON
- Fetch the live issue title before updating: context.payload.issue
carries the original opened-event title which is stale on re-runs;
skip the update if a maintainer has already edited the title, or if
it already matches the translation1 parent d16e599 commit 0abc357
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
0 commit comments