Plugin development is a little tricky given that we host on github, but have to publish to SVN.
Ask one of the owners of the plugin (currently, Mike Sukmanowsky) to add you as a committer which provides you with write access to the SVN repo. You will need to provide your wordpress.org username.
Run python init.py
which will pull the wp-parsely repo and configure git so
that you will be able to eventually run git svn dcommit
to push changes to
wordpress.org.
If you hit merge conflicts when you try to dcommit
, you can try creating a
local tracking branch of svn/trunk
, rebasing your local working branch with
it, and then merging that back onto local trunk
before trying to dcommit
again. Otherwise, you may end up taking over every conflict and wrecking the
commit history.
- Make changes and commit locally to master branch
- Test all changes and ensure no bugs have been introduced
- Validate
readme.txt
with https://wordpress.org/plugins/about/validator/ - Run
git svn dcommit
to push changes to WordPress.org SVN repo - Tag any releases as needed
git tag -a vx.x <commit hash>
git push -f origin master
to update GitHub repo
WARNING: Unfortunately, git push -f origin master
is required because
running git svn dcommit
will usually modify commit history to change the
author of each commit to that of the user you use for wordpress.org (and often
that author does not match that of git config --get user.name
).
Be very careful to not overwrite commits that you have not yet pulled from github.