Workflow Update
This commit is contained in:
parent
be3ea7ebed
commit
58dfa885c2
8
.github/workflows/changelog-pr.yaml
vendored
8
.github/workflows/changelog-pr.yaml
vendored
@ -108,7 +108,7 @@ 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());
|
||||||
if (pr.user.login.includes("push-app-to-main[bot]")) {
|
if (pr.user.login.includes("push-app-to-main[bot]")) {
|
||||||
console.log("Bot detected");
|
|
||||||
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({
|
||||||
@ -116,13 +116,13 @@ jobs:
|
|||||||
repo: "ProxmoxVED",
|
repo: "ProxmoxVED",
|
||||||
state: "all",
|
state: "all",
|
||||||
labels: ["Started Migration To ProxmoxVE"]
|
labels: ["Started Migration To ProxmoxVE"]
|
||||||
|
per_page: 1
|
||||||
});
|
});
|
||||||
console.log("Related issues", relatedIssues);
|
|
||||||
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}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user