Skip to content

Commit d58bc30

Browse files
Byroncodex
andcommitted
docs: require downstream impact for contributions
Must stop this madness <!-- agent --> 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. Require the PR description to state the complexity before and after the change. Exempt security work and direct vulnerability reports to `SECURITY.md`. Assisted-by: GPT 6.2 Sol Co-authored-by: GPT 6.2 Sol <codex@openai.com>
1 parent cae379a commit d58bc30

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,27 @@ 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.
23+
State the time complexity before and after the change in the PR description
24+
and present benchmark numbers of before and after a possible fix.
25+
26+
Security-related work is exempt from these requirements. Follow the
27+
[security policy](SECURITY.md#reporting-a-vulnerability) for reporting instructions.
28+
1329
## Prefer pull requests
1430

1531
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.
32+
can be treated as an issue with a fix attached. Describe the proposed solution
33+
in the PR itself; a separate GitPython issue is not desirable.
1834

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

‎README.md‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,8 @@ 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).
248246
Please be sure to provide the following information when reporting bugs in an
249247
issue or PR:
250248
- GitPython version (e.g. `import git; git.__version__`)

0 commit comments

Comments
 (0)