mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-12-03 21:38:08 +01:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
026b5197cd | ||
|
|
5e0c8163ba | ||
|
|
0d581f318b | ||
|
|
e56e3d3d69 |
No files matched your search
+3
-1
@@ -1,6 +1,8 @@
|
||||
name: Close Matching Issue on PR Merge
|
||||
# pull_request_target so merged fork PRs get the secrets too. No PR code runs:
|
||||
# the checkout is the merge commit on main.
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types:
|
||||
- closed
|
||||
|
||||
|
||||
+17
-10
@@ -1,6 +1,6 @@
|
||||
name: Record closed PHP drift PR
|
||||
name: Record closed drift PR
|
||||
|
||||
# The drift check opens one PR per script and treats a closed one as a verdict:
|
||||
# The drift checks open one PR per script and treat a closed one as a verdict:
|
||||
# that bump is not proposed again. Record it on the report so the decision is
|
||||
# visible there.
|
||||
|
||||
@@ -13,7 +13,9 @@ jobs:
|
||||
if: >
|
||||
github.repository == 'community-scripts/ProxmoxVE' &&
|
||||
github.event.pull_request.merged == false &&
|
||||
startsWith(github.event.pull_request.head.ref, 'php-drift/')
|
||||
(startsWith(github.event.pull_request.head.ref, 'node-drift/') ||
|
||||
startsWith(github.event.pull_request.head.ref, 'php-drift/') ||
|
||||
startsWith(github.event.pull_request.head.ref, 'python-drift/'))
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
@@ -25,10 +27,15 @@ jobs:
|
||||
const owner = context.repo.owner;
|
||||
const repo = context.repo.repo;
|
||||
|
||||
// php-drift/<slug>-<from>-to-<to>
|
||||
const m = pr.head.ref.match(/^php-drift\/(.+)-(\d+\.\d+)-to-(\d+\.\d+)$/);
|
||||
// <kind>-drift/<slug>-<from>-to-<to>
|
||||
const m = pr.head.ref.match(/^(node|php|python)-drift\/(.+)-(\d+(?:\.\d+)?)-to-(\d+(?:\.\d+)?)$/);
|
||||
if (!m) return;
|
||||
const [, slug, from, to] = m;
|
||||
const [, kind, slug, from, to] = m;
|
||||
const [report, runtime] = {
|
||||
node: ['Node.js', 'Node'],
|
||||
php: ['PHP', 'PHP'],
|
||||
python: ['Python', 'Python'],
|
||||
}[kind];
|
||||
|
||||
// A close by the stale bot is a lapsed review, not a decision on
|
||||
// the bump, and the drift check reopens those.
|
||||
@@ -38,15 +45,15 @@ jobs:
|
||||
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
|
||||
});
|
||||
const issue = issues.data.find(
|
||||
(i) => !i.pull_request && i.title === '[Automated] PHP Version Drift Report',
|
||||
(i) => !i.pull_request && i.title === `[Automated] ${report} Version Drift Report`,
|
||||
);
|
||||
if (!issue) return;
|
||||
|
||||
const body = stale
|
||||
? `\`${slug}\` — PR #${pr.number} (PHP ${from} → ${to}) was closed as stale. `
|
||||
? `\`${slug}\` — PR #${pr.number} (${runtime} ${from} → ${to}) was closed as stale. `
|
||||
+ `No decision was recorded, so the next drift check opens it again.`
|
||||
: `\`${slug}\` — PR #${pr.number} (PHP ${from} → ${to}) was closed without merging. `
|
||||
+ `The script keeps PHP ${from} and this bump will not be proposed again. `
|
||||
: `\`${slug}\` — PR #${pr.number} (${runtime} ${from} → ${to}) was closed without merging. `
|
||||
+ `The script keeps ${runtime} ${from} and this bump will not be proposed again. `
|
||||
+ `If it was closed by mistake, reopen the PR.`;
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
Generated
+2
-2
@@ -70,8 +70,8 @@ jobs:
|
||||
|
||||
page++;
|
||||
|
||||
// GitHub search API limit: max 10000 results (100 pages * 100) - temporarily increased
|
||||
if (page > 100) break;
|
||||
// Search returns at most 1000 results; the rest is locked on the next runs
|
||||
if (page > 10) break;
|
||||
}
|
||||
|
||||
console.log(`Total locked: ${totalLocked} issues/PRs`);
|
||||
-55
@@ -1,55 +0,0 @@
|
||||
name: Record closed Node.js drift PR
|
||||
|
||||
# The drift check opens one PR per script and treats a closed one as a verdict:
|
||||
# that bump is not proposed again. That decision is invisible on the report
|
||||
# unless it is written there, so record it as a comment naming the script.
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
|
||||
jobs:
|
||||
record:
|
||||
if: >
|
||||
github.repository == 'community-scripts/ProxmoxVE' &&
|
||||
github.event.pull_request.merged == false &&
|
||||
startsWith(github.event.pull_request.head.ref, 'node-drift/')
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
steps:
|
||||
- uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const pr = context.payload.pull_request;
|
||||
const owner = context.repo.owner;
|
||||
const repo = context.repo.repo;
|
||||
|
||||
// node-drift/<slug>-<from>-to-<to>
|
||||
const m = pr.head.ref.match(/^node-drift\/(.+)-(\d+)-to-(\d+)$/);
|
||||
if (!m) return;
|
||||
const [, slug, from, to] = m;
|
||||
|
||||
// A close by the stale bot is a lapsed review, not a decision on
|
||||
// the bump, and the drift check reopens those. Saying "declined"
|
||||
// here would contradict it.
|
||||
const stale = pr.labels.some((l) => l.name === 'stale');
|
||||
|
||||
const issues = await github.rest.issues.listForRepo({
|
||||
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
|
||||
});
|
||||
const issue = issues.data.find(
|
||||
(i) => !i.pull_request && i.title === '[Automated] Node.js Version Drift Report',
|
||||
);
|
||||
if (!issue) return;
|
||||
|
||||
const body = stale
|
||||
? `\`${slug}\` — PR #${pr.number} (Node ${from} → ${to}) was closed as stale. `
|
||||
+ `No decision was recorded, so the next drift check opens it again.`
|
||||
: `\`${slug}\` — PR #${pr.number} (Node ${from} → ${to}) was closed without merging. `
|
||||
+ `The script keeps Node ${from} and this bump will not be proposed again. `
|
||||
+ `If it was closed by mistake, reopen the PR.`;
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
owner, repo, issue_number: issue.number, body,
|
||||
});
|
||||
-54
@@ -1,54 +0,0 @@
|
||||
name: Record closed Python drift PR
|
||||
|
||||
# The drift check opens one PR per script and treats a closed one as a verdict:
|
||||
# that bump is not proposed again. Record it on the report so the decision is
|
||||
# visible there.
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
|
||||
jobs:
|
||||
record:
|
||||
if: >
|
||||
github.repository == 'community-scripts/ProxmoxVE' &&
|
||||
github.event.pull_request.merged == false &&
|
||||
startsWith(github.event.pull_request.head.ref, 'python-drift/')
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
steps:
|
||||
- uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const pr = context.payload.pull_request;
|
||||
const owner = context.repo.owner;
|
||||
const repo = context.repo.repo;
|
||||
|
||||
// python-drift/<slug>-<from>-to-<to>
|
||||
const m = pr.head.ref.match(/^python-drift\/(.+)-(\d+\.\d+)-to-(\d+\.\d+)$/);
|
||||
if (!m) return;
|
||||
const [, slug, from, to] = m;
|
||||
|
||||
// A close by the stale bot is a lapsed review, not a decision on
|
||||
// the bump, and the drift check reopens those.
|
||||
const stale = pr.labels.some((l) => l.name === 'stale');
|
||||
|
||||
const issues = await github.rest.issues.listForRepo({
|
||||
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
|
||||
});
|
||||
const issue = issues.data.find(
|
||||
(i) => !i.pull_request && i.title === '[Automated] Python Version Drift Report',
|
||||
);
|
||||
if (!issue) return;
|
||||
|
||||
const body = stale
|
||||
? `\`${slug}\` — PR #${pr.number} (Python ${from} → ${to}) was closed as stale. `
|
||||
+ `No decision was recorded, so the next drift check opens it again.`
|
||||
: `\`${slug}\` — PR #${pr.number} (Python ${from} → ${to}) was closed without merging. `
|
||||
+ `The script keeps Python ${from} and this bump will not be proposed again. `
|
||||
+ `If it was closed by mistake, reopen the PR.`;
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
owner, repo, issue_number: issue.number, body,
|
||||
});
|
||||
@@ -590,6 +590,38 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-12-03
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- BentoPDF: use relative redirects in nginx [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19284](https://github.com/community-scripts/ProxmoxVE/pull/19284))
|
||||
- TeddyCloud: Include custom images in backup [@Sab44](https://github.com/Sab44) ([#19276](https://github.com/community-scripts/ProxmoxVE/pull/19276))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- AFFiNE: run one server, update to 0.27.4 [@MickLesk](https://github.com/MickLesk) ([#19283](https://github.com/community-scripts/ProxmoxVE/pull/19283))
|
||||
- Docker/NPMplus (Alpine): use docker-cli-compose instead of a downloaded binary [@MickLesk](https://github.com/MickLesk) ([#19278](https://github.com/community-scripts/ProxmoxVE/pull/19278))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- setup_docker: install docker-compose-plugin only next to docker-ce [@MickLesk](https://github.com/MickLesk) ([core#335](https://github.com/community-scripts/core/pull/335))
|
||||
- core: Stop the run when a disabled script is started [@MickLesk](https://github.com/MickLesk) ([core#330](https://github.com/community-scripts/core/pull/330))
|
||||
- docker: remove legacy docker-compose binaries that shadow docker-compose-plugin [@MickLesk](https://github.com/MickLesk) ([core#334](https://github.com/community-scripts/core/pull/334))
|
||||
- tools: add check_for_gl_tag [@MickLesk](https://github.com/MickLesk) ([core#332](https://github.com/community-scripts/core/pull/332))
|
||||
- core: say what curl said when a download fails [@MickLesk](https://github.com/MickLesk) ([core#331](https://github.com/community-scripts/core/pull/331))
|
||||
- feat: ask VMs for tags, delete protection and the DNS search domain [@MickLesk](https://github.com/MickLesk) ([core#329](https://github.com/community-scripts/core/pull/329))
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- ci: fix fork merges and issue locking, merge the drift-closed workflows [@MickLesk](https://github.com/MickLesk) ([#19286](https://github.com/community-scripts/ProxmoxVE/pull/19286))
|
||||
|
||||
### 📂 Github
|
||||
|
||||
- fix(ci): daily release fixes (drop Frontend, keep days apart) [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19274](https://github.com/community-scripts/ProxmoxVE/pull/19274))
|
||||
- fix(ci): set GH_REPO in the daily release step [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19272](https://github.com/community-scripts/ProxmoxVE/pull/19272))
|
||||
|
||||
## 2026-12-02
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -74,6 +74,7 @@ server {
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
server_name _;
|
||||
absolute_redirect off;
|
||||
ssl_certificate /etc/ssl/certs/bentopdf-selfsigned.crt;
|
||||
ssl_certificate_key /etc/ssl/private/bentopdf-selfsigned.key;
|
||||
root /opt/bentopdf/dist;
|
||||
|
||||
@@ -52,6 +52,7 @@ server {
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
server_name _;
|
||||
absolute_redirect off;
|
||||
ssl_certificate /etc/ssl/certs/bentopdf-selfsigned.crt;
|
||||
ssl_certificate_key /etc/ssl/private/bentopdf-selfsigned.key;
|
||||
root /opt/bentopdf/dist;
|
||||
|
||||
Reference in new issue
Block a user