Skip to content

Commit 5b24186

Browse files
codexByron
authored andcommitted
docs: require downstream impact for contributions
Focus issue and PR review on problems that affect software using `GitPython`. Require contributors to identify the affected project and either state the downstream problem in the PR description or link to the issue in that project's tracker. Prohibit automated searches for deviations from `Git`. Allow proactive performance fixes that reduce the asymptotic time complexity of a quadratic- or exponential-time algorithm. Require the PR description to state the complexity before and after the change. Exempt security work and direct vulnerability reports to `SECURITY.md`. Align `README.md` and `AGENTS.md` with `CONTRIBUTING.md`. Verified with `git diff --check` and checked the Markdown link targets. Agent-Model: unknown
1 parent cae379a commit 5b24186

3 files changed

Lines changed: 28 additions & 12 deletions

File tree

‎AGENTS.md‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ when communicating through a person's account.
77

88
[Prefer pull requests](CONTRIBUTING.md#prefer-pull-requests): a PR can serve as an
99
issue with a fix attached. Do not create an issue solely to follow it immediately
10-
with a PR that fixes it; describe the problem in the PR instead.
10+
with a PR that fixes it.
1111

12-
Agents creating a PR must state the underlying motivation in its description, such
13-
as the project that will benefit or where the bug was first discovered. Any
14-
motivation is valid; explain why the work was pursued rather than restating what
15-
the PR does. "Want to fix a bug" is insufficient because that is already evident
16-
from the PR itself.
12+
Agents creating a PR must document the problem that motivated the work according
13+
to the [submission requirements](CONTRIBUTING.md#submission-requirements).
1714

1815
# Gix backend implementations
1916

‎CONTRIBUTING.md‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,29 @@ The following is a short step-by-step rundown of what one typically would do to
1010
- Feel free to add yourself to AUTHORS file.
1111
- Create a pull request.
1212

13+
## Submission requirements
14+
15+
Every issue and pull request must address a problem that actually occurs in
16+
downstream software using GitPython. Identify the affected software. In the
17+
pull request description, explicitly state the problem the change fixes or link
18+
to an issue that documents it in the affected project's issue tracker. If you
19+
open a GitPython issue, describe what goes wrong in the downstream software.
20+
21+
Proactive performance fixes are exempt from the downstream problem requirement
22+
only if they reduce the asymptotic time complexity of a quadratic- or
23+
exponential-time algorithm. State the time complexity before and after the
24+
change in the PR description.
25+
26+
Automated searches for deviations from Git are prohibited.
27+
28+
Security-related work is exempt from these requirements. Follow the
29+
[security policy](SECURITY.md#reporting-a-vulnerability) for reporting instructions.
30+
1331
## Prefer pull requests
1432

1533
Pull requests are preferred when you have a fix or improvement to contribute: a PR
16-
can be treated as an issue with a fix attached. Describe the problem and proposed
17-
solution in the PR itself; a separate issue is not required.
34+
can be treated as an issue with a fix attached. Describe the proposed solution
35+
in the PR itself; a separate GitPython issue is not required.
1836

1937
Please avoid opening an issue solely to follow it immediately with a PR that fixes
2038
it. Open the PR directly instead. Issues are still welcome for problems without a

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,11 @@ Please have a look at the [contributions file][contributing].
241241
- [Questions and Answers](http://stackexchange.com/filters/167317/gitpython)
242242
- Please post on Stack Overflow and use the `gitpython` tag
243243
- [Issue Tracker](https://github.com/gitpython-developers/GitPython/issues)
244-
- Post reproducible bugs and feature requests as a new issue when you do not have
245-
a fix or need discussion before implementation. If you have a fix or improvement,
246-
[open a pull request directly](CONTRIBUTING.md#prefer-pull-requests) and describe
247-
the problem there; you do not need to create an issue first.
244+
- Before opening an issue or pull request, read the
245+
[submission requirements](CONTRIBUTING.md#submission-requirements).
246+
Open an issue when you need help with a fix or need discussion before
247+
implementation. If you have a fix or improvement,
248+
[open a pull request directly](CONTRIBUTING.md#prefer-pull-requests).
248249
Please be sure to provide the following information when reporting bugs in an
249250
issue or PR:
250251
- GitPython version (e.g. `import git; git.__version__`)

0 commit comments

Comments
 (0)