mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
Add doc about backporting changes from EE to CE
This commit is contained in:
@ -375,6 +375,7 @@ information on managing page-specific javascript within EE.
|
|||||||
To separate EE-specific styles in SCSS files, if a component you're adding styles for
|
To separate EE-specific styles in SCSS files, if a component you're adding styles for
|
||||||
is limited to only EE, it is better to have a separate SCSS file in appropriate directory
|
is limited to only EE, it is better to have a separate SCSS file in appropriate directory
|
||||||
within `app/assets/stylesheets`.
|
within `app/assets/stylesheets`.
|
||||||
|
See [backporting changes](#backporting-changes) for instructions on how to merge changes safely.
|
||||||
|
|
||||||
In some cases, this is not entirely possible or creating dedicated SCSS file is an overkill,
|
In some cases, this is not entirely possible or creating dedicated SCSS file is an overkill,
|
||||||
e.g. a text style of some component is different for EE. In such cases,
|
e.g. a text style of some component is different for EE. In such cases,
|
||||||
@ -413,6 +414,19 @@ to avoid conflicts during CE to EE merge.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Backporting changes from EE to CE
|
||||||
|
|
||||||
|
When working in EE-specific features, you might have to tweak a few files that are not EE-specific. Here is a workflow to make sure those changes end up backported safely into CE too.
|
||||||
|
(This approach does not refer to changes introduced via [csslab](https://gitlab.com/gitlab-org/csslab/).)
|
||||||
|
|
||||||
|
1. **Make your changes in the EE branch.** If possible, keep a separated commit (to be squashed) to help backporting and review.
|
||||||
|
1. **Open merge request to EE project.**
|
||||||
|
1. **Apply the changes you made to CE files in a branch of the CE project.** (Tip: Use `patch` with the diff from your commit in EE branch)
|
||||||
|
1. **Open merge request to CE project**, referring it's a backport of EE changes and link to MR open in EE.
|
||||||
|
1. Once EE MR is merged, the MR towards CE can be merged. **But not before**.
|
||||||
|
|
||||||
|
**Note:** regarding SCSS, make sure the files living outside `/ee/` don't diverge between CE and EE projects.
|
||||||
|
|
||||||
## gitlab-svgs
|
## gitlab-svgs
|
||||||
|
|
||||||
Conflicts in `app/assets/images/icons.json` or `app/assets/images/icons.svg` can
|
Conflicts in `app/assets/images/icons.json` or `app/assets/images/icons.svg` can
|
||||||
|
Reference in New Issue
Block a user