Class: Types::Ci::PipelineScheduleType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ci/pipeline_schedule_type.rb

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#edit_pathObject



77
78
79
# File 'app/graphql/types/ci/pipeline_schedule_type.rb', line 77

def edit_path
  ::Gitlab::Routing.url_helpers.edit_project_pipeline_schedule_path(object.project, object)
end

#ref_pathObject



70
71
72
73
74
75
# File 'app/graphql/types/ci/pipeline_schedule_type.rb', line 70

def ref_path
  ref_for_display = object.ref_for_display
  return unless ref_for_display

  ::Gitlab::Routing.url_helpers.project_commits_path(object.project, ref_for_display)
end