-
Notifications
You must be signed in to change notification settings - Fork 789
Contribute
First of all, thank you! You have decided to contribute code to our software and become a member of the large shopware community. We appreciate your hard work and want to handle it with the most possible respect.
To ensure the quality of our code and our products we have created a small guideline we all should endorse to. It helps you and us to collaborate with our software. Following these guidelines will help us to integrate your changes in our daily workflow.
We are using Conventional Commits
Conventional Commits is a standard way of formatting commit messages in software development. It helps teams communicate changes effectively, automate release notes, and improve collaboration. By using predefined types and scopes, such as feat for new features and fix for bug fixes, it simplifies the process of tracking and understanding code changes. That is why we are also adapt that to branch names.
Branches
fix/resolve-issue-with-user-login-validation
feat/Implement-user-profile-image-upload-functionality
Commit message
fix: resolve issue with user login validation
fixes: #123
feat: Implement user profile image upload functionality`
fixes: #456`
To avoid that your pull request gets rejected, you should always check that you provided all necessary information. Here is a check-list with some requirements you should always consider when committing new changes.
- Do you made entries in the correct
Upgrade.mdfile with a small documentation of your changes? - Does your pull request address the correct shopware version? Breaks and features cannot be merged in a patch release.
- Is your implementation missing some important parts? For example translations, downward compatibility, compatibility to important plugins, etc.
- Did you provide the necessary tests for your implementation?
- Is there already an existing pull request tackling the same issue?
In the Shopware 5 core project, there are main branches for each major version, such as 5.6 or 5.7.
When creating a new development branch, it should be based on the latest version of the main branch.
Typically, all work should be directed towards the main branch of the current major version, unless there is a planned release.
During a release, work on the main branch is paused to allow for the creation of a stable package that ideally remains unchanged.
Simultaneously, a temporary branch called next is created or updated to the latest state of the current major branch.
This next branch becomes the target for all new work during the release phase.
It remains active from the preparation of the release until one or two weeks after the release date.
This precautionary measure ensures that any critical issues discovered after the release can be quickly addressed with an additional release.
After this transition period, the next branch is merged back into the main branch, and work continues as usual.
Before creating a pull request, it's important to ensure that your branch is up to date with the latest changes from the target branch. To accomplish this, we recommend performing a rebase on your branch:
git pull --rebase repository-name target-branch(git pull --rebase origin 5.7)
When you create a new pull request on GitHub normally it will get a first sight within a week. We do regular meetings to screen all new pull requests on GitHub. In this meeting there is a team of up to five shopware developers of different specialisations which will discuss your changes. Together we decide what will happen next to your pull request. We will set one of the following labels which indicate the status of the pull request. Here is a list of all possible states.
| Label | What does it mean? |
|---|---|
| Incomplete | Your pull request is incomplete. It is either missing some of the necessary information, or your code implementation is not sufficient to fix the issue. Mostly there will be a comment by our developers which gives you further information of what is missing. |
| Missing Tests | When you want to commit a new feature or bigger change it is highly necessary that you provide the corresponding tests for it. We only accept new features or bug fixes which are completely tested. |
| Question | Our developers have a question about your code and want to talk with you. They will either comment directly in your code or in the main conversation of the pull request. Try to give them all needed information as detailed as possible so that they can understand what you want to achieve with your changes. |
| Declined | Your pull request was declined by our developers and is closed. No reason to be sad. It can have very different reasons. We understand that it sometimes can be hard to understand the reason behind this. Mostly there will be a comment by our developers about why it was declined. |
| Scheduled | Yeaha! You made the first step towards the holy grail. Your changes had been reviewed by our developers and they decided that you provided a good benefit for our product. Your pull request will be imported to our ticket system and will go through our internal workflow. You will find a comment containing the ticket number to follow the status. |
| Quick-Pick | You are a lucky one! The changes you provide are only a small fix which is easy to test and implement. Our developers decided to quickly integrate this to our software. |
| Accepted | Your changes are finally accepted. The pull request passed our internal workflow. Your changes will be released with one of the next releases. |
Go to home page