File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
.github/actions/translation-tracker Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,23 @@ class GitHubCommitTracker {
297297
298298 return data ;
299299 } catch ( error ) {
300+ // If assignees fail, try again without assignees
301+ if ( error . message . includes ( 'assignees' ) && assignees . length > 0 ) {
302+ try {
303+ const { data } = await this . octokit . rest . issues . create ( {
304+ owner : this . owner ,
305+ repo : this . repo ,
306+ title : issueTitle ,
307+ body : issueBody ,
308+ labels : labels
309+ } ) ;
310+ console . log ( `⚠️ Issue created but stewards could not be assigned (not collaborators)` ) ;
311+ return data ;
312+ } catch ( retryError ) {
313+ console . error ( `❌ Error creating issue on retry:` , retryError . message ) ;
314+ return null ;
315+ }
316+ }
300317 console . error ( `❌ Error creating multi-language issue:` , error . message ) ;
301318 return null ;
302319 }
You can’t perform that action at this time.
0 commit comments