Skip to content

Commit c431aa1

Browse files
authored
docs: clarify contribution responsibilities and PR limits (#10770)
* docs: clarify contribution responsibilities and PR limits * docs: add PR submission requirements for agents
1 parent c54c65e commit c431aa1

4 files changed

Lines changed: 71 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ CodeIgniter 4 is a mature open-source PHP framework. Framework production
44
code lives in `system/`; its tests mirror that structure under
55
`tests/system/`.
66

7+
## Before opening a pull request
8+
9+
Do not open a pull request unless the applicable pre-submission requirements
10+
in [CONTRIBUTING.md](CONTRIBUTING.md) and
11+
[Sending a Pull Request](contributing/pull_request.md) are met.
12+
13+
- A human contributor must have reviewed and understood the complete diff
14+
and taken responsibility for the submission. Agent review and passing
15+
checks do not replace this human review.
16+
- Verify the target branch, commit signing, relevant tests, and required
17+
documentation. Follow the focused validation policy below. Do not run
18+
the full CI matrix locally.
19+
- Remind the user of the applicable open pull request limit before
20+
submission. Check the contributor's open pull requests, including
21+
drafts, when possible. If the limit or a maintainer-approved exemption
22+
cannot be verified, clearly tell the user rather than claiming it has
23+
been checked.
24+
- If a requirement is unmet or cannot be verified, do not open the pull
25+
request. Tell the user which requirements remain unmet or unverified
26+
and what is needed before submission. Continue preparing the changes
27+
and completing any checks that can be performed. An unverified PR
28+
limit or exemption alone does not block submission; a known limit
29+
violation without an exemption does.
30+
- Report the checks performed, their results, and any validation left
31+
to CI. Do not claim that checks passed unless they were actually run.
32+
733
## Before making changes
834

935
Consult the relevant sections of:

‎CONTRIBUTING.md‎

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,42 @@
33
CodeIgniter is a community driven project and accepts contributions of
44
code and documentation from the community.
55

6-
If you'd like to contribute, please read the [Contributing to CodeIgniter](./contributing/README.md).
6+
## Responsibility for Contributions
7+
8+
AI-assisted contributions are welcome, but contributors remain responsible
9+
for everything they submit.
10+
11+
Before opening a pull request, you must:
12+
13+
- Review and understand all proposed changes.
14+
- Explain the problem being addressed and why the proposed solution is appropriate.
15+
- Verify the changes, run relevant tests, and describe what you tested,
16+
including any limitations.
17+
- Be prepared to answer review questions and revise your contribution.
18+
19+
These requirements apply regardless of the tools used. AI-generated
20+
explanations and passing CI checks do not replace your own review.
21+
22+
Automated submissions without meaningful human review are not accepted.
23+
Project-approved automation, such as dependency update bots, is exempt
24+
from this submission requirement.
25+
26+
Maintainers may close pull requests without detailed code review when
27+
the problem is unclear, the changes have not been adequately verified,
28+
or the contributor cannot explain them.
29+
30+
We do not require AI tool disclosures, prompts, or chat histories.
31+
32+
## Open Pull Request Limit
33+
34+
Contributors without write access may have up to three pull requests
35+
open in this repository at the same time, including drafts.
36+
Maintainers may grant exceptions to trusted contributors.
37+
38+
Please address feedback on your existing pull requests before opening
39+
additional ones.
40+
41+
## Further Guidance
42+
43+
For detailed contribution instructions, please read
44+
[Contributing to CodeIgniter](./contributing/README.md).

‎contributing/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ specifically interested in at any point in time. Join the discussion for those i
1212
if you want to take the lead on one of them.
1313

1414
- [Contributor Covenant Code of Conduct](../CODE_OF_CONDUCT.md)
15+
- [Responsibility for Contributions](../CONTRIBUTING.md#responsibility-for-contributions)
16+
- [Open Pull Request Limit](../CONTRIBUTING.md#open-pull-request-limit)
1517
- [Reporting a Bug](./bug_report.md)
1618
- [Sending a Pull Request](./pull_request.md)
1719
- [Configuring Upstream and Rebasing](./workflow.md#configuring-upstream-and-rebasing)

‎contributing/pull_request.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Contributions
44

5+
Before opening a pull request, read
6+
[Responsibility for Contributions](../CONTRIBUTING.md#responsibility-for-contributions)
7+
and the [Open Pull Request Limit](../CONTRIBUTING.md#open-pull-request-limit).
8+
59
We expect the following in all Pull Requests (PRs).
610
- PRs must be sent to the [appropriate branch](#branching)
711
- All git commits must be [GPG-signed](#signing)

0 commit comments

Comments
 (0)