Workflow Update

This commit is contained in:
Michel Roegl-Brunner 2025-03-24 13:34:23 +01:00
parent c6c63faae5
commit 1352952282

View File

@ -112,7 +112,7 @@ jobs:
if (pr.user.login.includes("push-app-to-main[bot]")) { if (pr.user.login.includes("push-app-to-main[bot]")) {
console.error("PR created by push-to-main-app");
const scriptName = pr.title; const scriptName = pr.title;
try { try {
@ -123,12 +123,12 @@ jobs:
labels: ["Started Migration To ProxmoxVE"], labels: ["Started Migration To ProxmoxVE"],
per_page: 5 per_page: 5
}); });
console.log(`Related issues: ${JSON.stringify(relatedIssues, null, 2)}`);
const matchingIssue = relatedIssues.find(issue => const matchingIssue = relatedIssues.find(issue =>
issue.title.toLowerCase().includes(scriptName.toLowerCase()) issue.title.toLowerCase().includes(scriptName.toLowerCase())
); );
console.log(`Matching issue: ${JSON.stringify(matchingIssue, null, 2)}`);
if (matchingIssue) { if (matchingIssue) {
const issueAuthor = matchingIssue.user.login; const issueAuthor = matchingIssue.user.login;
const issueAuthorUrl = `https://github.com/${issueAuthor}`; const issueAuthorUrl = `https://github.com/${issueAuthor}`;