8 (new) steps for fixing other people’s code
robots.thoughtbot.com
robots.thoughtbot.com
There are plenty of reasons that a pull request might get rejected. Perhaps a maintainer has already written some similar code and just hasn't merged it into a public branch. Maybe the approach you took isn't in line with the maintainer's vision. Maybe they just simply don't want to add the feature you want.
Randomly sending pull requests out of the blue is a good way to waste time and become frustrated. It's not very fun to write a bunch of code and have the maintainer just drop it on the floor.