diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d5848e1bc..d6b58a69c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,11 +10,27 @@ The following is a short step-by-step rundown of what one typically would do to - Feel free to add yourself to AUTHORS file. - Create a pull request. +## Submission requirements + +Every issue and pull request must address a problem that actually occurs in +downstream software using GitPython. Identify the affected software. In the +pull request description, explicitly state the problem the change fixes or link +to an issue that documents it in the affected project's issue tracker. If you +open a GitPython issue, describe what goes wrong in the downstream software. + +Proactive performance fixes are exempt from the downstream problem requirement +only if they reduce the asymptotic time complexity. +State the time complexity before and after the change in the PR description +and present benchmark numbers of before and after a possible fix. + +Security-related work is exempt from these requirements. Follow the +[security policy](SECURITY.md#reporting-a-vulnerability) for reporting instructions. + ## Prefer pull requests Pull requests are preferred when you have a fix or improvement to contribute: a PR -can be treated as an issue with a fix attached. Describe the problem and proposed -solution in the PR itself; a separate issue is not required. +can be treated as an issue with a fix attached. Describe the proposed solution +in the PR itself; a separate GitPython issue is not desirable. Please avoid opening an issue solely to follow it immediately with a PR that fixes it. Open the PR directly instead. Issues are still welcome for problems without a diff --git a/README.md b/README.md index 92125b21d..b234a70d6 100644 --- a/README.md +++ b/README.md @@ -241,10 +241,8 @@ Please have a look at the [contributions file][contributing]. - [Questions and Answers](http://stackexchange.com/filters/167317/gitpython) - Please post on Stack Overflow and use the `gitpython` tag - [Issue Tracker](https://github.com/gitpython-developers/GitPython/issues) - - Post reproducible bugs and feature requests as a new issue when you do not have - a fix or need discussion before implementation. If you have a fix or improvement, - [open a pull request directly](CONTRIBUTING.md#prefer-pull-requests) and describe - the problem there; you do not need to create an issue first. + - Before opening an issue or pull request, read the + [submission requirements](CONTRIBUTING.md#submission-requirements). Please be sure to provide the following information when reporting bugs in an issue or PR: - GitPython version (e.g. `import git; git.__version__`)