Fork/Hack on Pony Mail

Apache Pony Mail™ (Incubating)

Contributing to Pony Mail

We'd LOVE if more people would contribute to Pony Mail! Any form of contribution is most welcome, whether it be programming, documentation, evangelism, marketing, or helping out other users.

Source code and issue tracker

Our source repository is at: https://github.com/apache/incubator-ponymail

We currently use GitHub Issues for tracking bugs and improvements: https://github.com/apache/incubator-ponymail/issues

Contributing guideline

To contribute to Pony Mail, follow these steps:

Git Workflow

The following workflow is adapted from the jClouds workflow:

Prepare your fork

The first thing to do is to make sure you have the ponymail Git repository configured as a remote. In this case we will add it as a remote called "ponymail":

cd ponymail
git remote add ponymail https://github.com/apache/incubator-ponymail.git

Create the feature branch

When beginning working on the feature, take a branch from the latest master version:

git checkout master
git fetch ponymail
git reset --hard ponymail/master
git checkout -b feature-branch

As we want a clean master and we should never use directly use the master branch (it should be only used to sync the fork with the upstream repo), so we can just reset hard it instead of rebasing. Develop the feature and address the review comments

Develop the feature normally, commit the changes (you can create N commits if needed), and open the pull request.

Once the pull request is open and has been reviewed, address any review comments and add the changes in new commits. This will make it easier for the reviewer to focus only in the last changes without having to go again through the entire pull request. Once the PR is ready to be merged, you'll be asked to squash the commits. Preparing the pull request to be merged

First squash the commits, to have a cleaner rebase (it is easier to rebase having one single commit than having N commits):

git rebase -i HEAD~N     # Where N is the number of commits in the pull request

Now that there is only one commit, update the branch to the latest version of master:

git fetch ponymail
git rebase ponymail/master

At this point the local branch with one single commit on top of the latest master and it can be pushed to your fork:

git push <your-fork's-remote> feature-branch -f # You might need to push with --force
                                                # because of the rebase to the latest master

Now the pull request will be clean with one single commit and up to date with the latest master. Ready to be merged!

A note about keeping the pull request up to date

The key point is to avoid updating your feature branch with master until the PR is ready to be merged (or until you're asked to rebase). This way you'll avoid accidental merge commits and fixing conflicts when you shouldn't be dealing with that. If for you want to keep your branch up to date with the latest master changes anyway, always rebase it; don't git pull or introduce merge commits, as it will complicate the rebasing process and will make it difficult to merge the pull request in a clean way

Building releases

Please see this document for details on building a release.

Disclaimer

Apache Pony Mail (Incubating) is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Apache Incubator
About the ASF
Code of Conduct
Thanks
Become a Sponsor
Security
License