Workflow Update
This commit is contained in:
parent
ca2dd380a1
commit
92bd80df10
7
.github/workflows/changelog-pr.yaml
vendored
7
.github/workflows/changelog-pr.yaml
vendored
@ -112,9 +112,7 @@ jobs:
|
||||
|
||||
|
||||
if (pr.user.login.includes("push-app-to-main[bot]")) {
|
||||
|
||||
const scriptName = pr.title;
|
||||
|
||||
try {
|
||||
const { data: relatedIssues } = await github.rest.issues.listForRepo({
|
||||
owner: context.repo.owner,
|
||||
@ -123,12 +121,9 @@ jobs:
|
||||
labels: ["Started Migration To ProxmoxVE"],
|
||||
per_page: 5
|
||||
});
|
||||
|
||||
const matchingIssue = relatedIssues.find(issue =>
|
||||
issue.title.toLowerCase().includes(scriptName.toLowerCase())
|
||||
|
||||
);
|
||||
|
||||
if (matchingIssue) {
|
||||
const issueAuthor = matchingIssue.user.login;
|
||||
const issueAuthorUrl = `https://github.com/${issueAuthor}`;
|
||||
@ -139,7 +134,7 @@ jobs:
|
||||
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
|
||||
}
|
||||
}
|
||||
|
||||
console.log(categorizedPRs);
|
||||
for (const category of categorizedPRs) {
|
||||
if (category.labels.some(label => prLabels.includes(label))) {
|
||||
if (category.subCategories && category.subCategories.length > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user