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]")) {
|
if (pr.user.login.includes("push-app-to-main[bot]")) {
|
||||||
|
|
||||||
const scriptName = pr.title;
|
const scriptName = pr.title;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { data: relatedIssues } = await github.rest.issues.listForRepo({
|
const { data: relatedIssues } = await github.rest.issues.listForRepo({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
@ -123,12 +121,9 @@ jobs:
|
|||||||
labels: ["Started Migration To ProxmoxVE"],
|
labels: ["Started Migration To ProxmoxVE"],
|
||||||
per_page: 5
|
per_page: 5
|
||||||
});
|
});
|
||||||
|
|
||||||
const matchingIssue = relatedIssues.find(issue =>
|
const matchingIssue = relatedIssues.find(issue =>
|
||||||
issue.title.toLowerCase().includes(scriptName.toLowerCase())
|
issue.title.toLowerCase().includes(scriptName.toLowerCase())
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
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}`;
|
||||||
@ -139,7 +134,7 @@ jobs:
|
|||||||
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
|
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(categorizedPRs);
|
||||||
for (const category of categorizedPRs) {
|
for (const category of categorizedPRs) {
|
||||||
if (category.labels.some(label => prLabels.includes(label))) {
|
if (category.labels.some(label => prLabels.includes(label))) {
|
||||||
if (category.subCategories && category.subCategories.length > 0) {
|
if (category.subCategories && category.subCategories.length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user