diff --git a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.md b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.md deleted file mode 100644 index ea4c0e92b8e..00000000000 --- a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: Issue report -about: Create a report to help us improve Pillow ---- - - - -### What did you do? - -### What did you expect to happen? - -### What actually happened? - -### What are your OS, Python and Pillow versions? - -* OS: -* Python: -* Pillow: - -```text -Please paste here the output of running: - -python3 -m PIL.report -or -python3 -m PIL --report - -Or the output of the following Python code: - -from PIL import report -# or -from PIL import features -features.pilinfo(supported_formats=False) -``` - - - -```python -code goes here -``` diff --git a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml new file mode 100644 index 00000000000..1d0f08f6dae --- /dev/null +++ b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml @@ -0,0 +1,96 @@ +name: Issue report +description: Create a report to help us improve Pillow +body: + - type: dropdown + id: origin + attributes: + label: Origin + description: Why are you reporting this? + options: + - AI found this because I asked it to find issues + - AI found this while I was using Pillow + - I found it myself (without AI) while looking at source code or docs + - I found it myself (without AI) while using Pillow + validations: + required: true + - type: textarea + id: description + attributes: + label: Add a description + value: | + + + ### What did you do? + + ### What did you expect to happen? + + ### What actually happened? + + ### What are your OS, Python and Pillow versions? + + * OS: + * Python: + * Pillow: + + + ### AI-generated + My issue was generated by AI, as disclosed below: + - AI Tools: `[e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.]` + - LLMs and versions: `[e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.]` + - Prompts: `[Summarize the key prompts or instructions given to the AI tools]` + + ```text + Please paste here the output of running: + + python3 -m PIL.report + or + python3 -m PIL --report + + Or the output of the following Python code: + + from PIL import report + # or + from PIL import features + features.pilinfo(supported_formats=False) + ``` + + + + ```python + code goes here + ``` diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 8413f29d3cc..099740811e4 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,16 @@ -Fixes # . +Origin: + +A) Fixes existing issue # +B) AI found a possible change because I asked it do so +C) AI found a possible change while I was using Pillow +D) Addresses a scenario I found (without AI) when looking at source code or docs +E) Addresses a scenario I found (without AI) while using Pillow + + +My contribution includes AI-generated content, as disclosed below: + - AI Tools: `[e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.]` + - LLMs and versions: `[e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.]` + - Prompts: `[Summarize the key prompts or instructions given to the AI tools]` Changes proposed in this pull request: