From 810c896f071df164a7c7b1af6714e6fe8f7509e1 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 4 Dec 2026 00:16:30 +1100 Subject: [PATCH 1/3] Ask for origin of issues and PRs --- .github/ISSUE_TEMPLATE/ISSUE_REPORT.md | 74 --------------------- .github/ISSUE_TEMPLATE/ISSUE_REPORT.yml | 88 +++++++++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 7 +- 3 files changed, 94 insertions(+), 75 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/ISSUE_REPORT.md create mode 100644 .github/ISSUE_TEMPLATE/ISSUE_REPORT.yml 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..6960b2f9456 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml @@ -0,0 +1,88 @@ +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 the issue + - A human found this while using Pillow + - A human was looking at source code or docs + 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: + + ```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..c966a8af1da 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,9 @@ -Fixes # . +Origin: + +A) Fixes existing issue # +B) Addresses a scenario a human found while using Pillow +C) Addresses a scenario a human found when looking at source code or docs +D) AI found a possible change Changes proposed in this pull request: From d38d4faf830b931689f7a0f07863b44f037793be Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 4 Dec 2026 12:39:56 +1100 Subject: [PATCH 2/3] Update options based on review --- .github/ISSUE_TEMPLATE/ISSUE_REPORT.yml | 7 ++++--- .github/PULL_REQUEST_TEMPLATE.md | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml index 6960b2f9456..2ae4ea03530 100644 --- a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml +++ b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml @@ -7,9 +7,10 @@ body: label: Origin description: Why are you reporting this? options: - - AI found the issue - - A human found this while using Pillow - - A human was looking at source code or docs + - 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 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c966a8af1da..d0fd8b1e29b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,9 +1,10 @@ Origin: A) Fixes existing issue # -B) Addresses a scenario a human found while using Pillow -C) Addresses a scenario a human found when looking at source code or docs -D) AI found a possible change +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 Changes proposed in this pull request: From d12f4e2e91adcfb2ea2d418e35b9a52f0535f570 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 4 Dec 2026 12:51:06 +1100 Subject: [PATCH 3/3] Request AI specifics --- .github/ISSUE_TEMPLATE/ISSUE_REPORT.yml | 7 +++++++ .github/PULL_REQUEST_TEMPLATE.md | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml index 2ae4ea03530..1d0f08f6dae 100644 --- a/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml +++ b/.github/ISSUE_TEMPLATE/ISSUE_REPORT.yml @@ -63,6 +63,13 @@ body: * 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: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d0fd8b1e29b..099740811e4 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,6 +6,12 @@ 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: *