<commit_before># How to add a new repository into the Mender ecosystem

Adding a new repository requires changes in several places. This document aims to be a full recipe of all components and steps that require modifications.

It is recommended to take a repository in the same domain (backend, client, etc.) as a model when going through the different phases.

## GitHub: create repo and give access

Create the new repository. Consult with the team, epic owner or product owner if the repository is to be open or private

By default, we give write access for `developers` and `rndity` groups. Remove any individual user.

ref https://github.com/mendersoftware/REPOSITORY/settings/access

### Enterprise fork

Create an empty repository in GitHub and push the OS version of it. Notable changes to be made:

1. Change the license to All Rights Reserved and commit
2. Update the `.gitlab-ci.yml` file: 
  * update the `DOCKER_REPOSITORY` in `variables` section to the following value: `registry.mender.io/mendersoftware/<SERVICENAME>-enterprise` - see [example](https://github.com/mendersoftware/deployments-enterprise/blob/master/.gitlab-ci.yml#L2)
  * set the `FIRST_ENT_COMMIT` in the `test:check-license` job to the commit sha from point 1 (see [example](https://github.com/mendersoftware/deployments-enterprise/blob/master/.gitlab-ci.yml#L35))
3. Modify references in README
4. Modify variables in pipeline
5. Create repository, see Docker image(s) below

## GitLab: project

> NOTE: It may happen that the mender-test-bot has already created the GitLab
> project for you. In this case, you can move straight to point 5 below.
> **However**, if the repository should be public, make sure you reconfigure
> the project visibility in GitLab.

To create the project in GitLab:
<commit_msg>Remove rndity from the user privileges in a newly created group<commit_after># How to add a new repository into the Mender ecosystem

Adding a new repository requires changes in several places. This document aims to be a full recipe of all components and steps that require modifications.

It is recommended to take a repository in the same domain (backend, client, etc.) as a model when going through the different phases.

## GitHub: create repo and give access

Create the new repository. Consult with the team, epic owner or product owner if the repository is to be open or private

By default, we give write access for the `developers` group. Remove any individual user.

ref https://github.com/mendersoftware/REPOSITORY/settings/access

### Enterprise fork

Create an empty repository in GitHub and push the OS version of it. Notable changes to be made:

1. Change the license to All Rights Reserved and commit
2. Update the `.gitlab-ci.yml` file: 
  * update the `DOCKER_REPOSITORY` in `variables` section to the following value: `registry.mender.io/mendersoftware/<SERVICENAME>-enterprise` - see [example](https://github.com/mendersoftware/deployments-enterprise/blob/master/.gitlab-ci.yml#L2)
  * set the `FIRST_ENT_COMMIT` in the `test:check-license` job to the commit sha from point 1 (see [example](https://github.com/mendersoftware/deployments-enterprise/blob/master/.gitlab-ci.yml#L35))
3. Modify references in README
4. Modify variables in pipeline
5. Create repository, see Docker image(s) below

## GitLab: project

> NOTE: It may happen that the mender-test-bot has already created the GitLab
> project for you. In this case, you can move straight to point 5 below.
> **However**, if the repository should be public, make sure you reconfigure
> the project visibility in GitLab.

To create the project in GitLab:

{'fraction_non_alphanumeric': 0.07288790723357261, 'fraction_numerical': 0.005521811154058531, 'mean_word_length': 4.556748466257669, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4610737', 'n_tokens_mistral': 1019, 'n_tokens_neox': 975, 'n_words': 479}