Skip to content

docs: add generative ai contribution guidelines #19427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 20, 2025
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Aug 19, 2025

Initial language that gives us something to point to if needed.

I did not include language around the size of a PR. I think we should have normal contribution guidelines about very large PRs, include tests, etc, etc.

@Emyrk Emyrk force-pushed the stevenmasley/ai_contrib branch from 03c53fd to 985bb3b Compare August 19, 2025 19:42
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

Great start @Emyrk, thanks! A few minor points, appreciate your putting this together


## Disclosure

Contributors must **disclose AI involvement** in the pull request description whenever these guidelines apply.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should pair this with a PULL_REQUEST_TEMPLATE.md file to elicit this disclosure and link to this page. I'm not sure many folks will find this doc organically. I don't think we can customize the links under the PR description box, can we?

Image

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not 100% sure. I know we can make issue templates, never tried for PRs

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

It'd be nice to have a standard way to represent AI contributors. We could either have a separate AI PR template or put the AI splash in the template inside <!-- / --> so it can be surfaced with relative ease. In the past we had a PR template and it was a bit of an inconvenience IIRC, hopefully that has improved.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Emyrk can we please include this? Right now folks won't know to look at your new doc; let's increase discoverability.

Emyrk and others added 2 commits August 19, 2025 15:10
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @Emyrk !

@@ -0,0 +1,32 @@
# Guidelines for Using Generative AI in Contributions

This document defines rules for contributions where an AI system is the primary author of the code (i.e., most of the pull request was generated by AI).
Copy link
Member

Choose a reason for hiding this comment

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

most of the pull request was generated by AI)

This decision is very much "vibes based" from the reviewer's perspective. As such, I anticipate that this may be the source of a number of arguments. Unfortunately, I don't have any suggestion for a better delineation.

Copy link
Member Author

Choose a reason for hiding this comment

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

I do agree, but I kept it subjective because I know we all use AI day to day in our coding. I did not want to encompass our usual PRs.

I do not like the idea of saying like "50% of lines" or something.

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Short and clear, I think this is a good starting point 👍🏻. I feel this guide is mostly for humans, would it make sense to have one targeting AI's as well? Or alternatively, having a hidden section act as clear instructions for the AI. Either way, that can come later.


## Disclosure

Contributors must **disclose AI involvement** in the pull request description whenever these guidelines apply.
Copy link
Member

Choose a reason for hiding this comment

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

It'd be nice to have a standard way to represent AI contributors. We could either have a separate AI PR template or put the AI splash in the template inside <!-- / --> so it can be surfaced with relative ease. In the past we had a PR template and it was a bit of an inconvenience IIRC, hopefully that has improved.

Emyrk and others added 2 commits August 20, 2025 07:42
Co-authored-by: Cian Johnston <cian@coder.com>
Co-authored-by: Cian Johnston <cian@coder.com>
@Emyrk
Copy link
Member Author

Emyrk commented Aug 20, 2025

Or alternatively, having a hidden section act as clear instructions for the AI. Either way, that can come later.

Very interesting idea

@Emyrk Emyrk merged commit a19dfa9 into main Aug 20, 2025
31 checks passed
@Emyrk Emyrk deleted the stevenmasley/ai_contrib branch August 20, 2025 14:13
@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy