You've already forked game-compatibility
mirror of
https://github.com/xenios-jp/game-compatibility.git
synced 2026-07-11 15:18:48 -07:00
Merge pull request #426 from xenios-jp/claude/fix-github-actions-naBXQ
This commit is contained in:
@@ -160,7 +160,10 @@ jobs:
|
||||
const canonical = existingIssues
|
||||
.filter((item) => !item.pull_request)
|
||||
.filter((item) => item.number !== issue.number)
|
||||
.filter((item) => String(item.title || "").startsWith(`${report.titleId} `))
|
||||
.filter((item) => {
|
||||
const parsed = helpers.parseIssueTitle(item.title || "");
|
||||
return parsed && parsed.titleId === report.titleId;
|
||||
})
|
||||
.sort((left, right) => left.number - right.number)[0];
|
||||
|
||||
let canonicalIssueUrl = issue.html_url;
|
||||
|
||||
@@ -137,9 +137,14 @@ function parseIssueTitle(title) {
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
let gameName = match[2].trim();
|
||||
const wrapped = gameName.match(/^\[(.+)\]$/);
|
||||
if (wrapped) {
|
||||
gameName = wrapped[1].trim();
|
||||
}
|
||||
return {
|
||||
titleId: match[1].toUpperCase(),
|
||||
gameName: match[2].trim(),
|
||||
gameName,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user