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.
Our canonical source repository is at: https://git-wip-us.apache.org/repos/asf/incubator-ponymail.git
We also have a GitHub mirror at: https://github.com/apache/incubator-ponymail
We currently use GitHub Issues for tracking bugs and improvements: https://github.com/apache/incubator-ponymail/issues
To contribute to Pony Mail, follow these steps:
The following workflow is adapted from the jClouds workflow:
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://git-wip-us.apache.org/repos/asf/incubator-ponymail.git
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!
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
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.
Copyright 2016, the Apache Software Foundation.
Apache Pony Mail and the Apache Pony Mail logo are trademarks of the Apache Software Foundation. Apache and the Apache feather are registered trademarks of the Apache Software Foundation.