contributing: revise PR requirements

This commit is contained in:
Mason Daugherty
2026-03-09 10:51:37 -04:00
parent 3e5c45b736
commit 907e670c17
+7 -10
View File
@@ -6,18 +6,15 @@ As an open-source project in a rapidly developing field, we are extremely open t
To learn how to contribute to LangChain projects (such as `langchain`, `langgraph`, and `deepagents`), please follow the [contribution guide here](https://docs.langchain.com/oss/python/contributing).
## Acceptable uses of LLMs
## Pull request requirements
Generative AI can be a useful tool for contributors, but like any tool should be used with critical thinking and good judgement.
> **All pull requests must link to an issue or discussion where a solution has been approved by a maintainer.** PRs without prior approval will be closed.
AI assistance must be paired with meaningful human intervention, judgement, and contextual understanding. **If the human effort required to create a pull request is less than the effort required for maintainers to review it, that contribution should not be submitted.**
All pull requests should demonstrate meaningful effort and contextual understanding. **If the effort required to create a pull request is less than the effort required for maintainers to review it, that contribution should not be submitted.** Low-effort drive-by contributions — regardless of how they are produced — often miss the mark in terms of contextual relevance, accuracy, and quality. Mass automated contributions represent a denial-of-service attack on our human effort.
We struggle when contributors' entire work (code changes, documentation updates, pull request descriptions) are LLM-generated. These drive-by contributions often mean well but miss the mark in terms of contextual relevance, accuracy, and quality. Mass automated contributions represent a denial-of-service attack on our human effort.
The following requirements must be met for all external pull requests:
The following guidelines must be met for Pull Requests that include AI-generated content:
* The pull request must link to an issue or discussion where a solution has been approved by a maintainer.
* The pull request must fill in the repository's pull request template.
* The Pull Request must fill in the repository's pull request template.
* The Pull Request must identify itself as AI generated, including the name of the agent used.
* The Pull Request must link to a issue or discussion where a solution has been approved by a maintainer.
The maintainer reserves the right to close PRs without comment if the above are not met. **We will close pull requests and issues that appear to be low-effort, AI-generated spam.**
Maintainers reserve the right to close PRs without comment if these requirements are not met. **We will close pull requests and issues that appear to be low-effort spam.**