# Recommended flows

URL: https://shoptet.dev/tools-resources/addons-repository/recommended-flows

**In general, we follow the [GitHub flow](https://docs.github.com/en/get-started/using-github/github-flow) .**

## I have an unapproved addon and want to check it out

1. I create an empty repository with an initial commit (just a `README.md` file).
2. 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.
3. I install the GitHub app.
4. I create a branch (any name), or create an [issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/learning-about-issues/about-issues) and branch from it.
5. I work within the branch and commit to it. See the [folder structure](/tools-resources/addons-repository/getting-started/#folder-structure) for how to structure your code.
6. 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.
7. 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 PR` in its message and the application opens the pull request for me.
8. The addon goes through user testing with the Shoptet addon team, then a reviewer does a [code review](https://github.com/features/code-review) .
9. 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

1. I create an [issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/learning-about-issues/about-issues) that describes the change I'm going to make.
2. I create a branch, either from the issue or on its own.
3. I work within the branch and commit to it.
4. When my commits are ready for review, I create a pull request, but I do NOT merge it.
5. A reviewer performs a [code review](https://github.com/features/code-review) .
6. 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

1. I commit to the main (master) branch.
2. In the commit message, I use the prefix `Hotfix:` .
3. The application creates an issue where I can explain the reason for the hotfix.
4. The application performs a deployment (or I run the deployment manually).
