Recommended flows
In general, we follow the GitHub flow.
I have an unapproved addon and want to check it out
- I create an empty repository with an initial commit (just a
README.mdfile). - In the administration, I fill in the URL of the repository in the Codes tab of the addon detail. The URL must be set before the first deployment, otherwise the deployment ends with an error.
- I install the GitHub app.
- I create a branch (any name), or create an issue and branch from it.
- I work within the branch and commit to it. See the folder structure for how to structure your code.
- I deploy my branch to test the addon before review: in the Actions tab I run Deploy current version and select my branch. Once the run is green, the code is in the addon and I can test it on an e-shop.
- When my commits are ready, I create a pull request myself and don't merge it — the reviewer can only review a pull
request someone else opened. Alternatively, I push a commit with
Addon check PRin its message and the application opens the pull request for me. - The addon goes through user testing with the Shoptet addon team, then a reviewer does a code review.
- The reviewer merges the pull request into the main (master) branch to start the deployment (or starts the deployment manually).
I have an approved addon, but I need to make a change
- I create an issue that describes the change I'm going to make.
- I create a branch, either from the issue or on its own.
- I work within the branch and commit to it.
- When my commits are ready for review, I create a pull request, but I do NOT merge it.
- A reviewer performs a code review.
- The reviewer merges the pull request into the main (master) branch to start the deployment (or starts the deployment manually).
I have an approved addon, but I need a hotfix
- I commit to the main (master) branch.
- In the commit message, I use the prefix
Hotfix:. - The application creates an issue where I can explain the reason for the hotfix.
- The application performs a deployment (or I run the deployment manually).