From ef34a83b6ef6b6de5e78bf7ba26f744ab66d6c3e Mon Sep 17 00:00:00 2001 From: Kabiru Mwenja Date: Mon, 18 Mar 2024 16:48:47 +0300 Subject: [PATCH] [#53434] Incorrect spelling of GitLab module under project settings https://community.openproject.org/work_packages/53434 --- .../development-environment-docker/README.md | 2 +- .../configuration/plugins/README.md | 2 +- docs/release-notes/12/12-1-0/README.md | 2 +- .../integrations/gitlab-integration/README.md | 20 ++--- modules/gitlab_integration/README.md | 12 +-- .../config/locales/crowdin/af.yml | 4 +- .../config/locales/crowdin/ar.yml | 4 +- .../config/locales/crowdin/az.yml | 4 +- .../config/locales/crowdin/be.yml | 4 +- .../config/locales/crowdin/bg.yml | 4 +- .../config/locales/crowdin/ca.yml | 4 +- .../config/locales/crowdin/ckb-IR.yml | 4 +- .../config/locales/crowdin/cs.yml | 4 +- .../config/locales/crowdin/da.yml | 4 +- .../config/locales/crowdin/de.yml | 4 +- .../config/locales/crowdin/el.yml | 4 +- .../config/locales/crowdin/eo.yml | 4 +- .../config/locales/crowdin/es.yml | 4 +- .../config/locales/crowdin/et.yml | 4 +- .../config/locales/crowdin/eu.yml | 4 +- .../config/locales/crowdin/fa.yml | 4 +- .../config/locales/crowdin/fi.yml | 4 +- .../config/locales/crowdin/fil.yml | 4 +- .../config/locales/crowdin/fr.yml | 4 +- .../config/locales/crowdin/he.yml | 4 +- .../config/locales/crowdin/hi.yml | 4 +- .../config/locales/crowdin/hr.yml | 4 +- .../config/locales/crowdin/hu.yml | 4 +- .../config/locales/crowdin/id.yml | 4 +- .../config/locales/crowdin/it.yml | 4 +- .../config/locales/crowdin/ja.yml | 4 +- .../config/locales/crowdin/ka.yml | 4 +- .../config/locales/crowdin/kk.yml | 4 +- .../config/locales/crowdin/ko.yml | 4 +- .../config/locales/crowdin/lt.yml | 4 +- .../config/locales/crowdin/lv.yml | 4 +- .../config/locales/crowdin/mn.yml | 4 +- .../config/locales/crowdin/ms.yml | 4 +- .../config/locales/crowdin/ne.yml | 4 +- .../config/locales/crowdin/nl.yml | 4 +- .../config/locales/crowdin/no.yml | 4 +- .../config/locales/crowdin/pl.yml | 4 +- .../config/locales/crowdin/pt-BR.yml | 4 +- .../config/locales/crowdin/pt-PT.yml | 2 +- .../config/locales/crowdin/ro.yml | 4 +- .../config/locales/crowdin/ru.yml | 4 +- .../config/locales/crowdin/rw.yml | 4 +- .../config/locales/crowdin/si.yml | 4 +- .../config/locales/crowdin/sk.yml | 4 +- .../config/locales/crowdin/sl.yml | 4 +- .../config/locales/crowdin/sr.yml | 4 +- .../config/locales/crowdin/sv.yml | 4 +- .../config/locales/crowdin/th.yml | 4 +- .../config/locales/crowdin/tr.yml | 4 +- .../config/locales/crowdin/uk.yml | 4 +- .../config/locales/crowdin/uz.yml | 4 +- .../config/locales/crowdin/vi.yml | 4 +- .../config/locales/crowdin/zh-CN.yml | 4 +- .../config/locales/crowdin/zh-TW.yml | 4 +- .../gitlab_integration/config/locales/de.yml | 24 +++--- .../gitlab_integration/config/locales/en.yml | 4 +- .../notification_handler/issue_hook.rb | 10 +-- .../merge_request_hook.rb | 22 ++--- .../notification_handler/note_hook.rb | 34 ++++---- .../notification_handler/pipeline_hook.rb | 2 +- .../notification_handler/push_hook.rb | 14 ++-- .../notification_handler/system_hook.rb | 14 ++-- .../notification_handlers.rb | 26 +++--- .../patches/api/work_package_representer.rb | 4 +- .../services/upsert_gitlab_user.rb | 2 +- ...work_package_gitlab_issue_activity_spec.rb | 84 +++++++++---------- ...kage_gitlab_merge_request_activity_spec.rb | 84 +++++++++---------- .../features/work_package_gitlab_tab_spec.rb | 64 +++++++------- 73 files changed, 320 insertions(+), 320 deletions(-) diff --git a/docs/development/development-environment-docker/README.md b/docs/development/development-environment-docker/README.md index ffa759efbe7a..191755e3dcf2 100644 --- a/docs/development/development-environment-docker/README.md +++ b/docs/development/development-environment-docker/README.md @@ -396,7 +396,7 @@ docker compose --project-directory docker/dev/tls up -d ## GitLab CE Service -Within `docker/dev/gitlab` a compose file is provided for running local Gitlab instance with TLS support. This provides +Within `docker/dev/gitlab` a compose file is provided for running local GitLab instance with TLS support. This provides a production like environment for testing the OpenProject GitLab integration against a community edition GitLab instance accessible on `https://gitlab.local`. diff --git a/docs/installation-and-operations/configuration/plugins/README.md b/docs/installation-and-operations/configuration/plugins/README.md index 99faac1d6a5d..7282137ec9f7 100644 --- a/docs/installation-and-operations/configuration/plugins/README.md +++ b/docs/installation-and-operations/configuration/plugins/README.md @@ -24,7 +24,7 @@ group :opf_plugins do end ``` -**Note:** The Gitlab plugin is usually only compatible with the latest versions. For more information, please see the respective repository: https://github.com/btey/openproject-gitlab-integration/ +**Note:** The GitLab plugin is usually only compatible with the latest versions. For more information, please see the respective repository: https://github.com/btey/openproject-gitlab-integration/ The group `:opf_plugins` is generally recommended, but only required for plugins with custom frontend code that is picked up by webpack and output into their respective bundles. diff --git a/docs/release-notes/12/12-1-0/README.md b/docs/release-notes/12/12-1-0/README.md index 8c457b75608c..90ce53533abb 100644 --- a/docs/release-notes/12/12-1-0/README.md +++ b/docs/release-notes/12/12-1-0/README.md @@ -150,7 +150,7 @@ We added a new “Files” tab in the work package details. This way, you will h - Fixed: Users can't select public template projects in new project dialog \[[#40918](https://community.openproject.org/wp/40918)\] - Fixed: Meeting Time in iCalendar is wrong \[[#40941](https://community.openproject.org/wp/40941)\] - Fixed: Toolbar icons should be rendered in the "old" style and not the new rounded style (which is a work in progress) \[[#40957](https://community.openproject.org/wp/40957)\] -- Fixed: [Docker] - Gitlab integration plugin \[[#40959](https://community.openproject.org/wp/40959)\] +- Fixed: [Docker] - GitLab integration plugin \[[#40959](https://community.openproject.org/wp/40959)\] - Fixed: Project dropdown no longer autofocused \[[#40978](https://community.openproject.org/wp/40978)\] - Fixed: Not possible to copy work package to another project \[[#41005](https://community.openproject.org/wp/41005)\] - Fixed: Changed calendar styles applied to time entries component \[[#41013](https://community.openproject.org/wp/41013)\] diff --git a/docs/system-admin-guide/integrations/gitlab-integration/README.md b/docs/system-admin-guide/integrations/gitlab-integration/README.md index 424c1327dcf3..8b64ae7c1d84 100644 --- a/docs/system-admin-guide/integrations/gitlab-integration/README.md +++ b/docs/system-admin-guide/integrations/gitlab-integration/README.md @@ -13,7 +13,7 @@ OpenProject offers an integration with GitLab merge requests to link software de OpenProject work packages will directly display information from GitLab in a separate tab. -![Gitlab tab in an OpenProject work package](gitlab-tab.png) +![GitLab tab in an OpenProject work package](gitlab-tab.png) The tab shows all merge requests (MR) linked to a work package with the corresponding status (e.g. 'Ready' or 'Merged') as well as the state (e.g. 'success' or 'queued') of the GitLab actions configured to run for a MR. MRs and work packages are in an n:m relationship, so a work package can be linked to multiple merge requests and a merge request can be linked to multiple work packages. @@ -37,7 +37,7 @@ First you will need to create a user in OpenProject that has the permission to m ![GitLab role with required permissions in OpenProject](openproject-system-guide-gitlab-integration-role.png) -This user will then have to be **added to each project** with a role that allows them to see work packages and comment on them. +This user will then have to be **added to each project** with a role that allows them to see work packages and comment on them. ![GitLab user added as member to project with respective role](openproject-system-guide-gitlab-integration-project-member.png) @@ -48,7 +48,7 @@ Once the user is created you need to generate an OpenProject API token for this 3. Go to [*Access Tokens*](../../../getting-started/my-account/#access-tokens) 4. Click on **+ API token** -> Make sure you copy the generated key an securely save it, as you will not be able to retrieve it later. +> Make sure you copy the generated key an securely save it, as you will not be able to retrieve it later. You can then configure the necessary webhook in [GitLab](#gitlab). @@ -56,7 +56,7 @@ Finally you will need to activate the GitLabmodule under [Project settings](../. ![Activate a GitLab module in OpenProject](openproject-system-guide-gitlab-integration-project-modules.png) -Seeing the **GitLab** tab requires **Show GitLab content** permission, so this permission needs to be granted to all roles in a project allowed to see the tab. +Seeing the **GitLab** tab requires **Show GitLab content** permission, so this permission needs to be granted to all roles in a project allowed to see the tab. ### GitLab @@ -100,7 +100,7 @@ You can now publish your branch (you can also do this later, after making the ch With the branch opened, you can start the actual development work using your preferred tool to alter your codebase. -![Gitlab changes in a merge request changes](gitlab-changes.png) +![GitLab changes in a merge request changes](gitlab-changes.png) Once you are satisfied with the changes you can create a commit. Within the 'Git snippets' menu, OpenProject suggests a commit message for you based on the title and the URL of the work package. @@ -138,16 +138,16 @@ If the status of a merge request changes, it will be reflected in the OpenProjec ### Link issues -OpenProject GitLab integration allows linking GitLab issues directly with OpenProject work packages. +OpenProject GitLab integration allows linking GitLab issues directly with OpenProject work packages. -Initially when no issues were linked yet you will see the following message under **GitLab** tab. +Initially when no issues were linked yet you will see the following message under **GitLab** tab. ![](openproject-system-guide-gitlab-integration-no-issues.png) -You can either create a new issue in GitLab, or edit an already existing one. Enter the code **OP#388** into the issue title or description to create the link between the GitLab issue and the OpenProject work package. In this case 388 is the work package ID. +You can either create a new issue in GitLab, or edit an already existing one. Enter the code **OP#388** into the issue title or description to create the link between the GitLab issue and the OpenProject work package. In this case 388 is the work package ID. ![Link a GitLab issue to OpenProject work package](openproject-system-guide-gitlab-integration-gitlab-issue.png) -Once you save your changes or create a GitLab issue, it will become visible under the **GitLab** tab in OpenProject. +Once you save your changes or create a GitLab issue, it will become visible under the **GitLab** tab in OpenProject. -![New GitLab issues shown in OpenProject work packages](openproject-system-guide-gitlab-integration-new-issues.png) \ No newline at end of file +![New GitLab issues shown in OpenProject work packages](openproject-system-guide-gitlab-integration-new-issues.png) diff --git a/modules/gitlab_integration/README.md b/modules/gitlab_integration/README.md index f48a136354f4..c58d0eb74a2c 100644 --- a/modules/gitlab_integration/README.md +++ b/modules/gitlab_integration/README.md @@ -15,7 +15,7 @@ If there are labels related to the Issue or MR, a button with the label icon wil ## Overview OpenProject module for integration with GitLab: -* Latest Gitlab release tested: **16.6.2** +* Latest GitLab release tested: **16.6.2** * Latest OpenProject release tested: **13.1.2** (for OP v13.0.X use v2.1.2) The reference system is based on the same system as for GitHub integration. You can use a link to the work package or just use “OP#87” or "PP#87" in the title/description of the Issue/MR in GitLab. @@ -136,7 +136,7 @@ A typical workflow on GitLab side would be: ## Configuration -You will have to configure both **OpenProject** and **Gitlab** for the integration to work. +You will have to configure both **OpenProject** and **GitLab** for the integration to work. In case of **Docker** installation, follow the official OpenProject documentation [here](https://www.openproject.org/docs/installation-and-operations/installation/docker/#openproject-plugins). If for some reason the installation with Docker described in the official documentation does not work for you, you can try building your own docker image: * Clone from the Openproject Repo: `git clone https://github.com/opf/openproject.git --branch=stable/13 --depth=1 .` @@ -151,7 +151,7 @@ In case of [**manual**](https://www.openproject.org/docs/installation-and-operat - **Github plugin path:** `modules/github_integration` -- **Path to put Gitlab plugin:** `modules/gitlab_integration` +- **Path to put GitLab plugin:** `modules/gitlab_integration` But first you must modify **Gemfile.lock** and **Gemfile.modules** so that OpenProject detects the new module. @@ -198,13 +198,13 @@ bundle config set deployment First you will need to create a user in OpenProject that will make the comments. The user will have to be added to each project with a role that allows them to comment on work packages and change status. -Once the user is created you need to generate an OpenProject API token for it to use later on the Gitlab side: +Once the user is created you need to generate an OpenProject API token for it to use later on the GitLab side: * Login as the newly created user. * Go to My Account (click on Avatar in top right corner). * Go to Access Token. * Click on generate in the API row. -* Copy the generated key. You can now configure the necessary webhook in Gitlab. +* Copy the generated key. You can now configure the necessary webhook in GitLab. ### The webhook in GitLab @@ -227,7 +227,7 @@ You need to configure just two things in the webhook: Now the integration is set up on both sides and you can use it. -> **Note:** If you are installing and configuring OpenProject on the same server as GitLab you will need to enable in Gitlab the option [`Allow requests to the local network from web hooks and services`](https://docs.gitlab.com/ee/security/webhooks.html#allow-requests-to-the-local-network-from-webhooks-and-integrations) so that it can send the data locally to the OpenProject webhook since they will be on the same machine. +> **Note:** If you are installing and configuring OpenProject on the same server as GitLab you will need to enable in GitLab the option [`Allow requests to the local network from web hooks and services`](https://docs.gitlab.com/ee/security/webhooks.html#allow-requests-to-the-local-network-from-webhooks-and-integrations) so that it can send the data locally to the OpenProject webhook since they will be on the same machine. ## How to report bugs or issues diff --git a/modules/gitlab_integration/config/locales/crowdin/af.yml b/modules/gitlab_integration/config/locales/crowdin/af.yml index 353fee16fbf7..7b18b6783a8a 100644 --- a/modules/gitlab_integration/config/locales/crowdin/af.yml +++ b/modules/gitlab_integration/config/locales/crowdin/af.yml @@ -32,8 +32,8 @@ af: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ar.yml b/modules/gitlab_integration/config/locales/crowdin/ar.yml index e97023e6b49e..51ab3656f53d 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ar.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ar.yml @@ -32,8 +32,8 @@ ar: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/az.yml b/modules/gitlab_integration/config/locales/crowdin/az.yml index 7190ef40a67d..dad8ddb40a4a 100644 --- a/modules/gitlab_integration/config/locales/crowdin/az.yml +++ b/modules/gitlab_integration/config/locales/crowdin/az.yml @@ -32,8 +32,8 @@ az: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/be.yml b/modules/gitlab_integration/config/locales/crowdin/be.yml index 61ac5bb70d6b..60d5ac79e342 100644 --- a/modules/gitlab_integration/config/locales/crowdin/be.yml +++ b/modules/gitlab_integration/config/locales/crowdin/be.yml @@ -32,8 +32,8 @@ be: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/bg.yml b/modules/gitlab_integration/config/locales/crowdin/bg.yml index e115390d72b2..cc5c02db2a25 100644 --- a/modules/gitlab_integration/config/locales/crowdin/bg.yml +++ b/modules/gitlab_integration/config/locales/crowdin/bg.yml @@ -32,8 +32,8 @@ bg: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ca.yml b/modules/gitlab_integration/config/locales/crowdin/ca.yml index abfd4c6b9708..5cd36a2fd73b 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ca.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ca.yml @@ -32,8 +32,8 @@ ca: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ckb-IR.yml b/modules/gitlab_integration/config/locales/crowdin/ckb-IR.yml index df742eab9a30..38f227fdb899 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ckb-IR.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ckb-IR.yml @@ -32,8 +32,8 @@ ckb-IR: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/cs.yml b/modules/gitlab_integration/config/locales/crowdin/cs.yml index 4b3cd0599f47..13e8550e2a2b 100644 --- a/modules/gitlab_integration/config/locales/crowdin/cs.yml +++ b/modules/gitlab_integration/config/locales/crowdin/cs.yml @@ -32,8 +32,8 @@ cs: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/da.yml b/modules/gitlab_integration/config/locales/crowdin/da.yml index 02f5bbb0ecca..4060df38499c 100644 --- a/modules/gitlab_integration/config/locales/crowdin/da.yml +++ b/modules/gitlab_integration/config/locales/crowdin/da.yml @@ -32,8 +32,8 @@ da: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/de.yml b/modules/gitlab_integration/config/locales/crowdin/de.yml index bf4703d71528..f394e8900199 100644 --- a/modules/gitlab_integration/config/locales/crowdin/de.yml +++ b/modules/gitlab_integration/config/locales/crowdin/de.yml @@ -32,8 +32,8 @@ de: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/el.yml b/modules/gitlab_integration/config/locales/crowdin/el.yml index 1dca347ca302..e2b7e8974729 100644 --- a/modules/gitlab_integration/config/locales/crowdin/el.yml +++ b/modules/gitlab_integration/config/locales/crowdin/el.yml @@ -32,8 +32,8 @@ el: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/eo.yml b/modules/gitlab_integration/config/locales/crowdin/eo.yml index 9b66c3866d54..5439a191c75f 100644 --- a/modules/gitlab_integration/config/locales/crowdin/eo.yml +++ b/modules/gitlab_integration/config/locales/crowdin/eo.yml @@ -32,8 +32,8 @@ eo: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/es.yml b/modules/gitlab_integration/config/locales/crowdin/es.yml index 23ba25de98ef..283efc02dbcd 100644 --- a/modules/gitlab_integration/config/locales/crowdin/es.yml +++ b/modules/gitlab_integration/config/locales/crowdin/es.yml @@ -32,8 +32,8 @@ es: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/et.yml b/modules/gitlab_integration/config/locales/crowdin/et.yml index 0ec70c5e407f..88d9e4b5b562 100644 --- a/modules/gitlab_integration/config/locales/crowdin/et.yml +++ b/modules/gitlab_integration/config/locales/crowdin/et.yml @@ -32,8 +32,8 @@ et: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/eu.yml b/modules/gitlab_integration/config/locales/crowdin/eu.yml index 56356da577c3..fdefff653cd6 100644 --- a/modules/gitlab_integration/config/locales/crowdin/eu.yml +++ b/modules/gitlab_integration/config/locales/crowdin/eu.yml @@ -32,8 +32,8 @@ eu: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/fa.yml b/modules/gitlab_integration/config/locales/crowdin/fa.yml index 09ac73897cd4..3cc43186dbed 100644 --- a/modules/gitlab_integration/config/locales/crowdin/fa.yml +++ b/modules/gitlab_integration/config/locales/crowdin/fa.yml @@ -32,8 +32,8 @@ fa: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/fi.yml b/modules/gitlab_integration/config/locales/crowdin/fi.yml index 4376256e8fb0..5c60f1bfbfd7 100644 --- a/modules/gitlab_integration/config/locales/crowdin/fi.yml +++ b/modules/gitlab_integration/config/locales/crowdin/fi.yml @@ -32,8 +32,8 @@ fi: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/fil.yml b/modules/gitlab_integration/config/locales/crowdin/fil.yml index 6bac8ebab7f9..4177fd91396f 100644 --- a/modules/gitlab_integration/config/locales/crowdin/fil.yml +++ b/modules/gitlab_integration/config/locales/crowdin/fil.yml @@ -32,8 +32,8 @@ fil: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/fr.yml b/modules/gitlab_integration/config/locales/crowdin/fr.yml index 10f0bbd331ad..722fe35e01a9 100644 --- a/modules/gitlab_integration/config/locales/crowdin/fr.yml +++ b/modules/gitlab_integration/config/locales/crowdin/fr.yml @@ -32,8 +32,8 @@ fr: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/he.yml b/modules/gitlab_integration/config/locales/crowdin/he.yml index 921ef336af1f..f0e6266c81e6 100644 --- a/modules/gitlab_integration/config/locales/crowdin/he.yml +++ b/modules/gitlab_integration/config/locales/crowdin/he.yml @@ -32,8 +32,8 @@ he: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/hi.yml b/modules/gitlab_integration/config/locales/crowdin/hi.yml index 2c14642a706f..035d9869a516 100644 --- a/modules/gitlab_integration/config/locales/crowdin/hi.yml +++ b/modules/gitlab_integration/config/locales/crowdin/hi.yml @@ -32,8 +32,8 @@ hi: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/hr.yml b/modules/gitlab_integration/config/locales/crowdin/hr.yml index f4a746165e43..ea4a694bacef 100644 --- a/modules/gitlab_integration/config/locales/crowdin/hr.yml +++ b/modules/gitlab_integration/config/locales/crowdin/hr.yml @@ -32,8 +32,8 @@ hr: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/hu.yml b/modules/gitlab_integration/config/locales/crowdin/hu.yml index 3dea50942517..257b45b34344 100644 --- a/modules/gitlab_integration/config/locales/crowdin/hu.yml +++ b/modules/gitlab_integration/config/locales/crowdin/hu.yml @@ -32,8 +32,8 @@ hu: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/id.yml b/modules/gitlab_integration/config/locales/crowdin/id.yml index 93a6e55055ac..f719f3dd75dc 100644 --- a/modules/gitlab_integration/config/locales/crowdin/id.yml +++ b/modules/gitlab_integration/config/locales/crowdin/id.yml @@ -32,8 +32,8 @@ id: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/it.yml b/modules/gitlab_integration/config/locales/crowdin/it.yml index 8d76abec9a7f..292a2e047ab0 100644 --- a/modules/gitlab_integration/config/locales/crowdin/it.yml +++ b/modules/gitlab_integration/config/locales/crowdin/it.yml @@ -32,8 +32,8 @@ it: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ja.yml b/modules/gitlab_integration/config/locales/crowdin/ja.yml index a23993094463..0936bd9977d3 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ja.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ja.yml @@ -32,8 +32,8 @@ ja: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ka.yml b/modules/gitlab_integration/config/locales/crowdin/ka.yml index 5cadc646ae94..088726d0024f 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ka.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ka.yml @@ -32,8 +32,8 @@ ka: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/kk.yml b/modules/gitlab_integration/config/locales/crowdin/kk.yml index 20f355c06cb2..e63da5354bac 100644 --- a/modules/gitlab_integration/config/locales/crowdin/kk.yml +++ b/modules/gitlab_integration/config/locales/crowdin/kk.yml @@ -32,8 +32,8 @@ kk: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ko.yml b/modules/gitlab_integration/config/locales/crowdin/ko.yml index 92e5681aa88f..170c1e616024 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ko.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ko.yml @@ -32,8 +32,8 @@ ko: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/lt.yml b/modules/gitlab_integration/config/locales/crowdin/lt.yml index 884923690060..0c7ba744fb4e 100644 --- a/modules/gitlab_integration/config/locales/crowdin/lt.yml +++ b/modules/gitlab_integration/config/locales/crowdin/lt.yml @@ -32,8 +32,8 @@ lt: attributes: labels: invalid_schema: "turi būti masyvas raktų: spalva, antraštė" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Rodyti Gitlab turinį" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Rodyti GitLab turinį" gitlab_integration: merge_request_opened_comment: > **MR Atidarytas:** Suliejimo prašymą %{mr_number} [%{mr_title}](%{mr_url}) skirtą [%{repository}](%{repository_url}) atidarė [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/lv.yml b/modules/gitlab_integration/config/locales/crowdin/lv.yml index b431ad9332de..396309400f30 100644 --- a/modules/gitlab_integration/config/locales/crowdin/lv.yml +++ b/modules/gitlab_integration/config/locales/crowdin/lv.yml @@ -32,8 +32,8 @@ lv: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/mn.yml b/modules/gitlab_integration/config/locales/crowdin/mn.yml index 2acb00e047db..1da85a7a25c8 100644 --- a/modules/gitlab_integration/config/locales/crowdin/mn.yml +++ b/modules/gitlab_integration/config/locales/crowdin/mn.yml @@ -32,8 +32,8 @@ mn: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ms.yml b/modules/gitlab_integration/config/locales/crowdin/ms.yml index e890351ecaaa..f188537aacf5 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ms.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ms.yml @@ -32,8 +32,8 @@ ms: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ne.yml b/modules/gitlab_integration/config/locales/crowdin/ne.yml index 9bc71ded9498..3af24d0cd0c9 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ne.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ne.yml @@ -32,8 +32,8 @@ ne: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/nl.yml b/modules/gitlab_integration/config/locales/crowdin/nl.yml index ec0f7464a108..4887c22c9345 100644 --- a/modules/gitlab_integration/config/locales/crowdin/nl.yml +++ b/modules/gitlab_integration/config/locales/crowdin/nl.yml @@ -32,8 +32,8 @@ nl: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/no.yml b/modules/gitlab_integration/config/locales/crowdin/no.yml index 2074d01bb3d0..4b8c6b753805 100644 --- a/modules/gitlab_integration/config/locales/crowdin/no.yml +++ b/modules/gitlab_integration/config/locales/crowdin/no.yml @@ -32,8 +32,8 @@ attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/pl.yml b/modules/gitlab_integration/config/locales/crowdin/pl.yml index cd0e93d6200a..cb898cddd758 100644 --- a/modules/gitlab_integration/config/locales/crowdin/pl.yml +++ b/modules/gitlab_integration/config/locales/crowdin/pl.yml @@ -32,8 +32,8 @@ pl: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/pt-BR.yml b/modules/gitlab_integration/config/locales/crowdin/pt-BR.yml index 29d3a32f22a2..ab338568862d 100644 --- a/modules/gitlab_integration/config/locales/crowdin/pt-BR.yml +++ b/modules/gitlab_integration/config/locales/crowdin/pt-BR.yml @@ -32,8 +32,8 @@ pt: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/pt-PT.yml b/modules/gitlab_integration/config/locales/crowdin/pt-PT.yml index c539c6faaaf1..b2eb769052ab 100644 --- a/modules/gitlab_integration/config/locales/crowdin/pt-PT.yml +++ b/modules/gitlab_integration/config/locales/crowdin/pt-PT.yml @@ -33,7 +33,7 @@ pt: labels: invalid_schema: "deve ser um conjunto de hashes com as chaves: cor, título" project_module_gitlab: "GitLab" - permission_show_gitlab_content: "Mostre o conteúdo do Gitlab" + permission_show_gitlab_content: "Mostre o conteúdo do GitLab" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ro.yml b/modules/gitlab_integration/config/locales/crowdin/ro.yml index b181dc9c7081..709529ba0098 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ro.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ro.yml @@ -32,8 +32,8 @@ ro: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/ru.yml b/modules/gitlab_integration/config/locales/crowdin/ru.yml index bbada33fb148..a92acb565707 100644 --- a/modules/gitlab_integration/config/locales/crowdin/ru.yml +++ b/modules/gitlab_integration/config/locales/crowdin/ru.yml @@ -32,8 +32,8 @@ ru: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/rw.yml b/modules/gitlab_integration/config/locales/crowdin/rw.yml index ec8bf07fa815..2bc0174d98c5 100644 --- a/modules/gitlab_integration/config/locales/crowdin/rw.yml +++ b/modules/gitlab_integration/config/locales/crowdin/rw.yml @@ -32,8 +32,8 @@ rw: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/si.yml b/modules/gitlab_integration/config/locales/crowdin/si.yml index 86093605b137..3c580634d98b 100644 --- a/modules/gitlab_integration/config/locales/crowdin/si.yml +++ b/modules/gitlab_integration/config/locales/crowdin/si.yml @@ -32,8 +32,8 @@ si: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/sk.yml b/modules/gitlab_integration/config/locales/crowdin/sk.yml index 7a304f9ca331..b5c3fbcb9d7c 100644 --- a/modules/gitlab_integration/config/locales/crowdin/sk.yml +++ b/modules/gitlab_integration/config/locales/crowdin/sk.yml @@ -32,8 +32,8 @@ sk: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/sl.yml b/modules/gitlab_integration/config/locales/crowdin/sl.yml index 552f730d823d..9228a8993aa3 100644 --- a/modules/gitlab_integration/config/locales/crowdin/sl.yml +++ b/modules/gitlab_integration/config/locales/crowdin/sl.yml @@ -32,8 +32,8 @@ sl: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/sr.yml b/modules/gitlab_integration/config/locales/crowdin/sr.yml index d852ee89dcd3..49a1b8f411d2 100644 --- a/modules/gitlab_integration/config/locales/crowdin/sr.yml +++ b/modules/gitlab_integration/config/locales/crowdin/sr.yml @@ -32,8 +32,8 @@ sr: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/sv.yml b/modules/gitlab_integration/config/locales/crowdin/sv.yml index b105d6beda36..79e0bac01bdb 100644 --- a/modules/gitlab_integration/config/locales/crowdin/sv.yml +++ b/modules/gitlab_integration/config/locales/crowdin/sv.yml @@ -32,8 +32,8 @@ sv: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/th.yml b/modules/gitlab_integration/config/locales/crowdin/th.yml index 493b316187ca..46cbd0bf65ae 100644 --- a/modules/gitlab_integration/config/locales/crowdin/th.yml +++ b/modules/gitlab_integration/config/locales/crowdin/th.yml @@ -32,8 +32,8 @@ th: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/tr.yml b/modules/gitlab_integration/config/locales/crowdin/tr.yml index 83933692455a..5ac83fb51915 100644 --- a/modules/gitlab_integration/config/locales/crowdin/tr.yml +++ b/modules/gitlab_integration/config/locales/crowdin/tr.yml @@ -32,8 +32,8 @@ tr: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/uk.yml b/modules/gitlab_integration/config/locales/crowdin/uk.yml index e1bb946c1f72..7f48adfdc0b2 100644 --- a/modules/gitlab_integration/config/locales/crowdin/uk.yml +++ b/modules/gitlab_integration/config/locales/crowdin/uk.yml @@ -32,8 +32,8 @@ uk: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/uz.yml b/modules/gitlab_integration/config/locales/crowdin/uz.yml index 72d2cbc664b8..7a859df4eee2 100644 --- a/modules/gitlab_integration/config/locales/crowdin/uz.yml +++ b/modules/gitlab_integration/config/locales/crowdin/uz.yml @@ -32,8 +32,8 @@ uz: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/vi.yml b/modules/gitlab_integration/config/locales/crowdin/vi.yml index 1bbee701c019..6edc586ef49e 100644 --- a/modules/gitlab_integration/config/locales/crowdin/vi.yml +++ b/modules/gitlab_integration/config/locales/crowdin/vi.yml @@ -32,8 +32,8 @@ vi: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/zh-CN.yml b/modules/gitlab_integration/config/locales/crowdin/zh-CN.yml index 2247bb3676a7..df7a20589439 100644 --- a/modules/gitlab_integration/config/locales/crowdin/zh-CN.yml +++ b/modules/gitlab_integration/config/locales/crowdin/zh-CN.yml @@ -32,8 +32,8 @@ zh-CN: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/crowdin/zh-TW.yml b/modules/gitlab_integration/config/locales/crowdin/zh-TW.yml index d5e4cbe00db1..01490cacdcc4 100644 --- a/modules/gitlab_integration/config/locales/crowdin/zh-TW.yml +++ b/modules/gitlab_integration/config/locales/crowdin/zh-TW.yml @@ -32,8 +32,8 @@ zh-TW: attributes: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > **MR Opened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url}) has been opened by [%{gitlab_user}](%{gitlab_user_url}). diff --git a/modules/gitlab_integration/config/locales/de.yml b/modules/gitlab_integration/config/locales/de.yml index af758b73f718..dea74ea67fef 100644 --- a/modules/gitlab_integration/config/locales/de.yml +++ b/modules/gitlab_integration/config/locales/de.yml @@ -28,8 +28,8 @@ #++ de: - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > @@ -47,32 +47,32 @@ de: note_commit_referenced_comment: > **Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP in a Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}): - + %{commit_note} note_mr_referenced_comment: > **Referenced in MR:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP in Merge Request %{mr_number} [%{mr_title}](%{mr_url}) on [%{repository}](%{repository_url}): - + %{mr_note} note_mr_commented_comment: > **Commented in MR:** [%{gitlab_user}](%{gitlab_user_url}) commented this WP in Merge Request %{mr_number} [%{mr_title}](%{mr_url}) on [%{repository}](%{repository_url}): - + %{mr_note} note_issue_referenced_comment: > **Referenced in Issue:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP in Issue %{issue_number} [%{issue_title}](%{issue_url}) on [%{repository}](%{repository_url}): - + %{issue_note} note_issue_commented_comment: > **Commented in Issue:** [%{gitlab_user}](%{gitlab_user_url}) commented this WP in Issue %{issue_number} [%{issue_title}](%{issue_url}) on [%{repository}](%{repository_url}): - + %{issue_note} note_snippet_referenced_comment: > **Referenced in Snippet:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP in Snippet %{snippet_number} [%{snippet_title}](%{snippet_url}) on [%{repository}](%{repository_url}): - + %{snippet_note} issue_opened_referenced_comment: > **Issue Opened:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url}) @@ -84,12 +84,12 @@ de: **Issue Reopened:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url}) has been reopened by [%{gitlab_user}](%{gitlab_user_url}). push_single_commit_comment: > - **Pushed in MR:** [%{gitlab_user}](%{gitlab_user_url}) pushed [%{commit_number}](%{commit_url}) + **Pushed in MR:** [%{gitlab_user}](%{gitlab_user_url}) pushed [%{commit_number}](%{commit_url}) to [%{repository}](%{repository_url}) at %{commit_timestamp}: - + %{commit_note} push_multiple_commits_comment: > - **Pushed in MR:** [%{gitlab_user}](%{gitlab_user_url}) pushed multiple commits [%{commit_number}](%{commit_url}) + **Pushed in MR:** [%{gitlab_user}](%{gitlab_user_url}) pushed multiple commits [%{commit_number}](%{commit_url}) to [%{repository}](%{repository_url}) at %{commit_timestamp}: - + %{commit_note} diff --git a/modules/gitlab_integration/config/locales/en.yml b/modules/gitlab_integration/config/locales/en.yml index ce7058e0c16f..270e5b14426c 100644 --- a/modules/gitlab_integration/config/locales/en.yml +++ b/modules/gitlab_integration/config/locales/en.yml @@ -40,8 +40,8 @@ en: labels: invalid_schema: "must be an array of hashes with keys: color, title" - project_module_gitlab: "Gitlab" - permission_show_gitlab_content: "Show Gitlab content" + project_module_gitlab: "GitLab" + permission_show_gitlab_content: "Show GitLab content" gitlab_integration: merge_request_opened_comment: > diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb index 53b4148f6ea2..10974f6f43f0 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb @@ -30,14 +30,14 @@ module OpenProject::GitlabIntegration module NotificationHandler ## - # Handles Gitlab issue notifications. + # Handles GitLab issue notifications. class IssueHook include OpenProject::GitlabIntegration::NotificationHandler::Helper def process(payload_params) @payload = wrap_payload(payload_params) user = User.find_by_id(payload.open_project_user_id) - text = payload.object_attributes.title + ' - ' + payload.object_attributes.description + text = payload.object_attributes.title + " - " + payload.object_attributes.description work_packages = find_mentioned_work_packages(text, user) notes = generate_notes(payload) comment_on_referenced_work_packages(work_packages, user, notes) @@ -52,9 +52,9 @@ def generate_notes(payload) accepted_actions = %w[open reopen close] key_action = { - 'open' => 'opened', - 'reopen' => 'reopened', - 'close' => 'closed' + "open" => "opened", + "reopen" => "reopened", + "close" => "closed" }[payload.object_attributes.action] return nil unless accepted_actions.include? payload.object_attributes.action diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb index cc409d2f4c72..cd0e238c8cc8 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb @@ -30,7 +30,7 @@ module OpenProject::GitlabIntegration module NotificationHandler ## - # Handles Gitlab merge request notifications. + # Handles GitLab merge request notifications. class MergeRequestHook include OpenProject::GitlabIntegration::NotificationHandler::Helper @@ -48,15 +48,15 @@ def process(payload_params) return unless (accepted_actions.include? payload.object_attributes.action) || (accepted_states.include? payload.object_attributes.state) user = User.find_by_id(payload.open_project_user_id) - text = payload.object_attributes.title + ' - ' + payload.object_attributes.description + text = payload.object_attributes.title + " - " + payload.object_attributes.description work_packages = find_mentioned_work_packages(text, user) notes = generate_notes(payload) if (accepted_actions_for_comments.include? payload.object_attributes.action) || (accepted_states.include? payload.object_attributes.state) comment_on_referenced_work_packages(work_packages, user, notes) - if payload.object_attributes.state == 'opened' && update_status_on_new_mr + if payload.object_attributes.state == "opened" && update_status_on_new_mr status_on_referenced_work_packages(work_packages, user, wp_status_id_on_new_mr) - elsif payload.object_attributes.state == 'merged' && update_status_on_merged + elsif payload.object_attributes.state == "merged" && update_status_on_merged status_on_referenced_work_packages(work_packages, user, wp_status_id_on_merged) end end @@ -69,16 +69,16 @@ def process(payload_params) def generate_notes(payload) key = { - 'opened' => 'opened', - 'reopened' => 'reopened', - 'closed' => 'closed', - 'merged' => 'merged', - 'edited' => 'referenced', - 'referenced' => 'referenced' + "opened" => "opened", + "reopened" => "reopened", + "closed" => "closed", + "merged" => "merged", + "edited" => "referenced", + "referenced" => "referenced" }[payload.object_attributes.state] key_action = { - 'reopen' => 'reopened' + "reopen" => "reopened" }[payload.object_attributes.action] return nil unless key diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/note_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/note_hook.rb index 3bffd2683413..83055ac0a987 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/note_hook.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/note_hook.rb @@ -30,7 +30,7 @@ module OpenProject::GitlabIntegration module NotificationHandler ## - # Handles Gitlab comment notifications. + # Handles GitLab comment notifications. class NoteHook include OpenProject::GitlabIntegration::NotificationHandler::Helper @@ -40,35 +40,35 @@ def process(payload_params) user = User.find_by(id: payload.open_project_user_id) text = payload.object_attributes.note work_packages = find_mentioned_work_packages(text, user, payload.object_kind) - if work_packages.empty? && payload.object_attributes.noteable_type == 'Issue' + if work_packages.empty? && payload.object_attributes.noteable_type == "Issue" text = "#{payload.issue.title} - #{payload.object_attributes.note}" work_packages = find_mentioned_work_packages(text, user, payload.object_kind) work_packages_excluded = find_excluded_work_packages(text, user) work_packages = work_packages - work_packages_excluded unless work_packages_excluded.empty? return if work_packages.empty? - notes = generate_notes(payload, 'comment') - elsif work_packages.empty? && payload.object_attributes.noteable_type == 'Snippet' + notes = generate_notes(payload, "comment") + elsif work_packages.empty? && payload.object_attributes.noteable_type == "Snippet" text = "#{payload.snippet.title} - #{payload.object_attributes.note}" work_packages = find_mentioned_work_packages(text, user, payload.object_kind) work_packages_excluded = find_excluded_work_packages(text, user) work_packages = work_packages - work_packages_excluded unless work_packages_excluded.empty? return if work_packages.empty? - notes = generate_notes(payload, 'reference') - elsif work_packages.empty? && payload.object_attributes.noteable_type == 'MergeRequest' + notes = generate_notes(payload, "reference") + elsif work_packages.empty? && payload.object_attributes.noteable_type == "MergeRequest" text = "#{payload.merge_request.title} - #{payload.object_attributes.note}" work_packages = find_mentioned_work_packages(text, user, payload.object_kind) work_packages_excluded = find_excluded_work_packages(text, user) work_packages = work_packages - work_packages_excluded unless work_packages_excluded.empty? return if work_packages.empty? - notes = generate_notes(payload, 'comment') + notes = generate_notes(payload, "comment") else - notes = generate_notes(payload, 'reference') + notes = generate_notes(payload, "reference") end comment_on_referenced_work_packages(work_packages, user, notes) - if payload.object_attributes.noteable_type == 'Issue' + if payload.object_attributes.noteable_type == "Issue" upsert_issue(work_packages) end end @@ -80,7 +80,7 @@ def process(payload_params) # TODO: add key list to simplify the code... def generate_notes(payload, note_type) case payload.object_attributes.noteable_type - when 'Commit' + when "Commit" commit_id = payload.commit.id I18n.t("gitlab_integration.note_commit_referenced_comment", commit_id: commit_id[0, 8], @@ -90,8 +90,8 @@ def generate_notes(payload, note_type) repository_url: payload.repository.homepage, gitlab_user: payload.user.name, gitlab_user_url: payload.user.avatar_url) - when 'MergeRequest' - if note_type == 'comment' + when "MergeRequest" + if note_type == "comment" I18n.t("gitlab_integration.note_mr_commented_comment", mr_number: payload.merge_request.iid, mr_title: payload.merge_request.title, @@ -101,7 +101,7 @@ def generate_notes(payload, note_type) repository_url: payload.repository.homepage, gitlab_user: payload.user.name, gitlab_user_url: payload.user.avatar_url) - elsif note_type == 'reference' + elsif note_type == "reference" I18n.t("gitlab_integration.note_mr_referenced_comment", mr_number: payload.merge_request.iid, mr_title: payload.merge_request.title, @@ -112,8 +112,8 @@ def generate_notes(payload, note_type) gitlab_user: payload.user.name, gitlab_user_url: payload.user.avatar_url) end - when 'Issue' - if note_type == 'comment' + when "Issue" + if note_type == "comment" I18n.t("gitlab_integration.note_issue_commented_comment", issue_number: payload.issue.iid, issue_title: payload.issue.title, @@ -123,7 +123,7 @@ def generate_notes(payload, note_type) repository_url: payload.repository.homepage, gitlab_user: payload.user.name, gitlab_user_url: payload.user.avatar_url) - elsif note_type == 'reference' + elsif note_type == "reference" I18n.t("gitlab_integration.note_issue_referenced_comment", issue_number: payload.issue.iid, issue_title: payload.issue.title, @@ -134,7 +134,7 @@ def generate_notes(payload, note_type) gitlab_user: payload.user.name, gitlab_user_url: payload.user.avatar_url) end - when 'Snippet' + when "Snippet" I18n.t("gitlab_integration.note_snippet_referenced_comment", snippet_number: payload.snippet.id, snippet_title: payload.snippet.title, diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rb index c591e18957a3..23ba85f22689 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rb @@ -30,7 +30,7 @@ module OpenProject::GitlabIntegration module NotificationHandler ## - # Handles Gitlab pipeline notifications. + # Handles GitLab pipeline notifications. class PipelineHook include OpenProject::GitlabIntegration::NotificationHandler::Helper diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb index 772b8e625625..e374ec207e7d 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb @@ -30,17 +30,17 @@ module OpenProject::GitlabIntegration module NotificationHandler ## - # Handles Gitlab commit notifications. + # Handles GitLab commit notifications. class PushHook include OpenProject::GitlabIntegration::NotificationHandler::Helper def process(payload_params) @payload = wrap_payload(payload_params) - return nil unless payload.object_kind == 'push' + return nil unless payload.object_kind == "push" payload.commits.each do |commit| user = User.find_by_id(payload.open_project_user_id) - text = commit['title'] + " - " + commit['message'] + text = commit["title"] + " - " + commit["message"] work_packages = find_mentioned_work_packages(text, user) notes = generate_notes(commit, payload) comment_on_referenced_work_packages(work_packages, user, notes) @@ -52,12 +52,12 @@ def process(payload_params) attr_reader :payload def generate_notes(commit, payload) - commit_id = commit['id'] + commit_id = commit["id"] I18n.t("gitlab_integration.push_single_commit_comment", commit_number: commit_id[0, 8], - commit_note: commit['message'], - commit_url: commit['url'], - commit_timestamp: commit['timestamp'], + commit_note: commit["message"], + commit_url: commit["url"], + commit_timestamp: commit["timestamp"], repository: payload.repository.name, repository_url: payload.repository.homepage, gitlab_user: payload.user_name, diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb index 72a56f1fb63d..4703f816e28a 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb @@ -30,17 +30,17 @@ module OpenProject::GitlabIntegration module NotificationHandler ## - # Handles Gitlab commit notifications. + # Handles GitLab commit notifications. class SystemHook include OpenProject::GitlabIntegration::NotificationHandler::Helper def process(payload_params) @payload = wrap_payload(payload_params) - return nil unless payload.object_kind == 'push' + return nil unless payload.object_kind == "push" payload.commits.each do |commit| user = User.find_by_id(payload.open_project_user_id) - text = commit['title'] + " - " + commit['message'] + text = commit["title"] + " - " + commit["message"] work_packages = find_mentioned_work_packages(text, user) notes = generate_notes(commit, payload) comment_on_referenced_work_packages(work_packages, user, notes) @@ -52,12 +52,12 @@ def process(payload_params) attr_reader :payload def generate_notes(commit, payload) - commit_id = commit['id'] + commit_id = commit["id"] I18n.t("gitlab_integration.push_single_commit_comment", commit_number: commit_id[0, 8], - commit_note: commit['message'], - commit_url: commit['url'], - commit_timestamp: commit['timestamp'], + commit_note: commit["message"], + commit_url: commit["url"], + commit_timestamp: commit["timestamp"], repository: payload.repository.name, repository_url: payload.repository.homepage, gitlab_user: payload.user_name, diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb index e157bbddf651..d7a209dfdaca 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb @@ -27,12 +27,12 @@ # See docs/COPYRIGHT.rdoc for more details. #++ -require_relative 'notification_handler/helper' -require_relative 'notification_handler/issue_hook' -require_relative 'notification_handler/merge_request_hook' -require_relative 'notification_handler/note_hook' -require_relative 'notification_handler/push_hook' -require_relative 'notification_handler/system_hook' +require_relative "notification_handler/helper" +require_relative "notification_handler/issue_hook" +require_relative "notification_handler/merge_request_hook" +require_relative "notification_handler/note_hook" +require_relative "notification_handler/push_hook" +require_relative "notification_handler/system_hook" module OpenProject::GitlabIntegration ## @@ -40,37 +40,37 @@ module OpenProject::GitlabIntegration module NotificationHandlers class << self def merge_request_hook(payload) - with_logging('merge_request_hook') do + with_logging("merge_request_hook") do OpenProject::GitlabIntegration::NotificationHandler::MergeRequestHook.new.process(payload) end end def note_hook(payload) - with_logging('note_hook') do + with_logging("note_hook") do OpenProject::GitlabIntegration::NotificationHandler::NoteHook.new.process(payload) end end def push_hook(payload) - with_logging('push_hook') do + with_logging("push_hook") do OpenProject::GitlabIntegration::NotificationHandler::PushHook.new.process(payload) end end def issue_hook(payload) - with_logging('issue_hook') do + with_logging("issue_hook") do OpenProject::GitlabIntegration::NotificationHandler::IssueHook.new.process(payload) end end def pipeline_hook(payload) - with_logging('pipeline_hook') do + with_logging("pipeline_hook") do OpenProject::GitlabIntegration::NotificationHandler::PipelineHook.new.process(payload) end end def system_hook(payload) - with_logging('system_hook') do + with_logging("system_hook") do OpenProject::GitlabIntegration::NotificationHandler::SystemHook.new.process(payload) end end @@ -80,7 +80,7 @@ def system_hook(payload) def with_logging(event_hook) yield if block_given? rescue StandardError => e - Rails.logger.error "Failed to handle #{event_hook} from Gitlab: #{e} #{e.message}" + Rails.logger.error "Failed to handle #{event_hook} from GitLab: #{e} #{e.message}" raise e end end diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/api/work_package_representer.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/api/work_package_representer.rb index a83a247e96fe..881f2f803e48 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/api/work_package_representer.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/api/work_package_representer.rb @@ -49,7 +49,7 @@ def extension # rubocop:disable Metrics/AbcSize { href: api_v3_paths.gitlab_merge_requests_by_work_package(represented.id), - title: "Gitlab merge requests" + title: "GitLab merge requests" } end @@ -58,7 +58,7 @@ def extension # rubocop:disable Metrics/AbcSize { href: api_v3_paths.gitlab_issues_by_work_package(represented.id), - title: "Gitlab Issues" + title: "GitLab Issues" } end end diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb index e9f70e340e4b..36c04a29d490 100644 --- a/modules/gitlab_integration/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb +++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb @@ -32,7 +32,7 @@ module OpenProject module GitlabIntegration module Services ## - # Takes user data coming from Gitlab webhook data and stores + # Takes user data coming from GitLab webhook data and stores # them as a `GitlabUser`. # If the `GitlabUser` already exists, it is updated. # diff --git a/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb b/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb index 536e5ecfc622..f3125f9858ac 100644 --- a/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb +++ b/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb @@ -1,19 +1,19 @@ # frozen_string_literal: true -require 'spec_helper' +require "spec_helper" -RSpec.describe 'Work Package Activity Tab', - 'Comments by Gitlab', +RSpec.describe "Work Package Activity Tab", + "Comments by GitLab", :js, :with_cuprite do - shared_let(:gitlab_system_user) { create(:admin, firstname: 'Gitlab', lastname: 'System User') } + shared_let(:gitlab_system_user) { create(:admin, firstname: "GitLab", lastname: "System User") } shared_let(:admin) { create(:admin) } shared_let(:project) { create(:project, enabled_module_names: Setting.default_projects_modules + %w[activity]) } shared_let(:work_package) { create(:work_package, project:) } - shared_let(:issue_author) { create(:gitlab_user, gitlab_username: 'i_am_the_author') } - shared_let(:issue_closing_user) { create(:gitlab_user, gitlab_username: 'i_closed') } + shared_let(:issue_author) { create(:gitlab_user, gitlab_username: "i_am_the_author") } + shared_let(:issue_closing_user) { create(:gitlab_user, gitlab_username: "i_closed") } shared_let(:issue) do create(:gitlab_issue, @@ -28,51 +28,51 @@ def trigger_issue_action end let(:mr_description) { "Mentioning OP##{work_package.id}" } - let(:gitlab_action) { 'close' } - let(:issue_state) { 'closed' } + let(:gitlab_action) { "close" } + let(:issue_state) { "closed" } let(:labels) { [] } let(:payload) do { - 'open_project_user_id' => gitlab_system_user.id, - 'object_kind' => "issue", - 'event_type' => "issue", - 'user' => { - 'id' => issue_closing_user.gitlab_id, - 'name' => issue_closing_user.gitlab_name, - 'username' => issue_closing_user.gitlab_username, - 'avatar_url' => issue_closing_user.gitlab_avatar_url, - 'email' => issue_closing_user.gitlab_email + "open_project_user_id" => gitlab_system_user.id, + "object_kind" => "issue", + "event_type" => "issue", + "user" => { + "id" => issue_closing_user.gitlab_id, + "name" => issue_closing_user.gitlab_name, + "username" => issue_closing_user.gitlab_username, + "avatar_url" => issue_closing_user.gitlab_avatar_url, + "email" => issue_closing_user.gitlab_email }, - 'object_attributes' => { - 'action' => gitlab_action, - 'assignee_id' => nil, - 'author_id' => 1, - 'created_at' => '2024-03-04 16:09:08 UTC', - 'title' => 'An Issue title', - 'description' => mr_description, - 'draft' => false, - 'work_in_progress' => false, - 'state' => issue_state, - 'id' => issue.gitlab_id, - 'iid' => issue.gitlab_id, - 'head_pipeline_id' => nil, - 'url' => 'http://79dfcd98b723/root/hot_do/-/issues/4', - 'updated_at' => Time.current.iso8601 + "object_attributes" => { + "action" => gitlab_action, + "assignee_id" => nil, + "author_id" => 1, + "created_at" => "2024-03-04 16:09:08 UTC", + "title" => "An Issue title", + "description" => mr_description, + "draft" => false, + "work_in_progress" => false, + "state" => issue_state, + "id" => issue.gitlab_id, + "iid" => issue.gitlab_id, + "head_pipeline_id" => nil, + "url" => "http://79dfcd98b723/root/hot_do/-/issues/4", + "updated_at" => Time.current.iso8601 }, - 'labels' => labels, - 'repository' => { - 'name' => "Hot Do", - 'url' => "git@79dfcd98b723:root/hot_do.git", - 'description' => nil, - 'homepage' => 'http://79dfcd98b723/root/hot_do/-/issues/4' + "labels" => labels, + "repository" => { + "name" => "Hot Do", + "url" => "git@79dfcd98b723:root/hot_do.git", + "description" => nil, + "homepage" => "http://79dfcd98b723/root/hot_do/-/issues/4" } } end let(:work_package_page) { Pages::SplitWorkPackage.new(work_package, project) } - context 'when there is an issue event' do + context "when there is an issue event" do before do trigger_issue_action login_as admin @@ -80,7 +80,7 @@ def trigger_issue_action context "and I visit the work package's activity tab" do before do - work_package_page.visit_tab! 'activity' + work_package_page.visit_tab! "activity" work_package_page.ensure_page_loaded end @@ -89,8 +89,8 @@ def trigger_issue_action "has been closed by #{issue_closing_user.gitlab_name}." end - it 'renders a comment referencing the issue' do - expect(page).to have_css('.user-comment > .message', text: expected_comment) + it "renders a comment referencing the issue" do + expect(page).to have_css(".user-comment > .message", text: expected_comment) end end end diff --git a/modules/gitlab_integration/spec/features/work_package_gitlab_merge_request_activity_spec.rb b/modules/gitlab_integration/spec/features/work_package_gitlab_merge_request_activity_spec.rb index c018ba365879..ff76974a3df4 100644 --- a/modules/gitlab_integration/spec/features/work_package_gitlab_merge_request_activity_spec.rb +++ b/modules/gitlab_integration/spec/features/work_package_gitlab_merge_request_activity_spec.rb @@ -1,19 +1,19 @@ # frozen_string_literal: true -require 'spec_helper' +require "spec_helper" -RSpec.describe 'Work Package Activity Tab', - 'Comments by Gitlab', +RSpec.describe "Work Package Activity Tab", + "Comments by GitLab", :js, :with_cuprite do - shared_let(:gitlab_system_user) { create(:admin, firstname: 'Gitlab', lastname: 'System User') } + shared_let(:gitlab_system_user) { create(:admin, firstname: "GitLab", lastname: "System User") } shared_let(:admin) { create(:admin) } shared_let(:project) { create(:project, enabled_module_names: Setting.default_projects_modules + %w[activity]) } shared_let(:work_package) { create(:work_package, project:) } - shared_let(:merge_request_author) { create(:gitlab_user, gitlab_username: 'i_am_the_author') } - shared_let(:merge_request_merging_user) { create(:gitlab_user, gitlab_username: 'i_merged') } + shared_let(:merge_request_author) { create(:gitlab_user, gitlab_username: "i_am_the_author") } + shared_let(:merge_request_merging_user) { create(:gitlab_user, gitlab_username: "i_merged") } shared_let(:merge_request) do create(:gitlab_merge_request, gitlab_user: merge_request_author) @@ -27,51 +27,51 @@ def trigger_merge_request_action end let(:mr_description) { "Mentioning OP##{work_package.id}" } - let(:gitlab_action) { 'merge' } - let(:mr_state) { 'merged' } + let(:gitlab_action) { "merge" } + let(:mr_state) { "merged" } let(:mr_draft) { false } let(:payload) do { - 'open_project_user_id' => gitlab_system_user.id, - 'object_kind' => "merge_request", - 'event_type' => "merge_request", - 'user' => { - 'id' => merge_request_merging_user.gitlab_id, - 'name' => merge_request_merging_user.gitlab_name, - 'username' => merge_request_merging_user.gitlab_username, - 'avatar_url' => merge_request_merging_user.gitlab_avatar_url, - 'email' => merge_request_merging_user.gitlab_email + "open_project_user_id" => gitlab_system_user.id, + "object_kind" => "merge_request", + "event_type" => "merge_request", + "user" => { + "id" => merge_request_merging_user.gitlab_id, + "name" => merge_request_merging_user.gitlab_name, + "username" => merge_request_merging_user.gitlab_username, + "avatar_url" => merge_request_merging_user.gitlab_avatar_url, + "email" => merge_request_merging_user.gitlab_email }, - 'object_attributes' => { - 'action' => gitlab_action, - 'assignee_id' => nil, - 'author_id' => 1, - 'created_at' => '2024-03-04 16:09:08 UTC', - 'title' => 'A MR title', - 'description' => mr_description, - 'draft' => mr_draft, - 'work_in_progress' => mr_draft, - 'state' => mr_state, - 'head_pipeline_id' => nil, - 'id' => merge_request.gitlab_id, - 'iid' => merge_request.gitlab_id, - 'url' => 'http://79dfcd98b723/root/hot_do/-/merge_requests/4', - 'updated_at' => Time.current.iso8601 + "object_attributes" => { + "action" => gitlab_action, + "assignee_id" => nil, + "author_id" => 1, + "created_at" => "2024-03-04 16:09:08 UTC", + "title" => "A MR title", + "description" => mr_description, + "draft" => mr_draft, + "work_in_progress" => mr_draft, + "state" => mr_state, + "head_pipeline_id" => nil, + "id" => merge_request.gitlab_id, + "iid" => merge_request.gitlab_id, + "url" => "http://79dfcd98b723/root/hot_do/-/merge_requests/4", + "updated_at" => Time.current.iso8601 }, - 'labels' => [], - 'repository' => { - 'name' => "Hot Do", - 'url' => "git@79dfcd98b723:root/hot_do.git", - 'description' => nil, - 'homepage' => 'http://79dfcd98b723/root/hot_do/-/merge_requests/4' + "labels" => [], + "repository" => { + "name" => "Hot Do", + "url" => "git@79dfcd98b723:root/hot_do.git", + "description" => nil, + "homepage" => "http://79dfcd98b723/root/hot_do/-/merge_requests/4" } } end let(:work_package_page) { Pages::SplitWorkPackage.new(work_package, project) } - context 'when there is a merge request event' do + context "when there is a merge request event" do before do trigger_merge_request_action login_as admin @@ -79,7 +79,7 @@ def trigger_merge_request_action context "and I visit the work package's activity tab" do before do - work_package_page.visit_tab! 'activity' + work_package_page.visit_tab! "activity" work_package_page.ensure_page_loaded end @@ -89,8 +89,8 @@ def trigger_merge_request_action "#{merge_request_merging_user.gitlab_name}." end - it 'renders a comment referencing the Merge Request' do - expect(page).to have_css('.user-comment > .message', text: expected_comment) + it "renders a comment referencing the Merge Request" do + expect(page).to have_css(".user-comment > .message", text: expected_comment) end end end diff --git a/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb b/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb index dc9d8f35015c..bdbda78cb00d 100644 --- a/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb +++ b/modules/gitlab_integration/spec/features/work_package_gitlab_tab_spec.rb @@ -26,11 +26,11 @@ # See COPYRIGHT and LICENSE files for more details. #++ -require 'spec_helper' +require "spec_helper" require_module_spec_helper -require_relative '../support/pages/work_package_gitlab_tab' +require_relative "../support/pages/work_package_gitlab_tab" -RSpec.describe 'Open the Gitlab tab', :js do +RSpec.describe "Open the GitLab tab", :js do let(:user) { create(:user, member_with_roles: { project => role }) } let(:role) do @@ -45,17 +45,17 @@ enabled_module_names: %i[work_package_tracking gitlab]) end - let(:work_package) { create(:work_package, project:, subject: 'A test work_package') } + let(:work_package) { create(:work_package, project:, subject: "A test work_package") } let(:tabs) { Components::WorkPackages::Tabs.new(work_package) } - let(:gitlab_tab_element) { find('.op-tab-row--link_selected', text: 'GITLAB') } + let(:gitlab_tab_element) { find(".op-tab-row--link_selected", text: "GITLAB") } let(:gitlab_tab) { Pages::GitlabTab.new(work_package.id) } - let(:issue) { create(:gitlab_issue, :open, work_packages: [work_package], title: 'A Test Issue title') } - let(:merge_request) { create(:gitlab_merge_request, :open, work_packages: [work_package], title: 'A Test MR title') } + let(:issue) { create(:gitlab_issue, :open, work_packages: [work_package], title: "A Test Issue title") } + let(:merge_request) { create(:gitlab_merge_request, :open, work_packages: [work_package], title: "A Test MR title") } let(:pipeline) do - create(:gitlab_pipeline, gitlab_merge_request: merge_request, name: 'a pipeline name') + create(:gitlab_pipeline, gitlab_merge_request: merge_request, name: "a pipeline name") end shared_examples_for "a gitlab tab" do @@ -68,72 +68,72 @@ # compares the clipboard content by drafting a new comment, pressing ctrl+v and # comparing the pasted content against the provided text def expect_clipboard_content(text) - work_package_page.switch_to_tab(tab: 'activity') + work_package_page.switch_to_tab(tab: "activity") work_package_page.trigger_edit_comment - work_package_page.update_comment(' ') # ensure the comment editor is fully loaded + work_package_page.update_comment(" ") # ensure the comment editor is fully loaded gitlab_tab.paste_clipboard_content expect(work_package_page.add_comment_container).to have_content(text) - work_package_page.switch_to_tab(tab: 'gitlab') + work_package_page.switch_to_tab(tab: "gitlab") end - it 'shows the gitlab tab when the user is allowed to see it' do + it "shows the gitlab tab when the user is allowed to see it" do work_package_page.visit! - work_package_page.switch_to_tab(tab: 'gitlab') + work_package_page.switch_to_tab(tab: "gitlab") tabs.expect_counter(gitlab_tab_element, 2) gitlab_tab.git_actions_menu_button.click gitlab_tab.git_actions_copy_branch_name_button.click - expect(page).to have_text('Copied!') + expect(page).to have_text("Copied!") expect_clipboard_content("#{work_package.type.name.downcase}/#{work_package.id}-a-test-work_package") - expect(page).to have_text('A Test Issue title') - expect(page).to have_text('Open') + expect(page).to have_text("A Test Issue title") + expect(page).to have_text("Open") - expect(page).to have_text('A Test MR title') - expect(page).to have_text('Pending') + expect(page).to have_text("A Test MR title") + expect(page).to have_text("Pending") end - context 'when there are no merge requests or issues' do + context "when there are no merge requests or issues" do let(:pipeline) { nil } let(:merge_request) { nil } let(:issue) { nil } - it 'shows the gitlab tab with an empty message' do + it "shows the gitlab tab with an empty message" do work_package_page.visit! - work_package_page.switch_to_tab(tab: 'gitlab') + work_package_page.switch_to_tab(tab: "gitlab") tabs.expect_no_counter(gitlab_tab_element) - expect(page).to have_content('There are no issues linked yet.') + expect(page).to have_content("There are no issues linked yet.") expect(page).to have_content("Link an existing issue by using the code OP##{work_package.id} " \ "(or PP##{work_package.id} for private links) in the issue title/description " \ "or create a new issue") - expect(page).to have_content('There are no merge requests') + expect(page).to have_content("There are no merge requests") expect(page).to have_content("Link an existing MR by using the code OP##{work_package.id}") end end - context 'when the user does not have the permissions to see the gitlab tab' do + context "when the user does not have the permissions to see the gitlab tab" do let(:role) do create(:project_role, permissions: %i(view_work_packages add_work_package_notes)) end - it 'does not show the gitlab tab' do + it "does not show the gitlab tab" do work_package_page.visit! gitlab_tab.expect_tab_not_present end end - context 'when the gitlab integration is not enabled for the project' do - let(:project) { create(:project, disable_modules: 'gitlab') } + context "when the gitlab integration is not enabled for the project" do + let(:project) { create(:project, disable_modules: "gitlab") } - it 'does not show the gitlab tab' do + it "does not show the gitlab tab" do work_package_page.visit! gitlab_tab.expect_tab_not_present @@ -141,15 +141,15 @@ def expect_clipboard_content(text) end end - describe 'work package full view' do + describe "work package full view" do let(:work_package_page) { Pages::FullWorkPackage.new(work_package) } - it_behaves_like 'a gitlab tab' + it_behaves_like "a gitlab tab" end - describe 'work package split view' do + describe "work package split view" do let(:work_package_page) { Pages::SplitWorkPackage.new(work_package) } - it_behaves_like 'a gitlab tab' + it_behaves_like "a gitlab tab" end end