From f862ba40c7bdf38748277365e9de4126fb2bc988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Wed, 11 Feb 2026 13:53:07 +0100 Subject: [PATCH 1/6] docs: revise bug report template for improved instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated bug report template for clarity and detail. Signed-off-by: Kévin Dunglas --- .github/ISSUE_TEMPLATE/bug_report.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index f2645d0c43..a36fa78d0b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -7,16 +7,18 @@ body: attributes: value: | Thanks for taking the time to fill out this bug report! - Before submitting a bug, please double-check that your problem [is not - a known issue](https://frankenphp.dev/docs/known-issues/) - (especially if you use XDebug or Tideways), and that is has not - [already been reported](https://github.com/php/frankenphp/issues). + + Before submitting, please ensure that your issue: + + * Is not [a known issue](https://frankenphp.dev/docs/known-issues/). + * Has not [already been reported](https://github.com/php/frankenphp/issues). + * Is not caused by a dependency (like Caddy or PHP itself). If the issue is with a dependency, please report it to the upstream project directly. - type: textarea id: what-happened attributes: label: What happened? description: | - Tell us what you do, what you get and what you expected. + Tell us what you do, what you get, and what you expected. Provide us with some step-by-step instructions to reproduce the issue. validations: required: true @@ -30,7 +32,7 @@ body: - Docker (Debian Bookworm) - Docker (Alpine) - deb packages - - rpm packages + - RPM packages - Static binary - Custom (tell us more in the description) default: 0 @@ -55,6 +57,8 @@ body: options: - GNU/Linux - macOS + - Windows + - FreeBSD - Other (tell us more in the description) default: 0 validations: From 160a0fe9befc20ec31911a2f06f12fa460b89f8e Mon Sep 17 00:00:00 2001 From: henderkes Date: Sat, 14 Feb 2026 17:18:14 +0700 Subject: [PATCH 2/6] suggestion #1 --- .github/ISSUE_TEMPLATE/bug_report.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index a36fa78d0b..dc6416261c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -7,7 +7,7 @@ body: attributes: value: | Thanks for taking the time to fill out this bug report! - + Before submitting, please ensure that your issue: * Is not [a known issue](https://frankenphp.dev/docs/known-issues/). @@ -31,6 +31,7 @@ body: - Docker (Debian Trixie) - Docker (Debian Bookworm) - Docker (Alpine) + - apk packages - deb packages - RPM packages - Static binary From 382a2975d9d9f497bb461f0ccfd3622b161137b0 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Sat, 14 Feb 2026 17:49:53 +0700 Subject: [PATCH 3/6] suggestion #2 --- .editorconfig | 8 +++---- .github/workflows/wrap-phpinfo-details.yaml | 23 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/wrap-phpinfo-details.yaml diff --git a/.editorconfig b/.editorconfig index ff8d338dcc..e7eca06a98 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,10 +4,10 @@ root = true end_of_line = lf insert_final_newline = true -[*.sh] +[*.{sh,Dockerfile}] indent_style = tab tab_width = 4 -[*.Dockerfile] -indent_style = tab -tab_width = 4 +[*.{yaml,yml}] +indent_style = space +tab_width = 2 \ No newline at end of file diff --git a/.github/workflows/wrap-phpinfo-details.yaml b/.github/workflows/wrap-phpinfo-details.yaml new file mode 100644 index 0000000000..23bc0550e9 --- /dev/null +++ b/.github/workflows/wrap-phpinfo-details.yaml @@ -0,0 +1,23 @@ +name: Wrap PHP Info +on: + issues: + types: [opened, edited] + +jobs: + wrap_content: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v7 + with: + script: | + const body = context.payload.issue.body; + const marker = "### PHP configuration"; + if (body.includes(marker) && !body.includes("
")) { + const newBody = body.replace(marker, `${marker}\n\n
\nphpinfo() output\n\n`).concat("\n\n
"); + github.rest.issues.update({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: newBody + }); + } From b20fbfacb625fb83c76646c17ffe59306d6e32c9 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Sat, 14 Feb 2026 17:56:58 +0700 Subject: [PATCH 4/6] wrap log output too --- .github/workflows/wrap-issue-details.yaml | 39 +++++++++++++++++++++ .github/workflows/wrap-phpinfo-details.yaml | 23 ------------ 2 files changed, 39 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/wrap-issue-details.yaml delete mode 100644 .github/workflows/wrap-phpinfo-details.yaml diff --git a/.github/workflows/wrap-issue-details.yaml b/.github/workflows/wrap-issue-details.yaml new file mode 100644 index 0000000000..7d1fc7e3af --- /dev/null +++ b/.github/workflows/wrap-issue-details.yaml @@ -0,0 +1,39 @@ +name: Wrap Issue Content +on: + issues: + types: [opened, edited] + +jobs: + wrap_content: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v7 + with: + script: | + const body = context.payload.issue.body; + + const wrapSection = (inputBody, marker, summary) => { + const regex = new RegExp(`(${marker})\\s*([\\s\\S]*?)(?=\\n### |$)`); + + return inputBody.replace(regex, (match, header, content) => { + const trimmed = content.trim(); + if (!trimmed || trimmed.includes("
")) return match; + + return `${header}\n\n
\n${summary}\n\n${trimmed}\n\n
\n`; + }); + }; + + let newBody = body; + newBody = wrapSection(newBody, "### PHP configuration", "phpinfo() output"); + newBody = wrapSection(newBody, "### Relevant log output", "Relevant log output"); + + if (newBody !== body) { + await github.rest.issues.update({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: newBody + }); + } diff --git a/.github/workflows/wrap-phpinfo-details.yaml b/.github/workflows/wrap-phpinfo-details.yaml deleted file mode 100644 index 23bc0550e9..0000000000 --- a/.github/workflows/wrap-phpinfo-details.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Wrap PHP Info -on: - issues: - types: [opened, edited] - -jobs: - wrap_content: - runs-on: ubuntu-latest - steps: - - uses: actions/github-script@v7 - with: - script: | - const body = context.payload.issue.body; - const marker = "### PHP configuration"; - if (body.includes(marker) && !body.includes("
")) { - const newBody = body.replace(marker, `${marker}\n\n
\nphpinfo() output\n\n`).concat("\n\n
"); - github.rest.issues.update({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body: newBody - }); - } From a46bd18008b02669a69b55b014fbabbd69e44d94 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Sat, 14 Feb 2026 17:59:46 +0700 Subject: [PATCH 5/6] make .editorconfig linter happy --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index e7eca06a98..412d0f9382 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,4 +10,4 @@ tab_width = 4 [*.{yaml,yml}] indent_style = space -tab_width = 2 \ No newline at end of file +tab_width = 2 From bfcdb099ace330907c20c26ab5ea7d2dbe4c6ce1 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Sat, 14 Feb 2026 18:05:53 +0700 Subject: [PATCH 6/6] make checkov happy? --- .github/workflows/wrap-issue-details.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/wrap-issue-details.yaml b/.github/workflows/wrap-issue-details.yaml index 7d1fc7e3af..e04b69f088 100644 --- a/.github/workflows/wrap-issue-details.yaml +++ b/.github/workflows/wrap-issue-details.yaml @@ -3,6 +3,9 @@ on: issues: types: [opened, edited] +permissions: + contents: read + jobs: wrap_content: runs-on: ubuntu-latest