Published Feb 19, 2013 | In WordPress
As most of you know, I actively develop and main more than 20 WordPress Plugins. All of them are hosted in the official WordPress Plugin repository.
Until recently I was using the official WordPress repository’s svn to do the development. All my non-WordPress pet projects are hosted in my github account.
I was thinking of moving all my WordPress Plugins to github for quite sometime now, but didn’t do it thinking that it might involve huge effort to keep both the repos in sync.
After reading about how a couple of people moved (and didn’t face much problem afterwards), I decided to try it out for a couple of my Plugins. The following is what I did and in the end, figured out that it was worth the effort.
Github – more than just codeTo be fair to official WordPress Plugin repository, there is nothing anything wrong with the way it works or with svn.
It is just that github as a platform is more suited if you are interested in collaboration and receiving contributions from users. It reduces the barrier to entry for people to contribute to projects and also it provides enough tools for project owners to easily merge (or reject) contributions from users.
I was more interested in this aspect of github rather than the ‘git’ part.
Using github for hosting WordPress PluginsWhen I decided to move from svn to github, I wanted to do the following things.
For the first I found that git-svn
can fetch all the check-in history.
For the second and third point, keeping pragmatism in mind, I ended up creating shell scripts so that I don’t have to do anything manual.
Automation scriptsYou can get the scripts that I wrote from my github account. The project consists of two scripts.
Right now the documentation is pretty sparse. I will fix it when I get some free time 🙂
Things to improveThe scripts pretty much do the job. Going forward, I want to improve the following to make it more useful.
readme.txt
file used by WordPress repository is not fully in markdown. Because of which the readme file displayed in github is slightly broken..pot
file before releasing the new versionassests/
directory. Need to add support for that.Update: All the above features are added. Check out the latest code in github.
Is it worth the effort?So far I have moved the following Plugins to github. Will be moving the other ones as well when even I get some free time.
So now the real question. Is it worth the effort? It is worth every second that I spent on it.
You should check the pull requests I have received so far. I have received more contributions to my Plugins in the last couple of weeks than the last 5 years 🙂
If you are a WordPress Plugin developer, then try out my script and let me know if you have any feedback.
Related postsTags: git, github, Plugin, shell, WordPress
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4