Workflow Update
This commit is contained in:
parent
b71f3fa171
commit
04e57a0414
7
.github/workflows/changelog-pr.yaml
vendored
7
.github/workflows/changelog-pr.yaml
vendored
@ -108,10 +108,6 @@ jobs:
|
|||||||
for (const pr of filteredPRs) {
|
for (const pr of filteredPRs) {
|
||||||
const prLabels = pr.labels.map(label => label.name.toLowerCase());
|
const prLabels = pr.labels.map(label => label.name.toLowerCase());
|
||||||
|
|
||||||
let prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
|
|
||||||
|
|
||||||
console.log("Author: " ,pr.user.login);
|
|
||||||
|
|
||||||
if (pr.user.login === "push-app-to-main[bot]") {
|
if (pr.user.login === "push-app-to-main[bot]") {
|
||||||
console.log("Bot detected");
|
console.log("Bot detected");
|
||||||
const scriptName = pr.title;
|
const scriptName = pr.title;
|
||||||
@ -126,6 +122,7 @@ jobs:
|
|||||||
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", matchingIssue);
|
||||||
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}`;
|
||||||
@ -137,6 +134,8 @@ jobs:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (prLabels.includes("new script")) {
|
if (prLabels.includes("new script")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user