heartcombo--devise/CONTRIBUTING.md

80 lines
4.2 KiB
Markdown
Raw Permalink Normal View History

2016-07-13 00:29:02 +00:00
# How to contribute to Devise
2012-07-06 18:23:58 +00:00
2016-07-13 00:29:02 +00:00
Thanks for your interest on contributing to Devise! Here are a few general
guidelines on contributing and reporting bugs to Devise that we ask you to
take a look first. Notice that all of your interactions in the project are
expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).
2012-07-06 18:39:39 +00:00
2016-07-13 00:29:02 +00:00
## Reporting Issues
Before reporting a new issue, please be sure that the issue wasn't already
2020-02-03 16:33:17 +00:00
reported or fixed by searching on GitHub through our [issues](https://github.com/heartcombo/devise/issues).
2016-07-13 00:29:02 +00:00
When creating a new issue, be sure to include a **title and clear description**,
as much relevant information as possible, and either a test case example or
even better a **sample Rails app that replicates the issue** - Devise has a lot
of moving parts and it's functionality can be affected by third party gems, so
we need as much context and details as possible to identify what might be broken
for you. We have a [test case template](guides/bug_report_templates/integration_test.rb)
that can be used to replicate issues with minimal setup.
Please do not attempt to translate Devise built in views. The views are meant
to be a starting point for fresh apps and not production material - eventually
all applications will require custom views where you can write your own copy and
translate it if the application requires it . For historical references, please look into closed
2020-02-03 16:33:17 +00:00
[Issues/Pull Requests](https://github.com/heartcombo/devise/issues?q=i18n) regarding
2016-07-13 00:29:02 +00:00
internationalization.
Avoid opening new issues to ask questions in our issues tracker. Please go through
the project wiki, documentation and source code first, or try to ask your question
on [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
**If you find a security bug, do not report it through GitHub. Please send an
2020-02-03 16:33:17 +00:00
e-mail to [heartcombo@googlegroups.com](mailto:heartcombo@googlegroups.com)
2016-07-13 00:29:02 +00:00
instead.**
## Sending Pull Requests
Before sending a new Pull Request, take a look on existing Pull Requests and Issues
to see if the proposed change or fix has been discussed in the past, or if the
change was already implemented but not yet released.
We expect new Pull Requests to include enough tests for new or changed behavior,
and we aim to maintain everything as most backwards compatible as possible,
reserving breaking changes to be ship in major releases when necessary - you
can wrap the new code path with a setting toggle from the `Devise` module defined
as `false` by default to require developers to opt-in for the new behavior.
2012-07-06 18:39:39 +00:00
2016-07-13 00:29:02 +00:00
If your Pull Request includes new or changed behavior, be sure that the changes
are beneficial to a wide range of use cases or it's an application specific change
that might not be so valuable to other applications. Some changes can be introduced
as a new `devise-something` gem instead of belonging to the main codebase.
2012-07-06 18:39:39 +00:00
2020-02-03 16:33:17 +00:00
When adding new settings, you can take advantage of the [`Devise::Models.config`](https://github.com/heartcombo/devise/blob/245b1f9de0b3386b7913e14b60ea24f43b77feb0/lib/devise/models.rb#L13-L50) method to add class and instance level fallbacks
2016-07-13 00:29:02 +00:00
to the new setting.
2012-10-30 19:09:10 +00:00
2016-07-13 00:29:02 +00:00
We also welcome Pull Requests that improve our existing documentation (both our
`README.md` and the RDoc sections in the source code) or improve existing rough
edges in our API that might be blocking existing integrations or 3rd party gems.
2016-07-13 00:29:02 +00:00
## Other ways to contribute
2015-09-08 02:00:26 +00:00
2016-07-13 00:29:02 +00:00
We welcome anyone that wants to contribute to Devise to triage and reply to
open issues to help troubleshoot and fix existing bugs on Devise. Here is what
you can do:
2016-07-13 00:29:02 +00:00
* Help ensure that existing issues follows the recommendations from the
2018-10-28 16:36:00 +00:00
_[Reporting Issues](#reporting-issues)_ section, providing feedback to the issue's
2016-07-13 00:29:02 +00:00
author on what might be missing.
2020-02-03 16:33:17 +00:00
* Review and update the existing content of our [Wiki](https://github.com/heartcombo/devise/wiki)
2016-07-13 00:29:02 +00:00
with up to date instructions and code samples - the wiki was grown with several
different tutorials and references that we can't keep track of everything, so if
there is a page that showcases an integration or customization that you are
familiar with feel free to update it as necessary.
* Review existing Pull Requests, and testing patches against real existing
applications that use Devise.
2016-07-13 00:29:02 +00:00
Thanks again for your interest on contributing to the project!
2012-07-07 17:57:59 +00:00
2016-07-13 00:29:02 +00:00
:heart: