Skip to content

Commit 21e4844

Browse files
committed
Update index.js
1 parent 06eece3 commit 21e4844

File tree

1 file changed

+17
-0
lines changed
  • .github/actions/translation-tracker

1 file changed

+17
-0
lines changed

.github/actions/translation-tracker/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)