# How to update this plugin in the future

## Context

Something to note regarding this plugin is that the project name, `woocommerce plugin`, is slightly
misleading. This plugin is actually published on `wordpress.org`, and not on the official
Woocommerce extension website. Another important note is
that Woocommerce, `wordpress.org`, and `wordpress.com` are three completely different entities. We
use the online plugin store of `wordpress.org`, and not the other two companies. The username for
our account with `wordpress.org` where our plugin is published is `support@checkbook.io`. If no one
knows the password, feel free to reset it using the `Forgot your password?` feature.

## 1. Use this Gitlab repository for code changes

Make any necessary code changes in this git repository as usual.

## 2. Create new local SVN repository

Once all the code changes are finalized, create a new local SVN repository using this guide
(specifically the Examples section): https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/ (If
you don't
have `svn` locally installed, install the `subversion` package from your device's package manager).
Creating this `svn` repository will pull all the code from the production plugin onto your local
machine. The production plugin's code is located at
https://plugins.trac.wordpress.org/browser/woo-checkbook-io/trunk.

## 3. Transfer the changed files

All the source files are contained in the `trunk` folder within the `svn` repository. To push your
code into production, transfer all the files you made changes to into their respective spots in the
`trunk` folder.

One more important thing to note before committing/pushing is to update the `changelog` portion of
the `README.txt` and the `version` number in `wc_checkbook.php` files in both the Gitlab and `svn`
repositories with a brief description of the new features and the new version number respectively.

## 4. Commit and push your changes

Commit and push your changes using this command: `svn ci -m "<COMMIT MESSAGE HERE>"`. This will
automatically commit and push your changes to the production repository in one go.

## 5. Create a tag

Tag the new version of the code you just pushed by following this portion of the guide:
https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/#tagging-new-versions.
Ensure to follow version naming conventions when creating a new version of the code.
