Workflow Update
This commit is contained in:
parent
c6c63faae5
commit
1352952282
6
.github/workflows/changelog-pr.yaml
vendored
6
.github/workflows/changelog-pr.yaml
vendored
@ -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}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user