mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-02 17:05:55 +01:00
Compare commits
9 Commits
new_script
...
fix/booklo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a2a769307 | ||
|
|
1652431954 | ||
|
|
77c5c398a1 | ||
|
|
0d6f5560ff | ||
|
|
2f7c7c4ea7 | ||
|
|
b7f94befba | ||
|
|
dc3029822b | ||
|
|
3fb677d768 | ||
|
|
e2a83549cb |
5
.github/workflows/check-node-versions.yml
generated
vendored
5
.github/workflows/check-node-versions.yml
generated
vendored
@@ -214,11 +214,12 @@ jobs:
|
|||||||
total=$((total + 1))
|
total=$((total + 1))
|
||||||
slug=$(basename "$script" | sed 's/-install\.sh$//')
|
slug=$(basename "$script" | sed 's/-install\.sh$//')
|
||||||
|
|
||||||
# Extract Source URL (GitHub only)
|
# Extract Source URL (GitHub only) from the "# Source:" line
|
||||||
# Supports both:
|
# Supports both:
|
||||||
# # Source: https://github.com/owner/repo
|
# # Source: https://github.com/owner/repo
|
||||||
# # Source: https://example.com | Github: https://github.com/owner/repo
|
# # Source: https://example.com | Github: https://github.com/owner/repo
|
||||||
source_url=$(head -20 "$script" | grep -oP 'https://github\.com/[^\s|]+' | head -1 || echo "")
|
# NOTE: Must filter for "# Source:" line first to avoid matching the License URL
|
||||||
|
source_url=$(head -20 "$script" | grep -i '# Source:' | grep -oP 'https://github\.com/[^\s|]+' | head -1 || echo "")
|
||||||
if [[ -z "$source_url" ]]; then
|
if [[ -z "$source_url" ]]; then
|
||||||
report_lines+=("| \`$slug\` | — | — | — | — | ⏭️ No GitHub source |")
|
report_lines+=("| \`$slug\` | — | — | — | — | ⏭️ No GitHub source |")
|
||||||
continue
|
continue
|
||||||
|
|||||||
119
.github/workflows/close-new-script-prs.yml
generated
vendored
Normal file
119
.github/workflows/close-new-script-prs.yml
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
name: Close Unauthorized New Script PRs
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
branches: ["main"]
|
||||||
|
types: [opened, labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-new-script:
|
||||||
|
if: github.repository == 'community-scripts/ProxmoxVE'
|
||||||
|
runs-on: coolify-runner
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Close PR if unauthorized new script submission
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const pr = context.payload.pull_request;
|
||||||
|
const prNumber = pr.number;
|
||||||
|
const author = pr.user.login;
|
||||||
|
const authorType = pr.user.type; // "User" or "Bot"
|
||||||
|
const owner = context.repo.owner;
|
||||||
|
const repo = context.repo.repo;
|
||||||
|
|
||||||
|
// --- Only act on PRs with the "new script" label ---
|
||||||
|
const labels = pr.labels.map(l => l.name);
|
||||||
|
if (!labels.includes("new script")) {
|
||||||
|
core.info(`PR #${prNumber} does not have "new script" label — skipping.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- Allow our bots ---
|
||||||
|
const allowedBots = [
|
||||||
|
"push-app-to-main[bot]",
|
||||||
|
"push-app-to-main",
|
||||||
|
];
|
||||||
|
|
||||||
|
if (allowedBots.includes(author)) {
|
||||||
|
core.info(`PR #${prNumber} by allowed bot "${author}" — skipping.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- Check if author is a member of the contributor team ---
|
||||||
|
const teamSlug = "contributor";
|
||||||
|
let isMember = false;
|
||||||
|
|
||||||
|
try {
|
||||||
|
const { status } = await github.rest.teams.getMembershipForUserInOrg({
|
||||||
|
org: owner,
|
||||||
|
team_slug: teamSlug,
|
||||||
|
username: author,
|
||||||
|
});
|
||||||
|
// status 200 means the user is a member (active or pending)
|
||||||
|
isMember = true;
|
||||||
|
} catch (error) {
|
||||||
|
if (error.status === 404) {
|
||||||
|
isMember = false;
|
||||||
|
} else {
|
||||||
|
core.warning(`Could not check team membership for ${author}: ${error.message}`);
|
||||||
|
// Fallback: check org membership
|
||||||
|
try {
|
||||||
|
await github.rest.orgs.checkMembershipForUser({
|
||||||
|
org: owner,
|
||||||
|
username: author,
|
||||||
|
});
|
||||||
|
isMember = true;
|
||||||
|
} catch {
|
||||||
|
isMember = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isMember) {
|
||||||
|
core.info(`PR #${prNumber} by contributor "${author}" — skipping.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- Unauthorized: close the PR with a comment ---
|
||||||
|
core.info(`Closing PR #${prNumber} by "${author}" — not a contributor or allowed bot.`);
|
||||||
|
|
||||||
|
const comment = [
|
||||||
|
`👋 Hi @${author},`,
|
||||||
|
``,
|
||||||
|
`Thank you for your interest in contributing a new script!`,
|
||||||
|
``,
|
||||||
|
`However, **new scripts must first be submitted to our development repository** for testing and review before they can be merged here.`,
|
||||||
|
``,
|
||||||
|
`> 🛑 New scripts must be submitted to [**ProxmoxVED**](https://github.com/community-scripts/ProxmoxVED) for testing.`,
|
||||||
|
`> PRs without prior testing will be closed.`,
|
||||||
|
``,
|
||||||
|
`Please open your PR at **https://github.com/community-scripts/ProxmoxVED** instead.`,
|
||||||
|
`Once your script has been tested and approved there, it will be pushed to this repository automatically.`,
|
||||||
|
``,
|
||||||
|
`This PR will now be closed. Thank you for understanding! 🙏`,
|
||||||
|
].join("\n");
|
||||||
|
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
owner,
|
||||||
|
repo,
|
||||||
|
issue_number: prNumber,
|
||||||
|
body: comment,
|
||||||
|
});
|
||||||
|
|
||||||
|
await github.rest.pulls.update({
|
||||||
|
owner,
|
||||||
|
repo,
|
||||||
|
pull_number: prNumber,
|
||||||
|
state: "closed",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Add a label to indicate why it was closed
|
||||||
|
await github.rest.issues.addLabels({
|
||||||
|
owner,
|
||||||
|
repo,
|
||||||
|
issue_number: prNumber,
|
||||||
|
labels: ["not a script issue"],
|
||||||
|
});
|
||||||
@@ -415,10 +415,18 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- hotfix: overseer version [@CrazyWolf13](https://github.com/CrazyWolf13) ([#12366](https://github.com/community-scripts/ProxmoxVE/pull/12366))
|
||||||
|
|
||||||
- #### ✨ New Features
|
- #### ✨ New Features
|
||||||
|
|
||||||
- [QOL] Immich: add warning regarding library compilation time [@vhsdream](https://github.com/vhsdream) ([#12345](https://github.com/community-scripts/ProxmoxVE/pull/12345))
|
- [QOL] Immich: add warning regarding library compilation time [@vhsdream](https://github.com/vhsdream) ([#12345](https://github.com/community-scripts/ProxmoxVE/pull/12345))
|
||||||
|
|
||||||
|
### 📂 Github
|
||||||
|
|
||||||
|
- github: add workflow to autom. close unauthorized new-script PRs [@MickLesk](https://github.com/MickLesk) ([#12356](https://github.com/community-scripts/ProxmoxVE/pull/12356))
|
||||||
|
|
||||||
## 2026-02-25
|
## 2026-02-25
|
||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ function update_script() {
|
|||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
setup_yq
|
setup_yq
|
||||||
|
ensure_dependencies ffmpeg
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop booklore
|
systemctl stop booklore
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$HOME/.overseerr" ]] && [[ "$(printf '%s\n' "1.34.0" "$(cat "$HOME/.overseerr")" | sort -V | head -n1)" == "1.35.0" ]]; then
|
if [[ -f "$HOME/.overseerr" ]] && [[ "$(printf '%s\n' "1.35.0" "$(cat "$HOME/.overseerr")" | sort -V | head -n1)" == "1.35.0" ]]; then
|
||||||
echo
|
echo
|
||||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
echo "Overseerr v1.34.0 detected."
|
echo "Overseerr v1.34.0 detected."
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"generated": "2026-02-26T12:14:56Z",
|
"generated": "2026-02-26T18:16:20Z",
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"slug": "2fauth",
|
"slug": "2fauth",
|
||||||
@@ -830,9 +830,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "manyfold",
|
"slug": "manyfold",
|
||||||
"repo": "manyfold3d/manyfold",
|
"repo": "manyfold3d/manyfold",
|
||||||
"version": "v0.133.0",
|
"version": "v0.133.1",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-25T10:40:26Z"
|
"date": "2026-02-26T15:50:34Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "mealie",
|
"slug": "mealie",
|
||||||
@@ -970,9 +970,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "oauth2-proxy",
|
"slug": "oauth2-proxy",
|
||||||
"repo": "oauth2-proxy/oauth2-proxy",
|
"repo": "oauth2-proxy/oauth2-proxy",
|
||||||
"version": "v7.14.2",
|
"version": "v7.14.3",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-01-18T00:26:09Z"
|
"date": "2026-02-26T14:10:21Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "ombi",
|
"slug": "ombi",
|
||||||
@@ -1061,9 +1061,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "paperless-gpt",
|
"slug": "paperless-gpt",
|
||||||
"repo": "icereed/paperless-gpt",
|
"repo": "icereed/paperless-gpt",
|
||||||
"version": "v0.25.0",
|
"version": "v0.25.1",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-16T08:31:48Z"
|
"date": "2026-02-26T14:50:11Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "paperless-ngx",
|
"slug": "paperless-ngx",
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y ffmpeg
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
JAVA_VERSION="25" setup_java
|
JAVA_VERSION="25" setup_java
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
setup_mariadb
|
setup_mariadb
|
||||||
|
|||||||
Reference in New Issue
Block a user