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, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#edit_pathObject



83
84
85
# File 'app/graphql/types/ci/pipeline_schedule_type.rb', line 83

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

#ref_pathObject



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

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