|
| 1 | +# Contributing to Angular-File-Upload |
| 2 | + |
| 3 | +:+1::tada: Welcome in angular-file-upload community :tada::+1: |
| 4 | + |
| 5 | +The following is a set of guidelines for contributing to Angular-File-Upload. |
| 6 | +These are just guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. |
| 7 | + |
| 8 | +Note : this guide is inspired by https://github.com/atom/atom/blob/master/CONTRIBUTING.md |
| 9 | + |
| 10 | +#### Table Of Contents |
| 11 | + |
| 12 | +[How Can I Contribute?](#how-can-i-contribute) |
| 13 | + * [Reporting Bugs](#reporting-bugs) |
| 14 | + * [Suggesting Enhancements](#suggesting-enhancements) |
| 15 | + * [Pull Requests](#pull-requests) |
| 16 | + |
| 17 | +[Additional Notes](#additional-notes) |
| 18 | + * [Issue and Pull Request Labels](#issue-and-pull-request-labels) |
| 19 | + * [Contributors Communication](#contributors-communication) |
| 20 | + |
| 21 | +## How Can I Contribute? |
| 22 | + |
| 23 | +### Reporting Bugs |
| 24 | + |
| 25 | +This section guides you through submitting a bug report for Angular-File-Upload. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior :computer: :computer:, and find related reports :mag_right:. |
| 26 | + |
| 27 | +Fill out [the required template](ISSUE_TEMPLATE.md), the information it asks for helps us resolve issues faster. |
| 28 | +* Before Submitting A Bug Report : **Perform a [quick search](https://github.com/nervgh/angular-file-upload/issues)** to see if the problem has already been reported. If it has, add a comment to the existing issue instead of opening a new one. |
| 29 | +* When you are creating a bug report, please include as many details as possible, explain the problem and include additional details to help maintainers reproduce the problem: |
| 30 | + |
| 31 | + * **Use a clear and descriptive title** for the issue to identify the problem. |
| 32 | + * **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you are using Angulare-File-Upload. When listing steps, **don't just say what you did, but explain how you did it**. For example, if you upload a file, explain if you did it by clicking on a button or if you have started the upload programmatically? |
| 33 | + * **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines). |
| 34 | + * **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior. |
| 35 | + * **Explain which behavior you expected to see instead and why.** |
| 36 | + * **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. If you use the keyboard while following the steps. You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. |
| 37 | + * **If you're reporting that Angular-File-Upload crashed**, include a crash report with a stack trace from the browser stack. On macOS, the crash report will be available and put it in a [gist](https://gist.github.com/) and provide link to that gist. |
| 38 | + |
| 39 | + Provide more context by answering these questions: |
| 40 | + |
| 41 | + * **Did the problem start happening recently** (e.g. after updating to a new version of Angular-File-Upload) or was this always a problem? |
| 42 | + * **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens. |
| 43 | + * **Does the problem happen for all files or only some?** Does the problem happen only when working with local or remote files (e.g. on network drives), with files of a specific type (e.g. only JavaScript or Python files), with large files or files with very long lines, or with files in a specific encoding? Is there anything else special about the files you are using? |
| 44 | + |
| 45 | +Include details about your configuration and environment: |
| 46 | + |
| 47 | + * **Which browser are you using?** ? |
| 48 | + * **What's the name and version of the OS you're using**? |
| 49 | + |
| 50 | +### Suggesting Enhancements |
| 51 | + |
| 52 | +This section guides you through submitting an enhancement suggestion for Angular-File-Upload, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:. |
| 53 | +* Before Submitting An Enhancement : **Perform a [quick search](https://github.com/nervgh/angular-file-upload/issues)** to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. |
| 54 | + |
| 55 | + Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). Provide the following information: |
| 56 | + |
| 57 | + * **Use a clear and descriptive title** for the issue to identify the suggestion. |
| 58 | + * **Provide a step-by-step description of the suggested enhancement** in as many details as possible. |
| 59 | + * **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines). |
| 60 | + * **Describe the current behavior** and **explain which behavior you expected to see instead** and why. |
| 61 | + * **Include screenshots and animated GIFs** which help you demonstrate the steps or point out the part of Angular-File-Upload which the suggestion is related to. You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. |
| 62 | + * **Explain why this enhancement would be useful** to most Angular-File-Upload users. |
| 63 | + * **List some other uploader libs or usages where this enhancement exists.** |
| 64 | + |
| 65 | +### Pull Requests |
| 66 | + |
| 67 | +* Follow [standardJS](https://github.com/feross/standard) styleguides. |
| 68 | +* Include thoughtfully-worded, [protractor](http://www.protractortest.org/#/) tests |
| 69 | +* Document new code based using [jsdoc](http://usejsdoc.org/) |
| 70 | + |
| 71 | +## Additional Notes |
| 72 | + |
| 73 | +### Issue and Pull Request Labels |
| 74 | + |
| 75 | +Feel free to grade issues and PRs by tags if it helps you work. |
| 76 | +You can create any labels what you need and you can manage project using these labels. |
| 77 | + |
| 78 | +### Contributors Communication |
| 79 | + |
| 80 | +To participate to discussion, please ask access to [nervgh](https://github.com/nervgh) to the telegram group of contributors. |
0 commit comments