Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2024-01-17 09:07:23 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-17 09:07:23 +0300
commit172e4a12748fd146fdd0e9eca12ade4c51dabda9 (patch)
tree7d4be9fa2966dbaf4f9f98937db051627e78b816 /app
parent4c872af312f27f2e2da967a6efebd76e88119caa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/graphql/types/ci/pipeline_type.rb4
-rw-r--r--app/views/projects/_importing_alert.haml6
2 files changed, 10 insertions, 0 deletions
diff --git a/app/graphql/types/ci/pipeline_type.rb b/app/graphql/types/ci/pipeline_type.rb
index dfdc3752916..65244235e10 100644
--- a/app/graphql/types/ci/pipeline_type.rb
+++ b/app/graphql/types/ci/pipeline_type.rb
@@ -199,6 +199,10 @@ module Types
field :stuck, GraphQL::Types::Boolean, method: :stuck?, null: false, description: "If the pipeline is stuck."
+ field :yaml_errors, GraphQL::Types::Boolean, method: :yaml_errors?, null: false, description: "If the pipeline has YAML errors."
+
+ field :trigger, GraphQL::Types::Boolean, method: :trigger?, null: false, description: "If the pipeline was created by a Trigger request."
+
def commit
BatchLoader::GraphQL.wrap(object.commit)
end
diff --git a/app/views/projects/_importing_alert.haml b/app/views/projects/_importing_alert.haml
new file mode 100644
index 00000000000..192f952e460
--- /dev/null
+++ b/app/views/projects/_importing_alert.haml
@@ -0,0 +1,6 @@
+- return unless project.import_in_progress?
+
+- content_for :page_level_alert do
+ = render Pajamas::AlertComponent.new(variant: :warning, dismissible: false, title: _('Import in progress'), alert_options: { class: 'gl-mb-3' }) do |c|
+ - c.with_body do
+ = s_('Import|This project is being imported. Do not make any changes to the project until the import is complete.')