25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00
xmpp.chapril.org-ejabberd/CONTRIBUTING.md

150 lines
6.2 KiB
Markdown
Raw Normal View History

2018-11-19 11:03:10 +01:00
# Contributing to ejabberd
We'd love for you to contribute to our source code and to make ejabberd even better than it is
today! Here are the guidelines we'd like you to follow:
* [Code of Conduct](#code-of-conduct)
* [Questions and Problems](#questions-bugs-features)
* [Issues and Bugs](#found-an-issue-or-bug)
* [Feature Requests](#missing-a-feature)
* [Issue Submission Guidelines](#issue-submission-guidelines)
* [Pull Request Submission Guidelines](#pull-request-submission-guidelines)
* [Signing the CLA](#signing-the-contributor-license-agreement-cla)
2018-11-19 11:03:10 +01:00
## Code of Conduct
2018-11-19 11:03:10 +01:00
Help us keep ejabberd community open-minded and inclusive. Please read and follow our [Code of Conduct][coc].
## Questions, Bugs, Features
2018-11-19 11:03:10 +01:00
### Got a Question or Problem?
2018-11-19 11:03:10 +01:00
Do not open issues for general support questions as we want to keep GitHub issues for bug reports
and feature requests. You've got much better chances of getting your question answered on dedicated
support platforms, the best being [Stack Overflow][stackoverflow].
Stack Overflow is a much better place to ask questions since:
* there are thousands of people willing to help on Stack Overflow
* questions and answers stay available for public viewing so your question / answer might help
2018-11-19 11:03:10 +01:00
someone else
* Stack Overflow's voting system assures that the best answers are prominently visible.
2018-11-19 11:03:10 +01:00
To save your and our time, we will systematically close all issues that are requests for general
support and redirect people to the section you are reading right now.
Other channels for support are:
* ejabberd XMPP room: [ejabberd@conference.process-one.net][muc]
* [ejabberd Mailing List][list]
2018-11-19 11:03:10 +01:00
### Found an Issue or Bug?
2018-11-19 11:17:08 +01:00
If you find a bug in the source code, you can help us by submitting an issue to our
[GitHub Repository][github]. Even better, you can submit a Pull Request with a fix.
### Missing a Feature?
2018-11-19 11:17:08 +01:00
You can request a new feature by submitting an issue to our [GitHub Repository][github-issues].
If you would like to implement a new feature then consider what kind of change it is:
* **Major Changes** that you wish to contribute to the project should be discussed first in an
[GitHub issue][github-issues] that clearly outlines the changes and benefits of the feature.
* **Small Changes** can directly be crafted and submitted to the [GitHub Repository][github]
2024-03-24 15:50:31 +01:00
as a Pull Request. See the section about [Pull Request Submission Guidelines](#pull-request-submission-guidelines).
2018-11-19 11:17:08 +01:00
## Issue Submission Guidelines
2018-11-19 11:17:08 +01:00
Before you submit your issue search the archive, maybe your question was already answered.
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize
the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
The "[new issue][github-new-issue]" form contains a number of prompts that you should fill out to
make it easier to understand and categorize the issue.
## Pull Request Submission Guidelines
2018-11-19 11:17:08 +01:00
2018-11-19 13:12:35 +01:00
By submitting a pull request for a code or doc contribution, you need to have the right
to grant your contribution's copyright license to ProcessOne. Please check [ProcessOne CLA][cla]
for details.
2018-11-19 11:17:08 +01:00
Before you submit your pull request consider the following guidelines:
* Search [GitHub][github-pr] for an open or closed Pull Request
that relates to your submission. You don't want to duplicate effort.
2018-11-19 13:12:35 +01:00
* Create the [development environment][developer-setup]
2018-11-19 11:17:08 +01:00
* Make your changes in a new git branch:
```shell
git checkout -b my-fix-branch master
```
2018-11-19 13:12:35 +01:00
* Test your changes and, if relevant, expand the automated test suite.
* Create your patch commit, including appropriate test cases.
2018-11-19 11:17:08 +01:00
* If the changes affect public APIs, change or add relevant [documentation][doc-repo].
* Commit your changes using a descriptive commit message.
```shell
git commit -a
```
2018-11-19 11:17:08 +01:00
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
* Push your branch to GitHub:
```shell
git push origin my-fix-branch
```
* In GitHub, send a pull request to `ejabberd:master`. This will trigger the automated testing.
2018-11-19 11:17:08 +01:00
We will also notify you if you have not yet signed the [contribution agreement][cla].
* If you find that the tests have failed, look into the logs to find out
2018-11-19 11:17:08 +01:00
if your changes caused test failures, the commit message was malformed etc. If you find that the
tests failed or times out for unrelated reasons, you can ping a team member so that the build can be
restarted.
* If we suggest changes, then:
* Make the required updates.
2018-11-19 13:12:35 +01:00
* Test your changes and test cases.
2018-11-19 11:17:08 +01:00
* Commit your changes to your branch (e.g. `my-fix-branch`).
* Push the changes to your GitHub repository (this will update your Pull Request).
You can also amend the initial commits and force push them to the branch.
```shell
git rebase master -i
git push origin my-fix-branch -f
```
This is generally easier to follow, but separate commits are useful if the Pull Request contains
iterations that might be interesting to see side-by-side.
That's it! Thank you for your contribution!
## Signing the Contributor License Agreement (CLA)
2018-11-19 11:03:10 +01:00
2018-12-12 16:23:07 +01:00
Upon submitting a Pull Request, we will ask you to sign our CLA if you haven't done
2018-11-19 11:03:10 +01:00
so before. It's a quick process, we promise, and you will be able to do it all online
Here's a link to the [ProcessOne Contribution License Agreement][cla].
2018-11-19 11:03:10 +01:00
2018-11-19 13:12:35 +01:00
This is part of the legal framework of the open-source ecosystem that adds some red tape,
but protects both the contributor and the company / foundation behind the project. It also
gives us the option to relicense the code with a more permissive license in the future.
2018-11-19 11:03:10 +01:00
[coc]: https://github.com/processone/ejabberd/blob/master/CODE_OF_CONDUCT.md
[stackoverflow]: https://stackoverflow.com/questions/tagged/ejabberd?sort=newest
[list]: https://lists.jabber.ru/mailman/listinfo/ejabberd
2018-11-19 11:03:10 +01:00
[muc]: xmpp:ejabberd@conference.process-one.net
2018-11-19 11:17:08 +01:00
[github]: https://github.com/processone/ejabberd
[github-issues]: https://github.com/processone/ejabberd/issues
[github-new-issue]: https://github.com/processone/ejabberd/issues/new
[github-pr]: https://github.com/processone/ejabberd/pulls
[doc-repo]: https://github.com/processone/docs.ejabberd.im
2018-11-19 13:12:35 +01:00
[developer-setup]: https://docs.ejabberd.im/developer/
[cla]: https://cla.process-one.net/