OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Pre-release version with copyright
Tey, Benjamin06ca5d39c3b3
diff --git a/app/models/gitlab_merge_request.rb b/app/models/gitlab_merge_request.rbnew file mode 100644index 00000000000..6218467d5e3--- /dev/null+++ b/app/models/gitlab_merge_request.rb@@ -0,0 +1,101 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++class GitlabMergeRequest < ApplicationRecord+ LABEL_KEYS = %w[color title].freeze++ has_and_belongs_to_many :work_packages+ has_many :gitlab_pipelines, dependent: :destroy+ has_many :github_check_runs, dependent: :destroy+ belongs_to :gitlab_user, optional: true+ belongs_to :merged_by, optional: true, class_name: 'GitlabUser'++ enum state: {+ opened: 'opened',+ merged: 'merged',+ closed: 'closed'+ }++ validates_presence_of :gitlab_html_url,+ :number,+ :repository,+ :state,+ :title,+ :gitlab_updated_at+ validates_presence_of :body,+ unless: :partial?+ validate :validate_labels_schema++ scope :without_work_package, -> { left_outer_joins(:work_packages).where(work_packages: { id: nil }) }++ def self.find_by_gitlab_identifiers(id: nil, url: nil, initialize: false)+ raise ArgumentError, "needs an id or an url" if id.nil? && url.blank?++ found = where(gitlab_id: id).or(where(gitlab_html_url: url)).take++ if found+ found+ elsif initialize+ new(gitlab_id: id, gitlab_html_url: url)+ end+ end++ ##+ # When a MR lives long enough and receives many pushes, the same pipeline CI can be run multiple times.+ # This method only returns the latest.++ def latest_pipelines+ with_logging do+ gitlab_pipelines.select("DISTINCT ON (gitlab_pipelines.project_id, gitlab_pipelines.name) *")+ .order(project_id: :asc, name: :asc, started_at: :desc)+ end+ end++ def partial?+ [body].all?(&:nil?)+ end++ private++ def validate_labels_schema+ return if labels.nil?+ return if labels.all? { |label| label.keys.sort == LABEL_KEYS }++ errors.add(:labels, 'invalid schema')+ end++ def with_logging+ yield if block_given?+ rescue StandardError => e+ Rails.logger.error "Error at latest_pipeline: #{e} #{e.message}"+ raise e+ end+enddiff --git a/app/models/gitlab_pipeline.rb b/app/models/gitlab_pipeline.rbnew file mode 100644index 00000000000..338899c757c--- /dev/null+++ b/app/models/gitlab_pipeline.rb@@ -0,0 +1,48 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++class GitlabPipeline < ApplicationRecord+ belongs_to :gitlab_merge_request, touch: true++ # TODO: confirm with the gitlab documentation what are the different statuses.+ enum status: {+ completed: 'completed',+ in_progress: 'in_progress',+ success: 'success',+ queued: 'queued'+ }++ validates_presence_of :gitlab_user_avatar_url,+ :gitlab_html_url,+ :gitlab_id,+ :status,+ :name+enddiff --git a/app/models/gitlab_user.rb b/app/models/gitlab_user.rbnew file mode 100644index 00000000000..31d4212bcff--- /dev/null+++ b/app/models/gitlab_user.rb@@ -0,0 +1,40 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++class GitlabUser < ApplicationRecord+ has_many :gitlab_merge_requests++ validates_presence_of :gitlab_id,+ :gitlab_name,+ :gitlab_username,+ :gitlab_email,+ :gitlab_avatar_url+enddiff --git a/app/workers/cron/clear_old_merge_requests_job.rb b/app/workers/cron/clear_old_merge_requests_job.rbnew file mode 100644index 00000000000..80f85238ea6--- /dev/null+++ b/app/workers/cron/clear_old_merge_requests_job.rb@@ -0,0 +1,44 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module Cron+ class ClearOldMergeRequestsJob < CronJob+ priority_number :low++ # runs at 1:25 nightly+ self.cron_expression = '25 1 * * *'++ def perform+ GitlabMergeRequest.without_work_package+ .find_each(&:destroy!)+ end+ end+enddiff --git a/config/locales/crowdin/ar.yml b/config/locales/crowdin/ar.ymlindex 44f4ee2918e..d89f971c8b4 100644--- a/config/locales/crowdin/ar.yml+++ b/config/locales/crowdin/ar.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++ar:+ 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})@@ -30,6 +39,9 @@ ar:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ ar:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/bg.yml b/config/locales/crowdin/bg.ymlindex b4fdf7f5dee..02fd6265944 100644--- a/config/locales/crowdin/bg.yml+++ b/config/locales/crowdin/bg.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++bg:+ 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})@@ -30,6 +39,9 @@ bg:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ bg:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/ca.yml b/config/locales/crowdin/ca.ymlindex 140b08144c4..bf38da46bea 100644--- a/config/locales/crowdin/ca.yml+++ b/config/locales/crowdin/ca.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++ca:+ 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})@@ -30,6 +39,9 @@ ca:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ ca:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/cs.yml b/config/locales/crowdin/cs.ymlindex 6d8f297f882..8cddda63ec4 100644--- a/config/locales/crowdin/cs.yml+++ b/config/locales/crowdin/cs.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++cs:+ 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})@@ -30,6 +39,9 @@ cs:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ cs:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/da.yml b/config/locales/crowdin/da.ymlindex 0545f2c6e12..b92d366080f 100644--- a/config/locales/crowdin/da.yml+++ b/config/locales/crowdin/da.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++da:+ 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})@@ -30,6 +39,9 @@ da:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ da:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/de.yml b/config/locales/crowdin/de.ymlindex e36fbc3514b..fdec7b9cc12 100644--- a/config/locales/crowdin/de.yml+++ b/config/locales/crowdin/de.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++de:+ 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})@@ -30,6 +39,9 @@ de:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ de:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/el.yml b/config/locales/crowdin/el.ymlindex c0269806d7c..32ece46687e 100644--- a/config/locales/crowdin/el.yml+++ b/config/locales/crowdin/el.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++el:+ 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})@@ -30,6 +39,9 @@ el:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ el:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/es.yml b/config/locales/crowdin/es.ymlindex 29dd7d62c96..b241daab87f 100644--- a/config/locales/crowdin/es.yml+++ b/config/locales/crowdin/es.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++es:+ 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})@@ -30,6 +39,9 @@ es:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ es:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/fi.yml b/config/locales/crowdin/fi.ymlindex 11dce857a10..96db43ec7d0 100644--- a/config/locales/crowdin/fi.yml+++ b/config/locales/crowdin/fi.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++fi:+ 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})@@ -30,6 +39,9 @@ fi:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ fi:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/fil.yml b/config/locales/crowdin/fil.ymlindex cc93fed5b82..8f3c45b2f19 100644--- a/config/locales/crowdin/fil.yml+++ b/config/locales/crowdin/fil.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++fil:+ 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})@@ -30,6 +39,9 @@ fil:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ fil:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/fr.yml b/config/locales/crowdin/fr.ymlindex 5efbb9c5c2d..64d8c8a87f7 100644--- a/config/locales/crowdin/fr.yml+++ b/config/locales/crowdin/fr.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++fr:+ 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})@@ -30,6 +39,9 @@ fr:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ fr:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/hr.yml b/config/locales/crowdin/hr.ymlindex d7fb39a1356..c242ff118e5 100644--- a/config/locales/crowdin/hr.yml+++ b/config/locales/crowdin/hr.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++hr:+ 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})@@ -30,6 +39,9 @@ hr:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ hr:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/hu.yml b/config/locales/crowdin/hu.ymlindex f73bc81ea15..cd0a5322b37 100644--- a/config/locales/crowdin/hu.yml+++ b/config/locales/crowdin/hu.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++hu:+ 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})@@ -30,6 +39,9 @@ hu:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ hu:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/id.yml b/config/locales/crowdin/id.ymlindex 1caca233795..fee8c289aba 100644--- a/config/locales/crowdin/id.yml+++ b/config/locales/crowdin/id.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++id:+ 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})@@ -30,6 +39,9 @@ id:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ id:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/it.yml b/config/locales/crowdin/it.ymlindex 4be3b75a45c..1958ba0a681 100644--- a/config/locales/crowdin/it.yml+++ b/config/locales/crowdin/it.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++it:+ 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})@@ -30,6 +39,9 @@ it:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ it:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/ja.yml b/config/locales/crowdin/ja.ymlindex c8145a0f595..d1d0067e71a 100644--- a/config/locales/crowdin/ja.yml+++ b/config/locales/crowdin/ja.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++ja:+ 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})@@ -30,6 +39,9 @@ ja:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ ja:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/js-ar.yml b/config/locales/crowdin/js-ar.ymlnew file mode 100644index 00000000000..80acef0cbbc--- /dev/null+++ b/config/locales/crowdin/js-ar.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++ar:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-bg.yml b/config/locales/crowdin/js-bg.ymlnew file mode 100644index 00000000000..97ab6ef8f38--- /dev/null+++ b/config/locales/crowdin/js-bg.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++bg:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-ca.yml b/config/locales/crowdin/js-ca.ymlnew file mode 100644index 00000000000..0b6d059dfc5--- /dev/null+++ b/config/locales/crowdin/js-ca.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++ca:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-cs.yml b/config/locales/crowdin/js-cs.ymlnew file mode 100644index 00000000000..650fb0fb19f--- /dev/null+++ b/config/locales/crowdin/js-cs.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++cs:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-da.yml b/config/locales/crowdin/js-da.ymlnew file mode 100644index 00000000000..5a0dfb4166c--- /dev/null+++ b/config/locales/crowdin/js-da.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++da:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-de.yml b/config/locales/crowdin/js-de.ymlnew file mode 100644index 00000000000..7f977cf9e04--- /dev/null+++ b/config/locales/crowdin/js-de.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++de:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-el.yml b/config/locales/crowdin/js-el.ymlnew file mode 100644index 00000000000..7f137d133e5--- /dev/null+++ b/config/locales/crowdin/js-el.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++el:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-es.yml b/config/locales/crowdin/js-es.ymlnew file mode 100644index 00000000000..7197c175e9d--- /dev/null+++ b/config/locales/crowdin/js-es.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++es:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-fi.yml b/config/locales/crowdin/js-fi.ymlnew file mode 100644index 00000000000..bbeb52128ac--- /dev/null+++ b/config/locales/crowdin/js-fi.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++fi:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-fil.yml b/config/locales/crowdin/js-fil.ymlnew file mode 100644index 00000000000..cfc2447a053--- /dev/null+++ b/config/locales/crowdin/js-fil.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++fil:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-fr.yml b/config/locales/crowdin/js-fr.ymlnew file mode 100644index 00000000000..92c71735c98--- /dev/null+++ b/config/locales/crowdin/js-fr.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++fr:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-hr.yml b/config/locales/crowdin/js-hr.ymlnew file mode 100644index 00000000000..68da7f355d4--- /dev/null+++ b/config/locales/crowdin/js-hr.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++hr:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-hu.yml b/config/locales/crowdin/js-hu.ymlnew file mode 100644index 00000000000..42d437c163c--- /dev/null+++ b/config/locales/crowdin/js-hu.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++hu:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-id.yml b/config/locales/crowdin/js-id.ymlnew file mode 100644index 00000000000..b8b027240f0--- /dev/null+++ b/config/locales/crowdin/js-id.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++id:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-it.yml b/config/locales/crowdin/js-it.ymlnew file mode 100644index 00000000000..6b3fc0e7912--- /dev/null+++ b/config/locales/crowdin/js-it.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++it:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-ja.yml b/config/locales/crowdin/js-ja.ymlnew file mode 100644index 00000000000..ada7bc1dba9--- /dev/null+++ b/config/locales/crowdin/js-ja.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++ja:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-ko.yml b/config/locales/crowdin/js-ko.ymlnew file mode 100644index 00000000000..bf9ca57c697--- /dev/null+++ b/config/locales/crowdin/js-ko.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++ko:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-lt.yml b/config/locales/crowdin/js-lt.ymlnew file mode 100644index 00000000000..730001aae8d--- /dev/null+++ b/config/locales/crowdin/js-lt.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++lt:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-nl.yml b/config/locales/crowdin/js-nl.ymlnew file mode 100644index 00000000000..f92a3b9881f--- /dev/null+++ b/config/locales/crowdin/js-nl.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++nl:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-no.yml b/config/locales/crowdin/js-no.ymlnew file mode 100644index 00000000000..d59db3b7e2a--- /dev/null+++ b/config/locales/crowdin/js-no.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++"no":+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-pl.yml b/config/locales/crowdin/js-pl.ymlnew file mode 100644index 00000000000..e3122e06816--- /dev/null+++ b/config/locales/crowdin/js-pl.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++pl:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-pt.yml b/config/locales/crowdin/js-pt.ymlnew file mode 100644index 00000000000..58a97e0cb3a--- /dev/null+++ b/config/locales/crowdin/js-pt.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++pt:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-ro.yml b/config/locales/crowdin/js-ro.ymlnew file mode 100644index 00000000000..e594199bc25--- /dev/null+++ b/config/locales/crowdin/js-ro.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++ro:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-ru.yml b/config/locales/crowdin/js-ru.ymlnew file mode 100644index 00000000000..44566acea88--- /dev/null+++ b/config/locales/crowdin/js-ru.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++ru:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-sk.yml b/config/locales/crowdin/js-sk.ymlnew file mode 100644index 00000000000..88bb174b562--- /dev/null+++ b/config/locales/crowdin/js-sk.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++sk:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-sl.yml b/config/locales/crowdin/js-sl.ymlnew file mode 100644index 00000000000..85f50aedc82--- /dev/null+++ b/config/locales/crowdin/js-sl.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++sl:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-sv.yml b/config/locales/crowdin/js-sv.ymlnew file mode 100644index 00000000000..25946481aa2--- /dev/null+++ b/config/locales/crowdin/js-sv.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++sv:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-tr.yml b/config/locales/crowdin/js-tr.ymlnew file mode 100644index 00000000000..4ce717f2e34--- /dev/null+++ b/config/locales/crowdin/js-tr.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++tr:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-uk.yml b/config/locales/crowdin/js-uk.ymlnew file mode 100644index 00000000000..29c081cf91c--- /dev/null+++ b/config/locales/crowdin/js-uk.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++uk:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-vi.yml b/config/locales/crowdin/js-vi.ymlnew file mode 100644index 00000000000..84e2c7fa5a1--- /dev/null+++ b/config/locales/crowdin/js-vi.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++vi:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-zh-CN.yml b/config/locales/crowdin/js-zh-CN.ymlnew file mode 100644index 00000000000..fdcec378626--- /dev/null+++ b/config/locales/crowdin/js-zh-CN.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++zh-CN:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/js-zh-TW.yml b/config/locales/crowdin/js-zh-TW.ymlnew file mode 100644index 00000000000..6cdf89f89a9--- /dev/null+++ b/config/locales/crowdin/js-zh-TW.yml@@ -0,0 +1,51 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++zh-TW:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> in the MR title/description or create a new MR.+ gitlab_actions: Actionsdiff --git a/config/locales/crowdin/ko.yml b/config/locales/crowdin/ko.ymlindex e1d8d414022..ec4ee1f661e 100644--- a/config/locales/crowdin/ko.yml+++ b/config/locales/crowdin/ko.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++ko:+ 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})@@ -30,6 +39,9 @@ ko:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ ko:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/lt.yml b/config/locales/crowdin/lt.ymlindex 0758e84742b..ba52cf949c9 100644--- a/config/locales/crowdin/lt.yml+++ b/config/locales/crowdin/lt.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++lt:+ 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})@@ -30,6 +39,9 @@ lt:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ lt:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/nl.yml b/config/locales/crowdin/nl.ymlindex 16fa3ed5f4c..bb25bfdaa70 100644--- a/config/locales/crowdin/nl.yml+++ b/config/locales/crowdin/nl.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++nl:+ 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})@@ -30,6 +39,9 @@ nl:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ nl:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/no.yml b/config/locales/crowdin/no.ymlindex 29178460bb6..7f32b8b23e9 100644--- a/config/locales/crowdin/no.yml+++ b/config/locales/crowdin/no.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++"no":+ 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})@@ -30,6 +39,9 @@merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/pl.yml b/config/locales/crowdin/pl.ymlindex e47f53730eb..53c2816779f 100644--- a/config/locales/crowdin/pl.yml+++ b/config/locales/crowdin/pl.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++pl:+ 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})@@ -30,6 +39,9 @@ pl:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ pl:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/pt.yml b/config/locales/crowdin/pt.ymlindex 78016bcdd5e..211a21525f4 100644--- a/config/locales/crowdin/pt.yml+++ b/config/locales/crowdin/pt.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++pt:+ 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})@@ -30,6 +39,9 @@ pt:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ pt:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/ro.yml b/config/locales/crowdin/ro.ymlindex c51762ddcfc..d26476323cd 100644--- a/config/locales/crowdin/ro.yml+++ b/config/locales/crowdin/ro.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++ro:+ 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})@@ -30,6 +39,9 @@ ro:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ ro:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/ru.yml b/config/locales/crowdin/ru.ymlindex 79d7107e480..11730a83844 100644--- a/config/locales/crowdin/ru.yml+++ b/config/locales/crowdin/ru.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++ru:+ 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})@@ -30,6 +39,9 @@ ru:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ ru:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/sk.yml b/config/locales/crowdin/sk.ymlindex ee2d1b002f4..fd444881cdd 100644--- a/config/locales/crowdin/sk.yml+++ b/config/locales/crowdin/sk.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++sk:+ 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})@@ -30,6 +39,9 @@ sk:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ sk:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/sl.yml b/config/locales/crowdin/sl.ymlindex d0017139473..bc460be9ed9 100644--- a/config/locales/crowdin/sl.yml+++ b/config/locales/crowdin/sl.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++sl:+ 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})@@ -30,6 +39,9 @@ sl:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ sl:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/sv.yml b/config/locales/crowdin/sv.ymlindex f8bbf7383c2..10baf1b2fca 100644--- a/config/locales/crowdin/sv.yml+++ b/config/locales/crowdin/sv.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++sv:+ 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})@@ -30,6 +39,9 @@ sv:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ sv:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/tr.yml b/config/locales/crowdin/tr.ymlindex ad4a49c64c6..12d07288b18 100644--- a/config/locales/crowdin/tr.yml+++ b/config/locales/crowdin/tr.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++tr:+ 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})@@ -30,6 +39,9 @@ tr:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ tr:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/uk.yml b/config/locales/crowdin/uk.ymlindex 7b6f1e7b1cd..8e2ae9a931e 100644--- a/config/locales/crowdin/uk.yml+++ b/config/locales/crowdin/uk.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++uk:+ 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})@@ -30,6 +39,9 @@ uk:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ uk:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/vi.yml b/config/locales/crowdin/vi.ymlindex 8c4d8e48ee4..a8b763826ba 100644--- a/config/locales/crowdin/vi.yml+++ b/config/locales/crowdin/vi.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++vi:+ 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})@@ -30,6 +39,9 @@ vi:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ vi:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/zh-CN.yml b/config/locales/crowdin/zh-CN.ymlindex 69a9026c470..14265438a7d 100644--- a/config/locales/crowdin/zh-CN.yml+++ b/config/locales/crowdin/zh-CN.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++zh-CN:+ 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})@@ -30,6 +39,9 @@ zh-CN:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ zh-CN:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/crowdin/zh-TW.yml b/config/locales/crowdin/zh-TW.ymlindex 1f59e50c02a..c3db200526f 100644--- a/config/locales/crowdin/zh-TW.yml+++ b/config/locales/crowdin/zh-TW.yml@@ -1,25 +1,34 @@#-- copyright-#OpenProject is an open source project management software.-#Copyright (C) 2012-2020 the OpenProject GmbH-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License version 3.-#OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-#Copyright (C) 2006-2017 Jean-Philippe Lang-#Copyright (C) 2010-2013 the ChiliProject Team-#This program is free software; you can redistribute it and/or-#modify it under the terms of the GNU General Public License-#as published by the Free Software Foundation; either version 2-#of the License, or (at your option) any later version.-#This program is distributed in the hope that it will be useful,-#but WITHOUT ANY WARRANTY; without even the implied warranty of-#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-#GNU General Public License for more details.-#You should have received a copy of the GNU General Public License-#along with this program; if not, write to the Free Software-#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#See docs/COPYRIGHT.rdoc for more details.+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.#++zh-TW:+ 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})@@ -30,6 +39,9 @@ zh-TW:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -66,8 +78,16 @@ zh-TW:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/de.yml b/config/locales/de.ymlindex c337a83a866..ef813ecb454 100644--- a/config/locales/de.yml+++ b/config/locales/de.yml@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License@@ -26,7 +27,10 @@# See docs/COPYRIGHT.rdoc for more details.#++-en:+de:+ 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})@@ -37,6 +41,9 @@ en:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -44,12 +51,12 @@ en:%{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}):+ 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}):+ Merge Request %{mr_number} [%{mr_title}](%{mr_url}) on [%{repository}](%{repository_url}):%{mr_note}note_issue_referenced_comment: >@@ -73,8 +80,16 @@ en:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/en.yml b/config/locales/en.ymlindex c337a83a866..f31ceded958 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License@@ -27,6 +28,9 @@#++en:+ 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})@@ -37,6 +41,9 @@ en:merge_request_merged_comment: >**MR Merged:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})has been merged by [%{gitlab_user}](%{gitlab_user_url}).+ merge_request_reopened_comment: >+ **MR Reopened:** Merge request %{mr_number} [%{mr_title}](%{mr_url}) for [%{repository}](%{repository_url})+ has been reopened by [%{gitlab_user}](%{gitlab_user_url}).note_commit_referenced_comment: >**Referenced in Commit:** [%{gitlab_user}](%{gitlab_user_url}) referenced this WP ina Commit Note [%{commit_id}](%{commit_url}) on [%{repository}](%{repository_url}):@@ -44,12 +51,12 @@ en:%{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}):+ 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}):+ Merge Request %{mr_number} [%{mr_title}](%{mr_url}) on [%{repository}](%{repository_url}):%{mr_note}note_issue_referenced_comment: >@@ -73,8 +80,16 @@ en:issue_closed_referenced_comment: >**Issue Closed:** Issue %{issue_number} [%{issue_title}](%{issue_url}) for [%{repository}](%{repository_url})has been closed by [%{gitlab_user}](%{gitlab_user_url}).+ issue_reopened_referenced_comment: >+ **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})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})+ to [%{repository}](%{repository_url}) at %{commit_timestamp}:+%{commit_note}diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlnew file mode 100644index 00000000000..5e3d38f67ca--- /dev/null+++ b/config/locales/js-en.yml@@ -0,0 +1,52 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++en:+ js:+ gitlab_integration:+ work_packages:+ tab_name: "GitLab"+ tab_header:+ title: "Merge requests"+ create_mr:+ label: Create MR+ description: Create a Merge Request+ copy_menu:+ label: Git snippets+ description: Copy git snippets to clipboard+ git_actions:+ branch_name: Branch name+ commit_message: Commit message+ cmd: Create branch with empty commit+ title: Quick snippets for Git+ copy_success: ✅ Copied!+ copy_error: ❌ Copy failed!+ tab_mrs:+ empty: There are no merge requests linked yet. Link an existing MR by using the code <code>OP#%{wp_id}</code> (or <code>PP#%{wp_id}</code> for private links) in the MR title/description or create a new MR.+ gitlab_pipelines: Pipelinesdiff --git a/db/migrate/20211015110000_gitlab_integration_models.rb b/db/migrate/20211015110000_gitlab_integration_models.rbnew file mode 100644index 00000000000..bf1f58ce8e6--- /dev/null+++ b/db/migrate/20211015110000_gitlab_integration_models.rb@@ -0,0 +1,88 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++class GitlabIntegrationModels < ActiveRecord::Migration[6.1]+ # rubocop:disable Metrics/AbcSize+ def change+ create_table :gitlab_merge_requests do |t|+ t.references :gitlab_user+ t.references :merged_by++ t.bigint :gitlab_id, unique: true+ t.integer :number, null: false+ t.string :gitlab_html_url, null: false, unique: true+ t.string :state, null: false+ t.string :repository, null: false+ t.datetime :gitlab_updated_at+ t.string :title+ t.text :body+ t.boolean :draft+ t.boolean :merged+ t.datetime :merged_at+ t.json :labels # [{name, color}]+ t.timestamps+ end++ create_join_table :gitlab_merge_requests, :work_packages do |t|+ t.index :gitlab_merge_request_id, name: 'gitlab_mr_wp_mr_id'+ t.index %i[gitlab_merge_request_id work_package_id],+ unique: true,+ name: "unique_index_gl_mrs_wps_on_gl_mr_id_and_wp_id"+ end+++ create_table :gitlab_users do |t|+ t.bigint :gitlab_id, null: false, unique: true+ t.string :gitlab_name, null: false+ t.string :gitlab_username, null: false+ t.string :gitlab_email, null: false+ t.string :gitlab_avatar_url, null: false++ t.timestamps+ end+++ create_table :gitlab_pipelines do |t|+ t.references :gitlab_merge_request, null: false++ t.bigint :gitlab_id, null: false, unique: true+ t.string :gitlab_html_url, null: false+ t.bigint :project_id, null: false+ t.string :gitlab_user_avatar_url, null: false+ t.string :status, null: false+ t.string :name, null: false+ t.string :details_url+ t.json :ci_details+ t.datetime :started_at+ t.datetime :completed_at++ t.timestamps+ end+ end+ # rubocop:enable Metrics/AbcSize+enddiff --git a/frontend/module/git-actions-menu/git-actions-menu.component.ts b/frontend/module/git-actions-menu/git-actions-menu.component.tsnew file mode 100644index 00000000000..c0efeb16045--- /dev/null+++ b/frontend/module/git-actions-menu/git-actions-menu.component.ts@@ -0,0 +1,106 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import copy from 'copy-text-to-clipboard';+import { Component, Inject, Input } from '@angular/core';+import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';+import { I18nService } from 'core-app/modules/common/i18n/i18n.service';+import { GitActionsService } from '../git-actions/git-actions.service';+import { OPContextMenuComponent } from 'core-app/components/op-context-menu/op-context-menu.component';+import {+ OpContextMenuLocalsMap,+ OpContextMenuLocalsToken+} from 'core-app/components/op-context-menu/op-context-menu.types';+import { ISnippet} from "core-app/modules/plugins/linked/openproject-gitlab_integration/typings";+++@Component({+ selector: 'op-git-actions-menu',+ templateUrl: './git-actions-menu.template.html',+ styleUrls: [+ './styles/git-actions-menu.sass'+ ]+})+export class GitActionsMenuComponent extends OPContextMenuComponent {+ @Input() public workPackage:WorkPackageResource;++ public text = {+ title: this.I18n.t('js.gitlab_integration.tab_header.git_actions.title'),+ copyButtonHelpText: this.I18n.t('js.gitlab_integration.tab_header.git_actions.copy_button_help'),+ copyResult: {+ success: this.I18n.t('js.gitlab_integration.tab_header.git_actions.copy_success'),+ error: this.I18n.t('js.gitlab_integration.tab_header.git_actions.copy_error')+ }+ };++ public lastCopyResult:string = this.text.copyResult.success;+ public showCopyResult:boolean = false;+ public copiedSnippetId:string = '';++ public snippets:ISnippet[] = [+ {+ id: 'branch',+ name: this.I18n.t('js.gitlab_integration.tab_header.git_actions.branch_name'),+ textToCopy: () => this.gitActions.branchName(this.workPackage)+ },+ {+ id: 'message',+ name: this.I18n.t('js.gitlab_integration.tab_header.git_actions.commit_message'),+ textToCopy: () => this.gitActions.commitMessage(this.workPackage)+ },+ {+ id: 'command',+ name: this.I18n.t('js.gitlab_integration.tab_header.git_actions.cmd'),+ textToCopy: () => this.gitActions.gitCommand(this.workPackage)+ },+ ];++ constructor(@Inject(OpContextMenuLocalsToken)+ public locals:OpContextMenuLocalsMap,+ readonly I18n:I18nService,+ readonly gitActions:GitActionsService) {+ super(locals);+ this.workPackage = this.locals.workPackage;+ }++ public onCopyButtonClick(snippet:ISnippet):void {+ const success = copy(snippet.textToCopy());++ if (success) {+ this.lastCopyResult = this.text.copyResult.success;+ } else {+ this.lastCopyResult = this.text.copyResult.error;+ }+ this.copiedSnippetId = snippet.id;+ this.showCopyResult = true;+ window.setTimeout(() => {+ this.showCopyResult = false;+ }, 2000);+ }+}diff --git a/frontend/module/git-actions-menu/git-actions-menu.directive.ts b/frontend/module/git-actions-menu/git-actions-menu.directive.tsnew file mode 100644index 00000000000..9275d0f38b7--- /dev/null+++ b/frontend/module/git-actions-menu/git-actions-menu.directive.ts@@ -0,0 +1,60 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import {OpContextMenuItem} from 'core-components/op-context-menu/op-context-menu.types';+import {OPContextMenuService} from 'core-components/op-context-menu/op-context-menu.service';+import {Directive, ElementRef, Input} from '@angular/core';+import {OpContextMenuTrigger} from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';+import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';+import {GitActionsMenuComponent} from './git-actions-menu.component';++@Directive({+ selector: '[gitActionsCopyDropdown]'+})+export class GitActionsMenuDirective extends OpContextMenuTrigger {+ @Input('gitActionsCopyDropdown-workPackage') public workPackage:WorkPackageResource;++ constructor(readonly elementRef:ElementRef,+ readonly opContextMenu:OPContextMenuService) {+ super(elementRef, opContextMenu);+ }++ protected open(evt:JQuery.TriggeredEvent) {+ this.opContextMenu.show(this, evt, GitActionsMenuComponent);+ }++ public get locals():{ showAnchorRight?:boolean, contextMenuId?:string, items:OpContextMenuItem[], workPackage:WorkPackageResource } {+ return {+ workPackage: this.workPackage,+ contextMenuId: 'gitlab-integration-git-actions-menu',+ items: []+ };+ }+}+diff --git a/frontend/module/git-actions-menu/git-actions-menu.template.html b/frontend/module/git-actions-menu/git-actions-menu.template.htmlnew file mode 100644index 00000000000..0c242188553--- /dev/null+++ b/frontend/module/git-actions-menu/git-actions-menu.template.html@@ -0,0 +1,22 @@+<div class="git-actions-menu dropdown-relative dropdown -overflow-in-view dropdown-anchor-right">+ <h3 class="title">{{text.title}}</h3>++ <div class="copy-wrapper op-form-field" *ngFor="let snippet of snippets">+ <label class="op-form-field--label-wrap">+ <div class="op-form-field--label">{{ snippet.name }}</div>+ <div class="op-form-field--input">+ <input type="text" class="copy-content op-input" readonly="true" [value]="snippet.textToCopy()">+ <button class="button copy-button"+ type="button"+ [attr.aria-label]="text.copyButtonHelpText"+ (click)="onCopyButtonClick(snippet)">+ <op-icon icon-classes="button--icon icon-copy"></op-icon>+ </button>+ <div class="copy-result-message" *ngIf="showCopyResult && snippet.id === copiedSnippetId" [textContent]="lastCopyResult"></div>+ </div>+ </label>+ </div>++</div>++diff --git a/frontend/module/git-actions-menu/styles/git-actions-menu.sass b/frontend/module/git-actions-menu/styles/git-actions-menu.sassnew file mode 100644index 00000000000..4ad86811140--- /dev/null+++ b/frontend/module/git-actions-menu/styles/git-actions-menu.sass@@ -0,0 +1,90 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//+++.git-actions-menu+ background-color: var(--body-background)+ border: var(--content-default-border-width) solid var(--content-default-border-color)+ padding: 1rem 1rem 2rem 1rem+ min-width: 25rem+ box-shadow: .1em .1em .4em rgba(0,0,0,0.1)++ .copy-wrapper+ width: 100%+ position: relative+ margin-bottom: 1rem++ .copy-content+ width: calc(100% - 3em)+ // the min-height should be the size of the copy-icon, which is the sum of:+ // 2 * button padding (0.65em)+ // font-size of the icon (0.9em)+ // 1px where I don't know where it comes from+ min-height: calc(2 * 0.65em + 0.9em + 1px)+ border-radius: 2px 0 0 2px+ padding: 0.65em+ color: var(--gray-dark)+ white-space: pre+ resize: none+ font-size: 0.9rem+ display: inline-block++ .copy-button+ margin: 0+ border: 1px solid #ccc+ border-radius: 0 2px 2px 0+ vertical-align: top+ left: -1px+ position: relative+ font-size: 0.9rem++ &:hover+ border-color: #999++ .copy-result-message+ background-color: var(--main-menu-bg-color)+ display: inline-block+ padding: 0.5em+ border-radius: 5px+ color: var(--main-menu-font-color)+ position: absolute+ right: 0+ top: calc(2 * 0.65em + 0.9em + 1px + 9px)+ box-shadow: 1px 1px 4px var(--gray-dark)+ z-index: 1++ &:before+ content: ""+ border-bottom: 0.6em solid var(--main-menu-bg-color)+ height: 0+ width: 0+ position: absolute+ top: -9px+ right: 10px+ border-left: 0.3em solid transparent+ border-right: 0.3em solid transparent+diff --git a/frontend/module/git-actions/git-actions.service.ts b/frontend/module/git-actions/git-actions.service.tsnew file mode 100644index 00000000000..fec13a49918--- /dev/null+++ b/frontend/module/git-actions/git-actions.service.ts@@ -0,0 +1,65 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//+++++import {Injectable} from '@angular/core';+import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';+import formatter from 'tickety-tick-formatter';++// probably not providable in root when we want to cache the formatter and set custom templates+@Injectable({+ providedIn: 'root',+})+export class GitActionsService {+ private formatter = formatter();++ public branchName(workPackage:WorkPackageResource):string {+ return(this.formatter.branch(this.formattingInput(workPackage)));+ }++ public commitMessage(workPackage:WorkPackageResource):string {+ return(this.formatter.commit(this.formattingInput(workPackage)));+ }++ public gitCommand(workPackage:WorkPackageResource):string {+ return(this.formatter.command(this.formattingInput(workPackage)));+ }++ private formattingInput(workPackage: WorkPackageResource) {+ const type = workPackage.type.name || '';+ const id = workPackage.id || '';+ const title = workPackage.subject;+ const url = window.location.origin + workPackage.pathHelper.workPackagePath(id);+ const description = '';++ return({+ id, type, title, url, description+ });+ }+}\ No newline at end of filediff --git a/frontend/module/gitlab-tab/gitlab-tab.component.ts b/frontend/module/gitlab-tab/gitlab-tab.component.tsnew file mode 100644index 00000000000..f1abea8de1f--- /dev/null+++ b/frontend/module/gitlab-tab/gitlab-tab.component.ts@@ -0,0 +1,46 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import {Component, Input} from '@angular/core';+import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';+import {PathHelperService} from 'core-app/modules/common/path-helper/path-helper.service';+import {I18nService} from 'core-app/modules/common/i18n/i18n.service';+import { TabComponent } from 'core-app/components/wp-tabs/components/wp-tab-wrapper/tab';++@Component({+ selector: 'gitlab-tab',+ templateUrl: './gitlab-tab.template.html'+})+export class GitlabTabComponent implements TabComponent {+ @Input() public workPackage:WorkPackageResource;++ constructor(readonly PathHelper:PathHelperService,+ readonly I18n:I18nService) {+ }+}diff --git a/frontend/module/gitlab-tab/gitlab-tab.template.html b/frontend/module/gitlab-tab/gitlab-tab.template.htmlnew file mode 100644index 00000000000..7bbfd3bd4bc--- /dev/null+++ b/frontend/module/gitlab-tab/gitlab-tab.template.html@@ -0,0 +1,2 @@+<tab-header [workPackage]="workPackage"></tab-header>+<tab-mrs [workPackage]="workPackage"></tab-mrs>diff --git a/frontend/module/hal/resources/gitlab-merge-request-resource.ts b/frontend/module/hal/resources/gitlab-merge-request-resource.tsnew file mode 100644index 00000000000..391d76deae6--- /dev/null+++ b/frontend/module/hal/resources/gitlab-merge-request-resource.ts@@ -0,0 +1,43 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { HalResource } from 'core-app/modules/hal/resources/hal-resource';++export class GitlabMergeRequestResource extends HalResource {+ public get state() {+ return this.states.projects.get(this.id!) as any;+ }++ /**+ * Exclude the schema _link from the linkable Resources.+ */+ public $linkableKeys():string[] {+ return _.without(super.$linkableKeys(), 'schema');+ }+}diff --git a/frontend/module/hal/resources/gitlab-pipelines-resource.ts b/frontend/module/hal/resources/gitlab-pipelines-resource.tsnew file mode 100644index 00000000000..26492f5b6a8--- /dev/null+++ b/frontend/module/hal/resources/gitlab-pipelines-resource.ts@@ -0,0 +1,43 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { HalResource } from 'core-app/modules/hal/resources/hal-resource';++export class GitlabPipelineResource extends HalResource {+ public get state() {+ return this.states.projects.get(this.id!) as any;+ }++ /**+ * Exclude the schema _link from the linkable Resources.+ */+ public $linkableKeys():string[] {+ return _.without(super.$linkableKeys(), 'schema');+ }+}diff --git a/frontend/module/hal/resources/gitlab-user-resource.ts b/frontend/module/hal/resources/gitlab-user-resource.tsnew file mode 100644index 00000000000..bbcca7937cc--- /dev/null+++ b/frontend/module/hal/resources/gitlab-user-resource.ts@@ -0,0 +1,43 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { HalResource } from 'core-app/modules/hal/resources/hal-resource';++export class GitlabUserResource extends HalResource {+ public get state() {+ return this.states.projects.get(this.id!) as any;+ }++ /**+ * Exclude the schema _link from the linkable Resources.+ */+ public $linkableKeys():string[] {+ return _.without(super.$linkableKeys(), 'schema');+ }+}diff --git a/frontend/module/main.ts b/frontend/module/main.tsnew file mode 100644index 00000000000..b2a116a9e8f--- /dev/null+++ b/frontend/module/main.ts@@ -0,0 +1,82 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { Injector, NgModule } from '@angular/core';+import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';++import { GitlabTabComponent } from './gitlab-tab/gitlab-tab.component';+import { TabHeaderComponent } from './tab-header/tab-header.component';+import { TabMrsComponent } from './tab-mrs/tab-mrs.component';+import { GitActionsMenuDirective } from './git-actions-menu/git-actions-menu.directive';+import { GitActionsMenuComponent } from './git-actions-menu/git-actions-menu.component';+import { WorkPackagesGitlabMrsService } from './tab-mrs/wp-gitlab-mrs.service';+import { MergeRequestComponent } from './merge-request/merge-request.component';+import { WorkPackageTabsService } from "core-components/wp-tabs/services/wp-tabs/wp-tabs.service";+import { OpenprojectTabsModule } from "core-app/modules/common/tabs/openproject-tabs.module";++export function initializeGitlabIntegrationPlugin(injector:Injector) {+ const wpTabService = injector.get(WorkPackageTabsService);+ wpTabService.register({+ component: GitlabTabComponent,+ name: I18n.t('js.gitlab_integration.work_packages.tab_name'),+ id: 'gitlab',+ displayable: (workPackage) => !!workPackage.gitlab,+ });+}+++@NgModule({+ imports: [+ OpenprojectCommonModule,+ OpenprojectTabsModule,+ ],+ providers: [+ WorkPackagesGitlabMrsService,+ ],+ declarations: [+ GitlabTabComponent,+ TabHeaderComponent,+ TabMrsComponent,+ GitActionsMenuDirective,+ GitActionsMenuComponent,+ MergeRequestComponent,+ ],+ exports: [+ GitlabTabComponent,+ TabHeaderComponent,+ TabMrsComponent,+ GitActionsMenuDirective,+ GitActionsMenuComponent,+ ],+})+export class PluginModule {+ constructor(injector:Injector) {+ initializeGitlabIntegrationPlugin(injector);+ }+}diff --git a/frontend/module/merge-request/merge-request.component.html b/frontend/module/merge-request/merge-request.component.htmlnew file mode 100644index 00000000000..94a4d9ad769--- /dev/null+++ b/frontend/module/merge-request/merge-request.component.html@@ -0,0 +1,69 @@+<a+ class='op-merge-request--link'+ [href]="mergeRequest.htmlUrl"+ target="blank"+ [textContent]="mergeRequest.repository + '#' + mergeRequest.number"+></a>++<div+ class='op-merge-request--title'+ [textContent]="mergeRequest.title"+></div>++<div class="op-merge-request--info">+ {{ text.label_created_by }}+ <img+ alt='MR author avatar'+ class='op-merge-request--avatar op-avatar op-avatar_mini'+ [src]="mergeRequest.gitlabUser.avatarUrl"+ *ngIf="mergeRequest.gitlabUser"+ />+ <span class='op-merge-request--user'>+ <a+ [href]="'mailto:' + mergeRequest.gitlabUser.email"+ [textContent]="mergeRequest.gitlabUser.login"+ *ngIf="mergeRequest.gitlabUser"+ ></a>.+ </span>++ <span class='op-merge-request--date'>+ {{ text.label_last_updated_on }}+ <op-date-time [dateTimeValue]="mergeRequest.gitlabUpdatedAt"></op-date-time>+ </span>.+</div>++<span class='op-merge-request--state' [ngClass]="'op-merge-request--state_' + state">+ <op-icon icon-classes="button--icon icon-merge-branch"></op-icon>+ {{state}}+</span>++<div class="op-merge-request--labels">+ <span *ngFor="let label of mergeRequest.labels">+ <span class='op-merge-request--label' [ngStyle]="{'background-color': label.color}" >+ {{label.title}}+ </span>+ </span>+</div>++<!-- <span class="op-merge-request--pipeline-label" *ngIf="mergeRequest.pipelines?.length">{{ text.label_pipelines }}</span>++<ul [attr.aria-label]="text.label_pipelines" class='op-merge-request--pipeline' *ngIf="mergeRequest.pipelines?.length">+ <li class='op-mr-pipeline' *ngFor="let pipeline of mergeRequest.pipelines">+ <span class='op-mr-pipeline--state-icon' [ngClass]="'op-mr-pipeline--state-icon_' + pipelineState(pipeline)">+ <op-icon icon-classes="icon-{{ pipelineStateIcon(pipeline) }}"+ [icon-title]="pipelineStateText(pipeline)"></op-icon>+ </span>+ <span class='op-mr-pipeline--avatar'><img alt='user owner avatar' [src]="pipeline.userAvatarUrl" /></span>++ <span class='op-mr-pipeline--info'>+ <span class='op-mr-pipeline--name' [textContent]="pipeline.name"></span>+ <span class='op-mr-pipeline--state' [textContent]="pipelineStateText(pipeline)"></span>+ </span>++ <span class='op-mr-pipeline--details'>+ <a [href]="pipeline.detailsUrl">+ {{ text.label_details }}+ </a>+ </span>+ </li>+</ul> -->diff --git a/frontend/module/merge-request/merge-request.component.sass b/frontend/module/merge-request/merge-request.component.sassnew file mode 100644index 00000000000..f29d25befc9--- /dev/null+++ b/frontend/module/merge-request/merge-request.component.sass@@ -0,0 +1,123 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++@import "helpers"++:host,+.op-merge-request+ display: grid+ grid-template-columns: auto 1fr auto auto+ grid-template-areas: "link link link link" "title title title state" "info info info info" "pipeline-label pipeline-label pipeline-label pipeline-label" "pipeline pipeline pipeline pipeline"+ margin-bottom: 11px+ padding-bottom: 11px+ border-bottom: 1px solid #dddddd++ &:last-child+ border-bottom: none++ &--title+ @include text-shortener+ font-weight: bold+ grid-area: title+ // have the same line height as the status "button" next to it+ line-height: 32px+ margin-right: 20px++ &--avatar+ grid-area: info++ &--info+ display: block+ grid-area: info+ margin-bottom: 3px+ font-size: 0.9rem+ grid-area: info+ color: var(--gray-dark)+ // The mini avatar is much higher than the text line. Compensate it.+ margin-top: -4px++ &--labels+ display: block+ grid-area: info+ margin-bottom: 3px+ font-size: 0.9rem+ grid-area: info+ color: var(--gray-dark)+ margin-top: 20px++ &--label+ display: inline-block+ padding: 6px 9px+ border-radius: 16px+ border: 1px solid #fff+ color: #fff+ font-size: 0.8rem+ text-transform: capitalize++ &--date+ grid-area: info++ &--link+ grid-area: link+ margin-top: 6px+ font-size: 0.9rem++ &--state+ grid-area: state+ display: inline-block+ padding: 7px 11px+ border-radius: 5px+ border: 1px solid #fff+ color: #fff+ font-size: 0.9rem+ font-weight: 700+ text-transform: capitalize++ &_draft+ background-color: #6a737d++ &_ready+ background-color: #108548++ &_merged+ background-color: #1f75cb++ &_closed+ background-color: #dd2b0e++ &--pipeline-label+ grid-area: pipeline-label+ margin-top: 12px+ font-size: 0.9rem+ font-weight: bold++ &--pipeline+ margin-top: 12px+ margin-left: 0+ grid-area: pipelinediff --git a/frontend/module/merge-request/merge-request.component.ts b/frontend/module/merge-request/merge-request.component.tsnew file mode 100644index 00000000000..beb7c0b7a98--- /dev/null+++ b/frontend/module/merge-request/merge-request.component.ts@@ -0,0 +1,117 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { Component, Input } from '@angular/core';+import {PathHelperService} from 'core-app/modules/common/path-helper/path-helper.service';+import {I18nService} from 'core-app/modules/common/i18n/i18n.service';+import { GitlabPipelineResource } from '../hal/resources/gitlab-pipelines-resource';+import { IGitlabMergeRequestResource } from "../../../../../../../../modules/gitlab_integration/frontend/module/typings";++@Component({+ selector: 'gitlab-merge-request',+ templateUrl: './merge-request.component.html',+ styleUrls: [+ './merge-request.component.sass',+ './mr-pipeline.component.sass',+ ],+ host: { class: 'op-merge-request' }+})++export class MergeRequestComponent {+ @Input() public mergeRequest:IGitlabMergeRequestResource;++ public text = {+ label_created_by: this.I18n.t('js.label_created_by'),+ label_last_updated_on: this.I18n.t('js.label_last_updated_on'),+ label_details: this.I18n.t('js.label_details'),+ label_pipelines: this.I18n.t('js.gitlab_integration.gitlab_pipelines'),+ };++ constructor(readonly PathHelper:PathHelperService,+ readonly I18n:I18nService) {+ }++ get state() {++ if (this.mergeRequest.state === 'opened') {+ return (this.mergeRequest.draft ? 'draft' : 'ready');+ } else {+ return(this.mergeRequest.merged ? 'merged' : 'closed');+ }+ }++ public pipelineStateText(pipeline:GitlabPipelineResource) {+ /* Github apps can *optionally* add an output object (and a title) which is the most relevant information to display.+ If that is not present, we can display the conclusion (which is present only on finished runs).+ If that is not present, we can always fall back to the status. */+ return(pipeline.status);+ }++ public pipelineState(pipeline:GitlabPipelineResource) {+ return(pipeline.status);+ }++ public pipelineStateIcon(pipeline:GitlabPipelineResource) {+ switch (this.pipelineState(pipeline)) {+ case 'success': {+ return 'checkmark'+ }+ case 'queued': {+ return 'getting-started'+ }+ case 'in_progress': {+ return 'loading1'+ }+ case 'failure': {+ return 'cancel'+ }+ case 'timed_out': {+ return 'reminder'+ }+ case 'action_required': {+ return 'warning'+ }+ case 'stale': {+ return 'not-supported'+ }+ case 'skipped': {+ return 'redo'+ }+ case 'neutral': {+ return 'minus1'+ }+ case 'cancelled': {+ return 'minus1'+ }+ default: {+ return 'not-supported'+ }+ }+ }+}diff --git a/frontend/module/merge-request/mr-pipeline.component.sass b/frontend/module/merge-request/mr-pipeline.component.sassnew file mode 100644index 00000000000..a346c9a5bdf--- /dev/null+++ b/frontend/module/merge-request/mr-pipeline.component.sass@@ -0,0 +1,90 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//+++.op-mr-pipeline+ display: grid+ grid-row: span 4+ grid-template-columns: 28px 33px 1fr auto+ grid-template-areas: "pipeline-state-icon pipeline-avatar pipeline-info pipeline-details"+ list-style-type: none+ border: 1px solid #dddddd+ padding: 0.3rem 1rem+ background: rgba(0, 0, 0, 0.05)+ font-size: 0.9rem++ &:first-child+ border-top-right-radius: 5px+ border-top-left-radius: 5px++ &:last-child+ border-bottom-right-radius: 5px+ border-bottom-left-radius: 5px++ &--avatar img+ grid-area: pipeline-avatar+ display: inline-block+ width: 22px+ height: 22px+ margin-right: 5px+ border-radius: var(--user-avatar-border-radius)++ &--info+ grid-area: pipeline-info++ &--state+ color: var(--gray-dark)+ font-style: italic+ margin-left: 1em++ &--state-icon+ grid-area: pipeline-state-icon++ &_queued+ color: cadetblue++ &_in_progress+ color: orange++ &_success+ color: green++ &_failure,+ &_timed_out,+ &_action_required,+ &_stale+ color: red++ &_skipped,+ &_neutral,+ &_cancelled+ color: gray+ color: gray+ color: gray++ &--details+ grid-area: pipeline-detailsdiff --git a/frontend/module/tab-header/styles/tab-header.sass b/frontend/module/tab-header/styles/tab-header.sassnew file mode 100644index 00000000000..16ba6d0b05b--- /dev/null+++ b/frontend/module/tab-header/styles/tab-header.sass@@ -0,0 +1,47 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++.gitlab-mr-header+ display: flex+ flex-wrap: wrap-reverse+ justify-content: flex-end++ border-bottom: 1px solid #ddd++ margin: 1.5rem 0 0.8rem 0++ .title+ flex: 1 1 auto+ border-bottom: 0+ margin: 0+ padding: 0+ font-weight: bold+ font-size: 1rem+ line-height: 32px+ text-transform: uppercase\ No newline at end of filediff --git a/frontend/module/tab-header/tab-header.component.ts b/frontend/module/tab-header/tab-header.component.tsnew file mode 100644index 00000000000..c3ac939062a--- /dev/null+++ b/frontend/module/tab-header/tab-header.component.ts@@ -0,0 +1,54 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import {Component, Input} from '@angular/core';+import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';+import {I18nService} from 'core-app/modules/common/i18n/i18n.service';++@Component({+ selector: 'tab-header',+ templateUrl: './tab-header.template.html',+ styleUrls: [+ './styles/tab-header.sass'+ ]+})+export class TabHeaderComponent {+ @Input() public workPackage:WorkPackageResource;++ public text = {+ title: this.I18n.t('js.gitlab_integration.tab_header.title'),+ // createPrButtonLabel: this.I18n.t('js.gitlab_integration.tab_header.create_mr.label'),+ // createPrButtonDescription: this.I18n.t('js.gitlab_integration.tab_header.create_mr.description'),+ gitMenuLabel: this.I18n.t('js.gitlab_integration.tab_header.copy_menu.label'),+ gitMenuDescription: this.I18n.t('js.gitlab_integration.tab_header.copy_menu.description'),+ };++ constructor(readonly I18n:I18nService) {+ }+}diff --git a/frontend/module/tab-header/tab-header.template.html b/frontend/module/tab-header/tab-header.template.htmlnew file mode 100644index 00000000000..d35fa831736--- /dev/null+++ b/frontend/module/tab-header/tab-header.template.html@@ -0,0 +1,21 @@+<div class="gitlab-mr-header">+ <h3 class="title">+ <op-icon icon-classes="button--icon icon-merge-branch"></op-icon>+ {{text.title}}+ </h3>+ <ul class="toolbar-items hide-when-print">+ <li class="toolbar-item">+ <button class="button gitlab-git-copy"+ type="button"+ [attr.aria-label]="text.gitMenuDescription"+ gitActionsCopyDropdown+ [gitActionsCopyDropdown-workPackage]="workPackage">+ <op-icon icon-classes="button--icon icon-console-light"></op-icon>+ <span class="button--text"+ [textContent]="text.gitMenuLabel"+ aria-hidden="true"></span>+ <op-icon icon-classes="button--icon icon-small icon-pulldown hidden-for-mobile"></op-icon>+ </button>+ </li>+ </ul>+</div>diff --git a/frontend/module/tab-mrs/tab-mrs.component.ts b/frontend/module/tab-mrs/tab-mrs.component.tsnew file mode 100644index 00000000000..e7325e4d221--- /dev/null+++ b/frontend/module/tab-mrs/tab-mrs.component.ts@@ -0,0 +1,70 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import {Component, Input, OnInit} from '@angular/core';+import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';+import {I18nService} from 'core-app/modules/common/i18n/i18n.service';+import { APIV3Service } from 'core-app/modules/apiv3/api-v3.service';+import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';+import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';+import { ChangeDetectorRef } from '@angular/core';+import { IGitlabMergeRequestResource } from "../../../../../../../../modules/gitlab_integration/frontend/module/typings";++@Component({+ selector: 'tab-mrs',+ templateUrl: './tab-mrs.template.html',+ host: { class: 'op-mrs' }+})+export class TabMrsComponent implements OnInit {+ @Input() public workPackage:WorkPackageResource;++ public mergeRequests:IGitlabMergeRequestResource[] = [];++ constructor(+ readonly I18n:I18nService,+ readonly apiV3Service:APIV3Service,+ readonly halResourceService:HalResourceService,+ readonly changeDetector:ChangeDetectorRef,+ ) {}++ ngOnInit(): void {+ const mergeRequestsPath = this.apiV3Service.work_packages.id({id: this.workPackage.id })?.gitlab_merge_requests.path;++ this.halResourceService+ .get<CollectionResource<IGitlabMergeRequestResource>>(mergeRequestsPath)+ .subscribe((value) => {+ this.mergeRequests = value.elements;+ this.changeDetector.detectChanges();+ });+ }++ public getEmptyText() {+ return this.I18n.t('js.gitlab_integration.tab_mrs.empty',{ wp_id: this.workPackage.id });+ }+}diff --git a/frontend/module/tab-mrs/tab-mrs.template.html b/frontend/module/tab-mrs/tab-mrs.template.htmlnew file mode 100644index 00000000000..43ab49c2262--- /dev/null+++ b/frontend/module/tab-mrs/tab-mrs.template.html@@ -0,0 +1,5 @@+<ng-container *ngIf="mergeRequests.length === 0">+ <p [innerHTML]="getEmptyText()"></p>+</ng-container>++<gitlab-merge-request [mergeRequest]="mergeRequest" *ngFor="let mergeRequest of mergeRequests"></gitlab-merge-request>diff --git a/frontend/module/tab-mrs/wp-gitlab-mrs.service.ts b/frontend/module/tab-mrs/wp-gitlab-mrs.service.tsnew file mode 100644index 00000000000..915455e2907--- /dev/null+++ b/frontend/module/tab-mrs/wp-gitlab-mrs.service.ts@@ -0,0 +1,52 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';+import { HalResource } from 'core-app/modules/hal/resources/hal-resource';+import { Injectable } from '@angular/core';+import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';+import { WorkPackageLinkedResourceCache } from 'core-components/wp-single-view-tabs/wp-linked-resource-cache.service';++@Injectable()+export class WorkPackagesGitlabMrsService extends WorkPackageLinkedResourceCache<HalResource[]> {++ constructor(public ConfigurationService:ConfigurationService) {+ super();+ }++ protected load(workPackage:WorkPackageResource):Promise<HalResource[]> {+ return workPackage.gitlab_merge_requests.$update().then((data:any) => {+ return this.sortList(data.elements);+ });+ }++ protected sortList(mergeRequests:HalResource[], attr = 'createdAt'):HalResource[] {+ return _.sortBy(_.flatten(mergeRequests), attr);+ }+}diff --git a/frontend/module/typings.d.ts b/frontend/module/typings.d.tsnew file mode 100644index 00000000000..64ff69f93fe--- /dev/null+++ b/frontend/module/typings.d.ts@@ -0,0 +1,77 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2021 Ben Tey+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+// Copyright (C) 2012-2021 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See docs/COPYRIGHT.rdoc for more details.+//++++import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";+import { HalResourceClass } from "core-app/modules/hal/resources/hal-resource";++export interface ISnippet {+ id: string;+ name: string;+ textToCopy: ()=>string+}++export interface IGitlabMergeRequestResource extends HalResourceClass {+ body?:{+ format?:string;+ raw?:string;+ html?:string;+ },+ createdAt?:string;+ draft?:boolean;+ gitlabUpdatedAt?:string;+ htmlUrl?:string;+ id?:number;+ labels?:string[];+ merged?:boolean;+ mergedAt?:string;+ mergedBy?:IGitlabUserResource;+ number?:number;+ repository?:string;+ state?:string;+ title?:string;+ updatedAt?:string;+ gitlabUser?:IGitlabUserResource;+ pipelines?:IGitlabPipelineResource[];+}++export interface IGitlabUserResource {+ avatarUrl:string;+ email:string;+ login:string;+}++export interface IGitlabPipelineResource {+ userAvatarUrl:string;+ completedAt:string;+ detailsUrl:string;+ htmlUrl:string;+ name:string;+ startedAt:string;+ status:string;+}\ No newline at end of filediff --git a/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_collection_representer.rb b/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_collection_representer.rbnew file mode 100644index 00000000000..b643c026731--- /dev/null+++ b/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_collection_representer.rb@@ -0,0 +1,40 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module API+ module V3+ module GitlabMergeRequests+ class GitlabMergeRequestCollectionRepresenter < ::API::Decorators::Collection+ self.to_eager_load = ::API::V3::GitlabMergeRequests::GitlabMergeRequestRepresenter.to_eager_load+ end+ end+ end+enddiff --git a/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb b/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rbnew file mode 100644index 00000000000..f1cce2d2cdf--- /dev/null+++ b/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb@@ -0,0 +1,108 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++require 'roar/decorator'+require 'roar/json/hal'++module API+ module V3+ module GitlabMergeRequests+ class GitlabMergeRequestRepresenter < ::API::Decorators::Single+ include API::Caching::CachedRepresenter+ include API::Decorators::DateProperty+ include API::Decorators::FormattableProperty+ include API::Decorators::LinkedResource++ def initialize(model, current_user:, **_opts)+ # We force `embed_links` so that github_user and github_check_runs+ # are embedded and we can avoid having separate endpoints.+ super(model, current_user: current_user, embed_links: true)+ end++ cached_representer key_parts: %i[gitlab_user merged_by]++ property :id++ property :number++ property :gitlab_html_url, as: :htmlUrl++ property :state,+ render_nil: true++ property :repository,+ render_nil: true++ date_time_property :gitlab_updated_at,+ render_nil: true,+ setter: ->(*) { nil }++ property :title,+ render_nil: true++ formattable_property :body,+ render_nil: true++ property :draft,+ render_nil: true++ property :merged,+ render_nil: true++ property :labels++ associated_resource :gitlab_user,+ representer: ::API::V3::GitlabMergeRequests::GitlabUserRepresenter,+ link_title_attribute: :gitlab_name++ associated_resource :merged_by,+ representer: ::API::V3::GitlabMergeRequests::GitlabUserRepresenter,+ v3_path: :gitlab_user,+ link_title_attribute: :gitlab_name++ # TODO: pending until get the list of statuses...+ associated_resources :latest_pipelines,+ as: :pipelines,+ representer: ::API::V3::GitlabMergeRequests::GitlabPipelineRepresenter,+ v3_path: :gitlab_pipeline,+ link_title_attribute: :name++ date_time_property :created_at++ date_time_property :updated_at++ def _type+ 'GitlabMergeRequest'+ end++ self.to_eager_load = %i[gitlab_user merged_by]+ end+ end+ end+enddiff --git a/lib/api/v3/gitlab_merge_requests/gitlab_merge_requests_by_work_package_api.rb b/lib/api/v3/gitlab_merge_requests/gitlab_merge_requests_by_work_package_api.rbnew file mode 100644index 00000000000..28c3920c258--- /dev/null+++ b/lib/api/v3/gitlab_merge_requests/gitlab_merge_requests_by_work_package_api.rb@@ -0,0 +1,53 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module API+ module V3+ module GitlabMergeRequests+ class GitlabMergeRequestsByWorkPackageAPI < ::API::OpenProjectAPI+ after_validation do+ authorize(:show_gitlab_content, context: @work_package.project)+ @gitlab_merge_requests = @work_package.gitlab_merge_requests+ end++ resources :gitlab_merge_requests do+ get do+ path = api_v3_paths.gitlab_merge_requests_by_work_package(@work_package.id)+ GitlabMergeRequestCollectionRepresenter.new(@gitlab_merge_requests,+ @gitlab_merge_requests.count,+ self_link: path,+ current_user: current_user)+ end+ end+ end+ end+ end+enddiff --git a/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb b/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rbnew file mode 100644index 00000000000..c1ec18dd818--- /dev/null+++ b/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb@@ -0,0 +1,59 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++require 'roar/decorator'+require 'roar/json/hal'++module API+ module V3+ module GitlabMergeRequests+ class GitlabPipelineRepresenter < ::API::Decorators::Single+ include API::Caching::CachedRepresenter+ include API::Decorators::DateProperty++ self_link id_attribute: :id,+ title_getter: ->(*) { nil }++ property :gitlab_html_url, as: :htmlUrl+ property :gitlab_user_avatar_url, as: :userAvatarUrl+ property :name+ property :status+ property :details_url+ property :ci_details++ date_time_property :started_at+ date_time_property :completed_at++ def _type+ 'GitlabPipeline'+ end+ end+ end+ end+enddiff --git a/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb b/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rbnew file mode 100644index 00000000000..914fce5146d--- /dev/null+++ b/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb@@ -0,0 +1,52 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++require 'roar/decorator'+require 'roar/json/hal'++module API+ module V3+ module GitlabMergeRequests+ class GitlabUserRepresenter < ::API::Decorators::Single+ include API::Caching::CachedRepresenter++ self_link id_attribute: :id,+ title_getter: ->(*) { nil }++ property :gitlab_name, as: :login+ property :gitlab_email, as: :email+ property :gitlab_avatar_url, as: :avatarUrl++ def _type+ 'GitlabUser'+ end+ end+ end+ end+enddiff --git a/lib/open_project/gitlab_integration.rb b/lib/open_project/gitlab_integration.rbindex b06edeea833..c524473ec83 100644--- a/lib/open_project/gitlab_integration.rb+++ b/lib/open_project/gitlab_integration.rb@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public Licensediff --git a/lib/open_project/gitlab_integration/engine.rb b/lib/open_project/gitlab_integration/engine.rbindex 8bf65c1ca94..a3c16c6f699 100644--- a/lib/open_project/gitlab_integration/engine.rb+++ b/lib/open_project/gitlab_integration/engine.rb@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License@@ -27,8 +28,11 @@#++require 'open_project/plugins'++require_relative './patches/api/work_package_representer'require_relative './notification_handlers'require_relative './hook_handler'+require_relative './services'module OpenProject::GitlabIntegrationclass Engine < ::Rails::Engine@@ -37,7 +41,7 @@ module OpenProject::GitlabIntegrationinclude OpenProject::Plugins::ActsAsOpEngineregister 'openproject-gitlab_integration',- :author_url => 'https://github.com/btey/openproject-gitlab-integration',+ :author_url => 'https://github.com/btey/openproject',bundled: true@@ -56,6 +60,40 @@ module OpenProject::GitlabIntegration&NotificationHandlers.method(:issue_hook))::OpenProject::Notifications.subscribe('gitlab.push_hook',&NotificationHandlers.method(:push_hook))+ ::OpenProject::Notifications.subscribe('gitlab.pipeline_hook',+ &NotificationHandlers.method(:pipeline_hook))+ end++ initializer 'gitlab.permissions' do+ OpenProject::AccessControl.map do |ac_map|+ ac_map.project_module(:gitlab, dependencies: :work_package_tracking) do |pm_map|+ pm_map.permission(:show_gitlab_content, {}, {})+ end+ end+ end++ extend_api_response(:v3, :work_packages, :work_package,+ &::OpenProject::GitlabIntegration::Patches::API::WorkPackageRepresenter.extension)++ add_api_path :gitlab_merge_requests_by_work_package do |id|+ "#{work_package(id)}/gitlab_merge_requests"+ end++ add_api_path :gitlab_user do |id|+ "gitlab_users/#{id}"+ end++ add_api_path :gitlab_pipeline do |id|+ "gitlab_pipeline/#{id}"+ end++ add_api_endpoint 'API::V3::WorkPackages::WorkPackagesAPI', :id do+ mount ::API::V3::GitlabMergeRequests::GitlabMergeRequestsByWorkPackageAPI+ end++ config.to_prepare do+ # Register the cron job to clean up old gitlab merge requests+ ::Cron::CronJob.register! ::Cron::ClearOldMergeRequestsJobendenddiff --git a/lib/open_project/gitlab_integration/hook_handler.rb b/lib/open_project/gitlab_integration/hook_handler.rbindex 2b330ec9f8a..fc163e17ea0 100644--- a/lib/open_project/gitlab_integration/hook_handler.rb+++ b/lib/open_project/gitlab_integration/hook_handler.rb@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License@@ -29,7 +30,13 @@module OpenProject::GitlabIntegrationclass HookHandler# List of the gitlab events we can handle.- KNOWN_EVENTS = %w[push_hook issue_hook note_hook merge_request_hook].freeze+ KNOWN_EVENTS = %w[+ push_hook+ issue_hook+ note_hook+ merge_request_hook+ pipeline_hook+ ].freeze# A gitlab webhook happened.# We need to check validity of the data and send a Notification@@ -50,13 +57,9 @@ module OpenProject::GitlabIntegration.merge('open_project_user_id' => user.id,'gitlab_event' => event_type)- OpenProject::Notifications.send(event_name(event_type), payload)+ OpenProject::Notifications.send("gitlab.#{event_type}", payload)return 200end-- private def event_name(gitlab_event_name)- "gitlab.#{gitlab_event_name}"- endendenddiff --git a/lib/open_project/gitlab_integration/notification_handler/helper.rb b/lib/open_project/gitlab_integration/notification_handler/helper.rbnew file mode 100644index 00000000000..dec15c25dad--- /dev/null+++ b/lib/open_project/gitlab_integration/notification_handler/helper.rb@@ -0,0 +1,151 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module OpenProject::GitlabIntegration+ module NotificationHandler+ module Helper++ ##+ # Parses the given source string and returns a list of work_package ids+ # which it finds and should be considered public or private.+ # WorkPackages are identified by their URL.+ # Params:+ # source: string+ # Returns:+ # Array<int>+ def extract_work_package_ids(text, kind = "")+ # matches the following things (given that `Setting.host_name` equals 'www.openproject.org')+ # - http://www.openproject.org/wp/1234+ # - https://www.openproject.org/wp/1234+ # - http://www.openproject.org/work_packages/1234+ # - https://www.openproject.org/subdirectory/work_packages/1234+ # Or with the following prefix: OP# PP#+ # e.g.,: This is a reference to OP#1234+ # For private comments you can use the prefix: PP#+ host_name = Regexp.escape(Setting.host_name)+ if kind == 'private'+ wp_regex = /PP#(\d+)/+ elsif kind != 'note'+ wp_regex = /OP#(\d+)|PP#(\d+)|http(?:s?):\/\/#{host_name}\/(?:\S+?\/)*(?:work_packages|wp)\/([0-9]+)/+ else+ wp_regex = /OP#(\d+)|http(?:s?):\/\/#{host_name}\/(?:\S+?\/)*(?:work_packages|wp)\/([0-9]+)/+ end+ String(text)+ .scan(wp_regex)+ .map { |first, second| (first || second).to_i }+ .select(&:positive?)+ .uniq+ end++ ##+ # Given a list of work package ids this methods returns all work packages that match those ids+ # and are visible by the given user.+ # Params:+ # - Array<int>: An list of WorkPackage ids+ # - User: The user who may (or may not) see those WorkPackages+ # Returns:+ # - Array<WorkPackage>+ def find_visible_work_packages(ids, user)+ WorkPackage+ .includes(:project)+ .where(id: ids)+ .select { |wp| user.allowed_to?(:add_work_package_notes, wp.project) }+ end++ # Returns a list of `WorkPackage`s that were referenced in the `text` and are visible to the given `user`.+ def find_mentioned_work_packages(text, user, kind = "")+ find_visible_work_packages(extract_work_package_ids(text, kind), user)+ end++ # Returns a list of `WorkPackage`s that were excluded in the `text`.+ def find_excluded_work_packages(text, user)+ find_visible_work_packages(extract_work_package_ids(text, 'private'), user)+ end++ ##+ # Adds comments to the given WorkPackages.+ def comment_on_referenced_work_packages(work_packages, user, notes)+ return if notes.nil?+ work_packages.each do |work_package|+ ::WorkPackages::UpdateService+ .new(user: user, model: work_package)+ .call(journal_notes: notes, send_notifications: false)+ end+ end++ ##+ # Adds comments to the given WorkPackages.+ def status_on_referenced_work_packages(work_packages, user, status)+ work_packages.each do |work_package|+ ::WorkPackages::UpdateService+ .new(user: user, model: work_package)+ .call(status_id: status)+ end+ end++ ##+ # A wapper around a ruby Hash to access webhook payloads.+ # All methods called on it are converted to `.fetch` hash-access, raising an error if the string-key does not exist.+ # If the method ends with a question mark, e.g. "comment?" not error is raised if the key does not exist.+ # If the fetched value is again a hash, the value is wrapped into a new payload object.+ class Payload+ def initialize(payload)+ @payload = payload+ end++ def to_h+ @payload.dup+ end++ def method_missing(name, *args, &block)+ super unless args.empty? && block.nil?++ value = if name.end_with?('?')+ @payload.fetch(name.to_s[..-2], nil)+ else+ @payload.fetch(name.to_s)+ end++ return Payload.new(value) if value.is_a?(Hash)++ value+ end++ def respond_to_missing?(_method_name, _include_private = false)+ true+ end+ end++ def wrap_payload(payload)+ Payload.new(payload)+ end++ end+ end+end\ No newline at end of filediff --git a/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb b/lib/open_project/gitlab_integration/notification_handler/issue_hook.rbnew file mode 100644index 00000000000..8688db05600--- /dev/null+++ b/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb@@ -0,0 +1,71 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module OpenProject::GitlabIntegration+ module NotificationHandler+ ##+ # 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+ work_packages = find_mentioned_work_packages(text, user)+ notes = generate_notes(payload)+ comment_on_referenced_work_packages(work_packages, user, notes)+ end++ private++ attr_reader :payload++ def generate_notes(payload)+ accepted_actions = %w[open reopen close]++ key_action = {+ 'open' => 'opened',+ 'reopen' => 'reopened',+ 'close' => 'closed'+ }[payload.object_attributes.action]++ return nil unless accepted_actions.include? payload.object_attributes.action+ I18n.t("gitlab_integration.issue_#{key_action}_referenced_comment",+ :issue_number => payload.object_attributes.iid,+ :issue_title => payload.object_attributes.title,+ :issue_url => payload.object_attributes.url,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ end+ end+ end+end\ No newline at end of filediff --git a/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb b/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rbnew file mode 100644index 00000000000..3ac435a3eb4--- /dev/null+++ b/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb@@ -0,0 +1,109 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module OpenProject::GitlabIntegration+ module NotificationHandler+ ##+ # Handles Gitlab merge request notifications.+ class MergeRequestHook+ include OpenProject::GitlabIntegration::NotificationHandler::Helper++ def process(payload_params)+ update_status_on_new_mr = false # true if you only reference one merge by work_package, else false.+ update_status_on_merged = false # true if you only reference one merge by work_package, else false.++ accepted_actions = %w[open update reopen]+ accepted_actions_for_comments = %w[open reopen]+ accepted_states = %w[closed merged]++ @payload = wrap_payload(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+ 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+ status_on_referenced_work_packages(work_packages, user, 7)+ elsif payload.object_attributes.state == 'merged' && update_status_on_merged+ status_on_referenced_work_packages(work_packages, user, 8)+ end+ end+ upsert_merge_request(work_packages)+ end++ private++ attr_reader :payload++ def generate_notes(payload)+ key = {+ 'opened' => 'opened',+ 'reopened' => 'reopened',+ 'closed' => 'closed',+ 'merged' => 'merged',+ 'edited' => 'referenced',+ 'referenced' => 'referenced'+ }[payload.object_attributes.state]++ key_action = {+ 'reopen' => 'reopened'+ }[payload.object_attributes.action]++ return nil unless key++ I18n.t("gitlab_integration.merge_request_#{key_action ? key_action : key}_comment",+ :mr_number => payload.object_attributes.iid,+ :mr_title => payload.object_attributes.title,+ :mr_url => payload.object_attributes.url,+ :repository => payload.repository.name,+ :repository_url => payload.repository.url,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ end++ def merge_request+ @merge_request ||= GitlabMergeRequest+ .where(gitlab_id: payload.object_attributes.iid)+ .or(GitlabMergeRequest.where(gitlab_html_url: payload.object_attributes.url))+ .take+ end++ def upsert_merge_request(work_packages)+ return if work_packages.empty? && merge_request.nil?+ OpenProject::GitlabIntegration::Services::UpsertMergeRequest.new.call(payload,+ work_packages: work_packages)+ end++ end+ end+end\ No newline at end of filediff --git a/lib/open_project/gitlab_integration/notification_handler/note_hook.rb b/lib/open_project/gitlab_integration/notification_handler/note_hook.rbnew file mode 100644index 00000000000..049998d40ad--- /dev/null+++ b/lib/open_project/gitlab_integration/notification_handler/note_hook.rb@@ -0,0 +1,146 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module OpenProject::GitlabIntegration+ module NotificationHandler+ ##+ # Handles Gitlab comment notifications.+ class NoteHook+ include OpenProject::GitlabIntegration::NotificationHandler::Helper++ # TODO: this can be more refactored and simplified...+ def process(payload_params)+ @payload = wrap_payload(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'+ 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'+ 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'+ 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')+ else+ notes = generate_notes(payload, 'reference')+ end+ comment_on_referenced_work_packages(work_packages, user, notes)+ end++ private++ attr_reader :payload++ # TODO: add key list to simplify the code...+ def generate_notes(payload, note_type)+ if payload.object_attributes.noteable_type == 'Commit'+ commit_id = payload.commit.id+ I18n.t("gitlab_integration.note_commit_referenced_comment",+ :commit_id => commit_id[0, 8],+ :commit_url => payload.object_attributes.url,+ :commit_note => payload.object_attributes.note,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ elsif payload.object_attributes.noteable_type == '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,+ :mr_url => payload.object_attributes.url,+ :mr_note => payload.object_attributes.note,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ elsif note_type == 'reference'+ I18n.t("gitlab_integration.note_mr_referenced_comment",+ :mr_number => payload.merge_request.iid,+ :mr_title => payload.merge_request.title,+ :mr_url => payload.object_attributes.url,+ :mr_note => payload.object_attributes.note,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ end+ elsif payload.object_attributes.noteable_type == 'Issue'+ if note_type == 'comment'+ I18n.t("gitlab_integration.note_issue_commented_comment",+ :issue_number => payload.issue.iid,+ :issue_title => payload.issue.title,+ :issue_url => payload.object_attributes.url,+ :issue_note => payload.object_attributes.note,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ elsif note_type == 'reference'+ I18n.t("gitlab_integration.note_issue_referenced_comment",+ :issue_number => payload.issue.iid,+ :issue_title => payload.issue.title,+ :issue_url => payload.object_attributes.url,+ :issue_note => payload.object_attributes.note,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ end+ elsif payload.object_attributes.noteable_type == 'Snippet'+ I18n.t("gitlab_integration.note_snippet_referenced_comment",+ :snippet_number => payload.snippet.id,+ :snippet_title => payload.snippet.title,+ :snippet_url => payload.object_attributes.url,+ :snippet_note => payload.object_attributes.note,+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user.name,+ :gitlab_user_url => payload.user.avatar_url)+ else+ return nil+ end+ end+ end+ end+end\ No newline at end of filediff --git a/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rb b/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rbnew file mode 100644index 00000000000..85cdec1ebfa--- /dev/null+++ b/lib/open_project/gitlab_integration/notification_handler/pipeline_hook.rb@@ -0,0 +1,65 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module OpenProject::GitlabIntegration+ module NotificationHandler+ ##+ # Handles Gitlab pipeline notifications.+ class PipelineHook+ include OpenProject::GitlabIntegration::NotificationHandler::Helper++ def process(payload_params)+ @payload = wrap_payload(payload_params)++ return unless associated_with_mr?+ merge_request = find_merge_request+ return unless merge_request++ # disabled until gitlab issue resolution+ # OpenProject::GitlabIntegration::Services::UpsertPipeline.new.call(+ # payload,+ # merge_request: merge_request+ # )+ end++ private++ attr_reader :payload++ def associated_with_mr?+ payload.merge_request.iid?.present?+ end++ def find_merge_request+ gitlab_id = payload.merge_request.iid+ GitlabMergeRequest.find_by(gitlab_id: gitlab_id)+ end+ end+ end+enddiff --git a/lib/open_project/gitlab_integration/notification_handler/push_hook.rb b/lib/open_project/gitlab_integration/notification_handler/push_hook.rbnew file mode 100644index 00000000000..83f9af26113--- /dev/null+++ b/lib/open_project/gitlab_integration/notification_handler/push_hook.rb@@ -0,0 +1,67 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++module OpenProject::GitlabIntegration+ module NotificationHandler+ ##+ # 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'+ payload.commits.each do |commit|+ user = User.find_by_id(payload.open_project_user_id)+ 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)+ end+ end++ private++ attr_reader :payload++ def generate_notes(commit, payload)+ 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'],+ :repository => payload.repository.name,+ :repository_url => payload.repository.homepage,+ :gitlab_user => payload.user_name,+ :gitlab_user_url => payload.user_avatar)+ end+ end+ end+end\ No newline at end of filediff --git a/lib/open_project/gitlab_integration/notification_handlers.rb b/lib/open_project/gitlab_integration/notification_handlers.rbindex 23f0ff424e7..9049ca6deb0 100644--- a/lib/open_project/gitlab_integration/notification_handlers.rb+++ b/lib/open_project/gitlab_integration/notification_handlers.rb@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License@@ -26,258 +27,55 @@# 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'+module OpenProject::GitlabIntegration### Handles gitlab-related notifications.module NotificationHandlers-- def self.merge_request_hook(payload)- accepted_actions = %w[open]- accepted_states = %w[closed merged]- return unless (accepted_actions.include? payload['object_attributes']['action']) || (accepted_states.include? payload['object_attributes']['state'])- comment_on_referenced_work_packages payload['object_attributes']['title'], payload-- rescue => e- Rails.logger.error "Failed to handle merge_request_hook event: #{e} #{e.message}"- raise e- end-- def self.note_hook(payload)- comment_on_referenced_work_packages payload['object_attributes']['note'], payload-- rescue => e- Rails.logger.error "Failed to handle note_hook event: #{e} #{e.message}"- raise e- end-- def self.push_hook(payload)- push_hook_split_commits payload-- rescue => e- Rails.logger.error "Failed to handle push_hook event: #{e} #{e.message}"- raise e- end-- def self.issue_hook(payload)- comment_on_referenced_work_packages payload['object_attributes']['title'] + ' - ' + payload['object_attributes']['description'], payload-- rescue => e- Rails.logger.error "Failed to handle issue_hook event: #{e} #{e.message}"- raise e- end-- def self.push_hook_split_commits(payload)- return nil unless payload['object_kind'] == 'push'- payload[:commits].each do |commit|- # concatenated to check title and description in one step- text = commit['title'] + " - " + commit['message']- comment_on_referenced_work_packages text, payload, commit+ class << self+ def merge_request_hook(payload)+ with_logging('merge_request_hook') do+ OpenProject::GitlabIntegration::NotificationHandler::MergeRequestHook.new.process(payload)+ endend- end- def self.comment_on_referenced_work_packages(text, payload, commit = nil)- user = User.find_by_id(payload['open_project_user_id'])- wp_ids = extract_work_package_ids(text)- wps = find_visible_work_packages(wp_ids, user)- if payload['object_kind'] == 'push'- notes = notes_for_push_payload(commit, payload)- elsif payload['object_kind'] == 'issue'- notes = notes_for_issue_payload(payload)- elsif payload['object_kind'] == 'merge_request'- notes = notes_for_merge_request_payload(payload)- elsif payload['object_kind'] == 'note'- if wps.empty? && payload['object_attributes']['noteable_type'] == 'Issue'- wp_ids = extract_work_package_ids(payload['issue']['title'] + ' - ' + payload['object_attributes']['note'])- wps = find_visible_work_packages(wp_ids, user)- notes = notes_for_note_payload(payload, 'comment')- elsif wps.empty? && payload['object_attributes']['noteable_type'] == 'MergeRequest'- wp_ids = extract_work_package_ids(payload['merge_request']['title'] + ' - ' + payload['object_attributes']['note'])- wps = find_visible_work_packages(wp_ids, user)- notes = notes_for_note_payload(payload, 'comment')- else- notes = notes_for_note_payload(payload, 'reference')+ def note_hook(payload)+ with_logging('note_hook') do+ OpenProject::GitlabIntegration::NotificationHandler::NoteHook.new.process(payload)end- else- returnend- return if notes.nil?-- if payload['object_kind'] == 'merge_request'- if payload['object_attributes']['state'] == 'opened'- attributes = { journal_notes: notes, status_id: 7 }- elsif payload['object_attributes']['state'] == 'merged'- attributes = { journal_notes: notes, status_id: 8 }- else- attributes = { journal_notes: notes }+ def push_hook(payload)+ with_logging('push_hook') do+ OpenProject::GitlabIntegration::NotificationHandler::PushHook.new.process(payload)end- else- attributes = { journal_notes: notes }- end-- wps.each do |wp|- ::WorkPackages::UpdateService- .new(user: user, model: wp)- .call(attributes.merge(send_notifications: false).symbolize_keys)end- end-- ##- # Parses the given source string and returns a list of work_package ids- # which it finds.- # WorkPackages are identified by their URL.- # Params:- # source: string- # Returns:- # Array<int>- def self.extract_work_package_ids(source)- # matches the following things (given that `Setting.host_name` equals 'www.openproject.org')- # - http://www.openproject.org/wp/1234- # - https://www.openproject.org/wp/1234- # - http://www.openproject.org/work_packages/1234- # - https://www.openproject.org/subdirectory/work_packages/1234- # Or with the following prefix: OP#- # e.g.,: This is a reference to OP#1234- host_name = Regexp.escape(Setting.host_name)- wp_regex = /OP#(\d+)|http(?:s?):\/\/#{host_name}\/(?:\S+?\/)*(?:work_packages|wp)\/([0-9]+)/-- source.scan(wp_regex)- .map {|first, second| (first || second).to_i }- .select { |el| el > 0 }- .uniq- end- ##- # Given a list of work package ids this methods returns all work packages that match those ids- # and are visible by the given user.- # Params:- # - Array<int>: An list of WorkPackage ids- # - User: The user who may (or may not) see those WorkPackages- # Returns:- # - Array<WorkPackage>- def self.find_visible_work_packages(ids, user)- ids.collect do |id|- WorkPackage.includes(:project).find_by_id(id)- end.select do |wp|- wp.present? && user.allowed_to?(:add_work_package_notes, wp.project)+ def issue_hook(payload)+ with_logging('issue_hook') do+ OpenProject::GitlabIntegration::NotificationHandler::IssueHook.new.process(payload)+ endend- end-- def self.notes_for_issue_payload(payload)- return nil unless payload['object_attributes']['action'] == 'open' || payload['object_attributes']['state'] == 'closed'- I18n.t("gitlab_integration.issue_#{payload['object_attributes']['state']}_referenced_comment",- :issue_number => payload['object_attributes']['iid'],- :issue_title => payload['object_attributes']['title'],- :issue_url => payload['object_attributes']['url'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- end- def self.notes_for_push_payload(commit, payload)- 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'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user_name'],- :gitlab_user_url => payload['user_avatar'])- end-- def self.notes_for_merge_request_payload(payload)- key = {- 'opened' => 'opened',- 'reopened' => 'opened',- 'closed' => 'closed',- 'merged' => 'merged',- 'edited' => 'referenced',- 'referenced' => 'referenced'- }[payload['object_attributes']['state']]-- return nil unless key+ def pipeline_hook(payload)+ with_logging('pipeline_hook') do+ OpenProject::GitlabIntegration::NotificationHandler::PipelineHook.new.process(payload)+ end+ end- I18n.t("gitlab_integration.merge_request_#{key}_comment",- :mr_number => payload['object_attributes']['id'],- :mr_title => payload['object_attributes']['title'],- :mr_url => payload['object_attributes']['url'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['url'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- end+ private- def self.notes_for_note_payload(payload, note_type)- if payload['object_attributes']['noteable_type'] == 'Commit'- commit_id = payload['commit']['id']- I18n.t("gitlab_integration.note_commit_referenced_comment",- :commit_id => commit_id[0, 8],- :commit_url => payload['object_attributes']['url'],- :commit_note => payload['object_attributes']['note'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- elsif payload['object_attributes']['noteable_type'] == 'MergeRequest'- if note_type == 'comment'- I18n.t("gitlab_integration.note_mr_commented_comment",- :mr_number => payload['merge_request']['id'],- :mr_title => payload['merge_request']['title'],- :mr_url => payload['object_attributes']['url'],- :mr_note => payload['object_attributes']['note'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- elsif note_type == 'reference'- I18n.t("gitlab_integration.note_mr_referenced_comment",- :mr_number => payload['merge_request']['id'],- :mr_title => payload['merge_request']['title'],- :mr_url => payload['object_attributes']['url'],- :mr_note => payload['object_attributes']['note'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- end- elsif payload['object_attributes']['noteable_type'] == 'Issue'- if note_type == 'comment'- I18n.t("gitlab_integration.note_issue_commented_comment",- :issue_number => payload['issue']['iid'],- :issue_title => payload['issue']['title'],- :issue_url => payload['object_attributes']['url'],- :issue_note => payload['object_attributes']['note'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- elsif note_type == 'reference'- I18n.t("gitlab_integration.note_issue_referenced_comment",- :issue_number => payload['issue']['iid'],- :issue_title => payload['issue']['title'],- :issue_url => payload['object_attributes']['url'],- :issue_note => payload['object_attributes']['note'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- end- elsif payload['object_attributes']['noteable_type'] == 'Snippet'- I18n.t("gitlab_integration.note_snippet_referenced_comment",- :snippet_number => payload['snippet']['id'],- :snippet_title => payload['snippet']['title'],- :snippet_url => payload['object_attributes']['url'],- :snippet_note => payload['object_attributes']['note'],- :repository => payload['repository']['name'],- :repository_url => payload['repository']['homepage'],- :gitlab_user => payload['user']['name'],- :gitlab_user_url => payload['user']['avatar_url'])- else- return nil+ 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}"+ raise eendendenddiff --git a/lib/open_project/gitlab_integration/patches/api/work_package_representer.rb b/lib/open_project/gitlab_integration/patches/api/work_package_representer.rbnew file mode 100644index 00000000000..de310797b95--- /dev/null+++ b/lib/open_project/gitlab_integration/patches/api/work_package_representer.rb@@ -0,0 +1,56 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++module OpenProject::GitlabIntegration+ module Patches+ module API+ module WorkPackageRepresenter+ module_function++ def extension+ ->(*) do+ link :gitlab,+ cache_if: -> { current_user.allowed_to?(:show_gitlab_content, represented.project) } do+ {+ href: "#{work_package_path(id: represented.id)}/tabs/gitlab",+ title: "gitlab"+ }+ end++ link :gitlab_merge_requests do+ {+ href: api_v3_paths.gitlab_merge_requests_by_work_package(represented.id),+ title: "Gitlab merge requests"+ }+ end+ end+ end+ end+ end+ end+enddiff --git a/lib/open_project/gitlab_integration/services.rb b/lib/open_project/gitlab_integration/services.rbnew file mode 100644index 00000000000..25f735aabe7--- /dev/null+++ b/lib/open_project/gitlab_integration/services.rb@@ -0,0 +1,32 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2021 Ben Tey+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#++++require_relative './services/upsert_pipeline'+require_relative './services/upsert_gitlab_user'+require_relative './services/upsert_merge_request'diff --git a/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb b/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rbnew file mode 100644index 00000000000..42845f14e16--- /dev/null+++ b/lib/open_project/gitlab_integration/services/upsert_gitlab_user.rb@@ -0,0 +1,60 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++module OpenProject::GitlabIntegration::Services+ ##+ # Takes user data coming from Gitlab webhook data and stores+ # them as a `GitlabUser`.+ # If the `GitlabUser` already exists, it is updated.+ #+ # Returns the upserted `GitlabUser`.+ class UpsertGitlabUser+ def call(payload)+ GitlabUser.find_or_initialize_by(gitlab_id: payload.id)+ .tap do |gitlab_user|+ gitlab_user.update!(extract_params(payload))+ end+ end++ private++ ##+ # Receives the input from the gitlab webhook and translates them+ # to our internal representation.+ def extract_params(payload)+ {+ gitlab_id: payload.id,+ gitlab_name: payload.name,+ gitlab_username: payload.username,+ gitlab_email: payload.email,+ gitlab_avatar_url: payload.avatar_url+ }+ end+ end+enddiff --git a/lib/open_project/gitlab_integration/services/upsert_merge_request.rb b/lib/open_project/gitlab_integration/services/upsert_merge_request.rbnew file mode 100644index 00000000000..d67a17e2701--- /dev/null+++ b/lib/open_project/gitlab_integration/services/upsert_merge_request.rb@@ -0,0 +1,88 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++module OpenProject::GitlabIntegration::Services+ ##+ # Takes merge request data coming from Gitlab webhook data and stores+ # them as a `GitlabMergeRequest`.+ # If the `GitlabMergeRequest` already exists, it is updated.+ #+ # Returns the upserted `GitlabMergeRequest`.+ class UpsertMergeRequest+ def call(payload, work_packages: [])+ find_or_initialize(payload).tap do |mr|+ mr.update!(work_packages: mr.work_packages | work_packages, **extract_params(payload))+ end+ end++ private++ def find_or_initialize(payload)+ GitlabMergeRequest.find_by_gitlab_identifiers(id: payload.object_attributes.iid,+ url: payload.object_attributes.url,+ initialize: true)+ end++ # Receives the input from the gitlab webhook and translates them+ # to our internal representation.+ # rubocop:disable Metrics/AbcSize+ def extract_params(payload)+ {+ gitlab_id: payload.object_attributes.iid,+ gitlab_user: gitlab_user_id(payload.user),+ number: payload.object_attributes.iid,+ gitlab_html_url: payload.object_attributes.url,+ gitlab_updated_at: payload.object_attributes.updated_at,+ state: payload.object_attributes.state,+ title: payload.object_attributes.title,+ body: payload.object_attributes.description,+ repository: payload.repository.name,+ draft: payload.object_attributes.work_in_progress,+ merged: payload.object_attributes.state == 'merged' ? true : false,+ merged_by: gitlab_user_id(payload.user),+ merged_at: payload.object_attributes.state == 'merged' ? payload.object_attributes.updated_at : nil,+ labels: payload.labels.map { |values| extract_label_values(values) }+ }+ end+ # rubocop:enable Metrics/AbcSize++ def extract_label_values(payload)+ {+ title: payload['title'],+ color: payload['color']+ }+ end++ def gitlab_user_id(payload)+ return if payload.blank?++ ::OpenProject::GitlabIntegration::Services::UpsertGitlabUser.new.call(payload)+ end+ end+enddiff --git a/lib/open_project/gitlab_integration/services/upsert_pipeline.rb b/lib/open_project/gitlab_integration/services/upsert_pipeline.rbnew file mode 100644index 00000000000..fdca7fc2a1e--- /dev/null+++ b/lib/open_project/gitlab_integration/services/upsert_pipeline.rb@@ -0,0 +1,64 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#+++module OpenProject::GitlabIntegration::Services+ ##+ # Takes pipelines CI data coming from Gitlab webhook data and stores+ # them as a `GitlabPipeline`.+ # If the `GitlabPipeline` already exists, it is updated.+ #+ # Returns the upserted `GitlabPipeline`.+ class UpsertPipeline+ def call(payload, merge_request:)+ GitlabPipelines.find_or_initialize_by(gitlab_id: payload.object_attributes.id)+ .tap do |pipeline|+ pipeline.update!(gitlab_merge_request: merge_request, **extract_params(payload))+ end+ end++ private++ # Receives the input from the gitlab webhook and translates them+ # to our internal representation.+ def extract_params(payload)+ {+ gitlab_id: payload.object_attributes.id,+ gitlab_html_url: payload.project.web_url + "-/pipelines/" + payload.object_attributes.id,+ project_id: payload.project.id,+ gitlab_user_avatar_url: payload.user.avatar_url,+ name: payload.object_attributes.status,+ status: payload.object_attributes.status,+ details_url: payload.project.web_url + "-/pipelines/" + payload.object_attributes.id,+ # ci_details: pending until resolution of the gitlab issue,+ started_at: payload.object_attributes.created_at,+ completed_at: payload.object_attributes.finished_at+ }+ end+ end+end\ No newline at end of filediff --git a/lib/openproject-gitlab_integration.rb b/lib/openproject-gitlab_integration.rbindex 9e4cc60533a..c4d802aea22 100644--- a/lib/openproject-gitlab_integration.rb+++ b/lib/openproject-gitlab_integration.rb@@ -1,13 +1,14 @@#-- copyright# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH+# Copyright (C) 2021 Ben Tey## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version 3.## OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2006-2013 Jean-Philippe Lang# Copyright (C) 2010-2013 the ChiliProject Team+# Copyright (C) 2012-2021 the OpenProject GmbH## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public Licensediff --git a/openproject-gitlab_integration.gemspec b/openproject-gitlab_integration.gemspecindex 1552e73e483..705a6daa48d 100644--- a/openproject-gitlab_integration.gemspec+++ b/openproject-gitlab_integration.gemspec@@ -1,15 +1,16 @@# encoding: UTF-8+Gem::Specification.new do |s|s.name = "openproject-gitlab_integration"- s.version = '1.0.0'- s.authors = "Benjamin Tey"+ s.version = '2.0.0'+ s.authors = "Ben Tey"s.email = "[email protected]"s.homepage = "https://github.com/btey/openproject-gitlab-integration"s.summary = 'OpenProject GitLab Integration's.description = 'Integrates OpenProject and GitLab for a better workflow's.license = 'GPLv3'- s.files = Dir["{app,config,db,doc,lib}/**/*"] + %w(README.md)+ s.files = Dir["{app,config,db,frontend,lib}/**/*"] + %w(README.md)s.add_dependency "openproject-webhooks"end