diff --git a/.github/workflows/changelog-pr.yaml b/.github/workflows/changelog-pr.yaml index 37d7eba..3f3f3d1 100644 --- a/.github/workflows/changelog-pr.yaml +++ b/.github/workflows/changelog-pr.yaml @@ -107,37 +107,38 @@ jobs: for (const pr of filteredPRs) { 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.includes("push-app-to-main[bot]")) { + const scriptName = pr.title; try { const { data: relatedIssues } = await github.rest.issues.listForRepo({ owner: context.repo.owner, repo: "ProxmoxVED", state: "all", - labels: ["Started Migration To ProxmoxVE"], - per_page: 5 + labels: ["Started Migration To ProxmoxVE"] }); + const matchingIssue = relatedIssues.find(issue => issue.title.toLowerCase().includes(scriptName.toLowerCase()) ); + if (matchingIssue) { const issueAuthor = matchingIssue.user.login; const issueAuthorUrl = `https://github.com/${issueAuthor}`; prNote = `- ${pr.title} [@${issueAuthor}](${issueAuthorUrl}) ([#${pr.number}](${pr.html_url}))`; } + else { + prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; + } } catch (error) { console.error(`Error fetching related issues: ${error}`); prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`; } + }else{ + prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`; } - if (prLabels.includes("new script")) { const newScriptCategory = categorizedPRs.find(category => category.title === "New Scripts" || category.labels.includes("new script")); diff --git a/install/openproject-install.sh b/install/openproject-install.sh index 4372d70..20c6c0e 100644 --- a/install/openproject-install.sh +++ b/install/openproject-install.sh @@ -15,9 +15,6 @@ update_os msg_info "Installing Dependencies" $STD apt-get install -y \ - sudo \ - mc \ - curl \ apt-transport-https \ ca-certificates \ gpg diff --git a/install/qbittorrent-install.sh b/install/qbittorrent-install.sh index 05270f3..6d3963c 100644 --- a/install/qbittorrent-install.sh +++ b/install/qbittorrent-install.sh @@ -24,7 +24,7 @@ msg_info "Setup qBittorrent-nox" FULLRELEASE=$(curl -s https://api.github.com/repos/userdocs/qbittorrent-nox-static/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(echo $FULLRELEASE | cut -c 9-13) mkdir -p /opt/qbittorrent -curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULLRELEASE}/x86_64-qbittorrent-nox -o /opt/qbittorrent/qbittorrent-nox" +curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULLRELEASE}/x86_64-qbittorrent-nox" -o /opt/qbittorrent/qbittorrent-nox chmod +x /opt/qbittorrent/qbittorrent-nox mkdir -p $HOME/.config/qBittorrent/ cat <$HOME/.config/qBittorrent/qBittorrent.conf