Class: GitlabIssueTrackerService

Inherits:
IssueTrackerService show all
Defined in:
app/models/project_services/gitlab_issue_tracker_service.rb

Overview

Schema Information

Table name: services

id                    :integer          not null, primary key
type                  :string
title                 :string
project_id            :integer
created_at            :datetime         not null
updated_at            :datetime         not null
active                :boolean          not null
properties            :text
template              :boolean          default(FALSE)
push_events           :boolean          default(TRUE)
issues_events         :boolean          default(TRUE)
merge_requests_events :boolean          default(TRUE)
tag_push_events       :boolean          default(TRUE)
note_events           :boolean          default(TRUE), not null
build_events          :boolean          default(FALSE), not null
category              :string           default("common"), not null
default               :boolean          default(FALSE)
wiki_page_events      :boolean          default(TRUE)

Instance Method Summary collapse

Methods inherited from IssueTrackerService

#default?, #execute, #fields, #initialize_properties, #supported_events

Methods inherited from Service

#activated?, #async_execute, available_services_names, boolean_accessor, #can_test?, #category, create_from_template, #description, #execute, #fields, #help, #initialize_properties, #issue_tracker?, prop_accessor, #reset_updated_properties, #supported_events, #template?, #test, #title, #updated_properties

Instance Method Details

#issue_path(iid) ⇒ Object


56
57
58
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 56

def issue_path(iid)
  namespace_project_issue_path(namespace_id: project.namespace, project_id: project, id: iid)
end

#issue_url(iid) ⇒ Object


44
45
46
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 44

def issue_url(iid)
  namespace_project_issue_url(namespace_id: project.namespace, project_id: project, id: iid)
end

#new_issue_pathObject


52
53
54
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 52

def new_issue_path
  new_namespace_project_issue_path(namespace_id: project.namespace, project_id: project)
end

#new_issue_urlObject


40
41
42
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 40

def new_issue_url
  new_namespace_project_issue_url(namespace_id: project.namespace, project_id: project)
end

#project_pathObject


48
49
50
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 48

def project_path
  namespace_project_issues_path(project.namespace, project)
end

#project_urlObject


36
37
38
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 36

def project_url
  namespace_project_issues_url(project.namespace, project)
end

#to_paramObject


32
33
34
# File 'app/models/project_services/gitlab_issue_tracker_service.rb', line 32

def to_param
  'gitlab'
end