cla-assistant/CONTRIBUTING.md

140 строки
8.2 KiB
Markdown
Исходник Обычный вид История

2018-01-10 14:45:49 +03:00
# Contributing to CLA Assistant
You want to contribute to CLA Assistant? Welcome! Please read this document to understand what you can do:
* [Help Others](#help-others)
* [Analyze Issues](#analyze-issues)
* [Report an Issue](#report-an-issue)
* [Contribute Code](#contribute-code)
## Help Others
You can help CLA Assistant by helping others who use it and need support.
## Analyze Issues
Analyzing issue reports can be a lot of effort. Any help is welcome!
2019-01-29 09:03:46 +03:00
Go to [the GitHub issue tracker](https://github.com/cla-assistant/cla-assistant/issues?state=open) and find an open issue which needs additional work or a bugfix (e.g. issues labeled with "help wanted" or "bug").
2018-01-10 14:45:49 +03:00
Additional work could include any further information, or a gist, or it might be a hint that helps understanding the issue. Maybe you can even find and [contribute](#contribute-code) a bugfix?
## Report an Issue
If you find a bug - behavior of CLA Assistant code contradicting your expectation - you are welcome to report it.
We can only handle well-reported, actual bugs, so please follow the guidelines below.
2019-01-29 09:03:46 +03:00
Once you have familiarized with the guidelines, you can go to the [GitHub issue tracker for CLA Assistant](https://github.com/cla-assistant/cla-assistant/issues/new) to report the issue.
2018-01-10 14:45:49 +03:00
### Quick Checklist for Bug Reports
Issue report checklist:
* Real, current bug
* No duplicate
* Reproducible
* Good summary
* Well-documented
* Minimal example
* Use the [template](ISSUE_TEMPLATE.md)
### Issue handling process
When an issue is reported, a committer will look at it and either confirm it as a real issue, close it if it is not an issue, or ask for more details.
An issue that is about a real bug is closed as soon as the fix is committed.
### Reporting Security Issues
If you find a security issue, please act responsibly and report it not in the public issue tracker, but directly to us, so we can fix it before it can be exploited.
Please send the related information to secure@sap.com using [PGP for e-mail encryption](https://global.sap.com/pc/security/keyblock.txt).
2018-01-10 14:45:49 +03:00
Also refer to the general [SAP security information page](https://www.sap.com/corporate/en/company/security.html).
### Usage of Labels
2019-01-29 09:03:46 +03:00
GitHub offers labels to categorize issues. We defined the following labels so far:
2018-01-10 14:45:49 +03:00
Labels for issue categories:
* bug: this issue is a bug in the code
* feature: this issue is a request for a new functionality or an enhancement request
* design: this issue relates to the UI or UX design of the tool
Status of open issues:
* help wanted: the feature request is approved and you are invited to contribute
Status/resolution of closed issues:
* wontfix: while acknowledged to be an issue, a fix cannot or will not be provided
The labels can only be set and modified by committers.
### Issue Reporting Disclaimer
We want to improve the quality of CLA Assistant and good bug reports are welcome! But our capacity is limited, thus we reserve the right to close or to not process insufficient bug reports in favor of those which are very cleanly documented and easy to reproduce. Even though we would like to solve each well-documented issue, there is always the chance that it will not happen - remember: CLA Assistant is Open Source and comes without warranty.
Bug report analysis support is very welcome! (e.g. pre-analysis or proposing solutions)
## Contribute Code
You are welcome to contribute code to CLA Assistant in order to fix bugs or to implement new features.
There are three important things to know:
1. You must be aware of the Apache License (which describes contributions) and **agree to the Contributors License Agreement**. This is common practice in all major Open Source projects.
2019-01-29 08:48:59 +03:00
For company contributors special rules apply. See the respective section below for details.
2018-01-10 14:45:49 +03:00
2. There are **several requirements regarding code style, quality, and product standards** which need to be met (we also have to follow them). The respective section below gives more details on the coding guidelines.
3. **Not all proposed contributions can be accepted**. Some features may e.g. just fit a third-party add-on better. The code must fit the overall direction of CLA Assistant and really improve it. The more effort you invest, the better you should clarify in advance whether the contribution fits: the best way would be to just open an issue to discuss the feature you plan to implement (make it clear you intend to contribute).
### Contributor License Agreement
When you contribute (code, documentation, or anything else), you have to be aware that your contribution is covered by the same [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0) that is applied to CLA Assistant itself.
2018-01-10 14:45:49 +03:00
In particular you need to agree to the Individual Contributor License Agreement,
which can be [found here](https://gist.github.com/CLAassistant/bd1ea8ec8aa0357414e8).
(This applies to all contributors, including those contributing on behalf of a company). If you agree to its content, you simply have to click on the link posted by the CLA assistant as a comment to the pull request. Click it to check the CLA, then accept it on the following screen if you agree to it. CLA assistant will save this decision for upcoming contributions and will notify you if there is any change to the CLA in the meantime.
#### Company Contributors
If employees of a company contribute code, in **addition** to the individual agreement above, there needs to be one company agreement submitted. This is mainly for the protection of the contributing employees.
A company representative authorized to do so needs to download, fill, and print
the [Corporate Contributor License Agreement](/SAP Corporate Contributor License Agreement (5-26-15).pdf) form. Then either:
- Scan it and e-mail it to [opensource@sap.com](mailto:opensource@sap.com) and [tools@sap.com](mailto:tools@sap.com)
- Send it by traditional letter to: *SAP SE, Industry Standards & Open Source Team, Dietmar-Hopp-Allee 16, 69190 Walldorf, Germany*
### Contribution Content Guidelines
These are some of the rules we try to follow:
- Apply a clean coding style adapted to the surrounding code, even though we are aware the existing code is not fully clean
- Use (4)spaces for indentation (except if the modified file consistently uses tabs)
- Use variable naming conventions like in the other files you are seeing (camelcase)
- No console.log() - use logging service
- Run the ESLint code check and make it succeed
- Comment your code where it gets non-trivial
- Keep an eye on performance and memory consumption, properly destroy objects when not used anymore
- Write a unit test
- Do not do any incompatible changes, especially do not modify the name or behavior of public API methods or properties
### How to contribute - the Process
1. Make sure the change would be welcome (e.g. a bugfix or a useful feature); best do so by proposing it in a GitHub issue
2. Create a branch forking the cla-assistant repository and do your change
3. Commit and push your changes on that branch
4. In the commit message
2018-01-10 14:45:49 +03:00
- Describe the problem you fix with this change.
- Describe the effect that this change has from a user's point of view. App crashes and lockups are pretty convincing for example, but not all bugs are that obvious and should be mentioned in the text.
2019-01-29 09:05:08 +03:00
- Describe the technical details of what you changed. It is important to describe the change in a most understandable way so the reviewer is able to verify that the code is behaving as you intend it to.
2018-01-10 14:45:49 +03:00
5. If your change fixes an issue reported at GitHub, add the following line to the commit message:
- ```Fixes #(issueNumber)```
- Do NOT add a colon after "Fixes" - this prevents automatic closing.
6. Create a Pull Request
7. Follow the link posted by the CLA assistant to your pull request and accept it, as described in detail above.
8. Wait for our code review and approval, possibly enhancing your change on request
- Note that the CLA Assistant developers also have their regular duties, so depending on the required effort for reviewing, testing and clarification this may take a while
9. Once the change has been approved we will inform you in a comment
10. We will close the pull request, feel free to delete the now obsolete branch