Skip to content

Add a PR template and an AI Policy - #2209

Merged
rgommers merged 6 commits into
python:mainfrom
rgommers:pr-template-and-ai-guidelines
Dec 4, 2026
Merged

rgommers merged 6 commits into
python:mainfrom
rgommers:pr-template-and-ai-guidelines

Conversation

@rgommers

@rgommers rgommers commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

As discussed on gh-2183. We're getting a large amount of AI-generated drive-by PRs, so this will help. I adopted @henryiii's suggestion for a policy verbatim, it is short and gets the key points across.

Closes gh-2183


📚 Documentation preview 📚: https://python-packaging-user-guide--2209.org.readthedocs.build/en/2209/

@rgommers rgommers added the type: maintenance Regular maintenance of the guide, CI and repo label Nov 24, 2026

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I participated in a few discussions in the past I figured I'd leave this here.

These are the pip-tools conversations:

I was hoping to write those in a way that it could be copied w/ minimal modifications across projects and the same is being adopted over @ @aio-libs: https://github.com/orgs/aio-libs/discussions/44. Some of the points have made it into the Ansible AI policy discussion @ https://forum.ansible.com/t/ansible-ai-policy/42642. And some inspiration has been drawn from the Python Devguide.

I'd like to point out that we have a paragraph explicitly explaining that the "good first issue" label is not a good fit for ai slop. I think it's a must have.

I'll invite @sirosen to review this proposal too..

Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread source/contribute.rst Resolved
Comment thread AI_POLICY.rst Resolved
@webknjaz
webknjaz requested review from sirosen and a max review from Copilot November 24, 2026 12:28

This comment was marked as low quality.

@rgommers

Copy link
Copy Markdown
Contributor Author

Copilot started reviewing on behalf of webknjaz 1 hour ago

I think the AI Policy does and should apply to this too - no automated comments. I'm not interested in responding to that to be honest.

@rgommers

Copy link
Copy Markdown
Contributor Author

I'd like to point out that we have a paragraph explicitly explaining that the "good first issue" label is not a good fit for ai slop.

The good-first-issue label is already deleted, see gh-2209.

@rgommers

Copy link
Copy Markdown
Contributor Author

@webknjaz thanks for your thoughts. I'm really hoping to keep it minimal here, and capture the essence we'd collective want as active maintainers. Most importantly "the human is fully responsible". I'd prefer not to make this into a research project about the finer points of various AI policies. Could you please check if this PR captures the essentials you want to see yes or no?

Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread AI_POLICY.md Resolved
Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
@sirosen

sirosen commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Since I was tagged in above, I want to note that I am a huge fan of how concise this is.

The most important thing for maintainers handling spam is for it to be easy to close junk and link the policy. No policy effectively stops the spammers.

The PR template questions should be kept short as well. They're a barrier for genuine new contributors and they don't slow down bad actors. 👍 for the current PR text for this.

@rgommers
rgommers force-pushed the pr-template-and-ai-guidelines branch from 093405b to 89da447 Compare November 24, 2026 20:34
Comment thread AI_POLICY.md Resolved

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

As a side note, I'd like having https://github.com/apps/agentscanapp/installations/new (https://agentscan.tools) labeling PRs with automatic analysis which makes it easier to identify potential spam sooner.

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>

@gpshead gpshead left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly: I think you can make this policy easier to follow by simplifying.

Comment thread AI_POLICY.md Resolved
Comment thread AI_POLICY.md Resolved
Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread AI_POLICY.md Resolved

@henryiii henryiii left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always iterate later. Happy to try in the current form.

@rgommers

rgommers commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Four approvals and the dust seems to have settled, let's roll with this, because the drive-by PRs keep on coming in. We can always fine-tune later. Thanks for the reviews everyone!

@rgommers
rgommers enabled auto-merge (squash) December 4, 2026 10:09
@rgommers
rgommers merged commit 2a5e415 into python:main Dec 4, 2026
4 of 5 checks passed
@rgommers
rgommers deleted the pr-template-and-ai-guidelines branch December 4, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Regular maintenance of the guide, CI and repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: improvements to PR template, labels and contribution guide

8 participants