mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
docs: revise bug report template for improved instructions (#2181)
Updated bug report template for clarity and detail. --------- Signed-off-by: Kévin Dunglas <kevin@dunglas.fr> Co-authored-by: henderkes <m@pyc.ac>
This commit is contained in:
@@ -4,10 +4,10 @@ root = true
|
|||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
[*.sh]
|
[*.{sh,Dockerfile}]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
tab_width = 4
|
tab_width = 4
|
||||||
|
|
||||||
[*.Dockerfile]
|
[*.{yaml,yml}]
|
||||||
indent_style = tab
|
indent_style = space
|
||||||
tab_width = 4
|
tab_width = 2
|
||||||
|
|||||||
17
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
17
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
@@ -7,16 +7,18 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
Thanks for taking the time to fill out this bug report!
|
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/)
|
Before submitting, please ensure that your issue:
|
||||||
(especially if you use XDebug or Tideways), and that is has not
|
|
||||||
[already been reported](https://github.com/php/frankenphp/issues).
|
* 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
|
- type: textarea
|
||||||
id: what-happened
|
id: what-happened
|
||||||
attributes:
|
attributes:
|
||||||
label: What happened?
|
label: What happened?
|
||||||
description: |
|
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.
|
Provide us with some step-by-step instructions to reproduce the issue.
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -29,8 +31,9 @@ body:
|
|||||||
- Docker (Debian Trixie)
|
- Docker (Debian Trixie)
|
||||||
- Docker (Debian Bookworm)
|
- Docker (Debian Bookworm)
|
||||||
- Docker (Alpine)
|
- Docker (Alpine)
|
||||||
|
- apk packages
|
||||||
- deb packages
|
- deb packages
|
||||||
- rpm packages
|
- RPM packages
|
||||||
- Static binary
|
- Static binary
|
||||||
- Custom (tell us more in the description)
|
- Custom (tell us more in the description)
|
||||||
default: 0
|
default: 0
|
||||||
@@ -55,6 +58,8 @@ body:
|
|||||||
options:
|
options:
|
||||||
- GNU/Linux
|
- GNU/Linux
|
||||||
- macOS
|
- macOS
|
||||||
|
- Windows
|
||||||
|
- FreeBSD
|
||||||
- Other (tell us more in the description)
|
- Other (tell us more in the description)
|
||||||
default: 0
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
|
|||||||
42
.github/workflows/wrap-issue-details.yaml
vendored
Normal file
42
.github/workflows/wrap-issue-details.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Wrap Issue Content
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, edited]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
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("<details>")) return match;
|
||||||
|
|
||||||
|
return `${header}\n\n<details>\n<summary>${summary}</summary>\n\n${trimmed}\n\n</details>\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
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user