Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
This commit is contained in:
commit
21f942a5ad
|
|
@ -23,6 +23,7 @@ v 8.8.0 (unreleased)
|
||||||
- Updated search UI
|
- Updated search UI
|
||||||
- Display informative message when new milestone is created
|
- Display informative message when new milestone is created
|
||||||
- Sanitize milestones and labels titles
|
- Sanitize milestones and labels titles
|
||||||
|
- Support multi-line tag messages. !3833 (Calin Seciu)
|
||||||
- Allow "NEWS" and "CHANGES" as alternative names for CHANGELOG. !3768 (Connor Shea)
|
- Allow "NEWS" and "CHANGES" as alternative names for CHANGELOG. !3768 (Connor Shea)
|
||||||
- Added button to toggle whitespaces changes on diff view
|
- Added button to toggle whitespaces changes on diff view
|
||||||
- Backport GitHub Enterprise import support from EE
|
- Backport GitHub Enterprise import support from EE
|
||||||
|
|
@ -40,7 +41,7 @@ v 8.8.0 (unreleased)
|
||||||
|
|
||||||
v 8.7.4
|
v 8.7.4
|
||||||
- Fix always showing build notification message when switching between merge requests
|
- Fix always showing build notification message when switching between merge requests
|
||||||
- Fix links on wiki pages for relative url setups. !4026 (Artem Sidorenko)
|
- Links for Redmine issue references are generated correctly again (Benedikt Huss)
|
||||||
|
|
||||||
v 8.7.3
|
v 8.7.3
|
||||||
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
|
- Emails, Gitlab::Email::Message, Gitlab::Diff, and Premailer::Adapter::Nokogiri are now instrumented
|
||||||
|
|
|
||||||
1
Gemfile
1
Gemfile
|
|
@ -242,7 +242,6 @@ group :development do
|
||||||
gem "foreman"
|
gem "foreman"
|
||||||
gem 'brakeman', '~> 3.2.0', require: false
|
gem 'brakeman', '~> 3.2.0', require: false
|
||||||
|
|
||||||
gem "annotate", "~> 2.7.0"
|
|
||||||
gem 'letter_opener_web', '~> 1.3.0'
|
gem 'letter_opener_web', '~> 1.3.0'
|
||||||
gem 'quiet_assets', '~> 1.0.2'
|
gem 'quiet_assets', '~> 1.0.2'
|
||||||
gem 'rerun', '~> 0.11.0'
|
gem 'rerun', '~> 0.11.0'
|
||||||
|
|
|
||||||
|
|
@ -51,9 +51,6 @@ GEM
|
||||||
activerecord (>= 3.0)
|
activerecord (>= 3.0)
|
||||||
akismet (2.0.0)
|
akismet (2.0.0)
|
||||||
allocations (1.0.4)
|
allocations (1.0.4)
|
||||||
annotate (2.7.0)
|
|
||||||
activerecord (>= 3.2, < 6.0)
|
|
||||||
rake (~> 10.4)
|
|
||||||
arel (6.0.3)
|
arel (6.0.3)
|
||||||
asana (0.4.0)
|
asana (0.4.0)
|
||||||
faraday (~> 0.9)
|
faraday (~> 0.9)
|
||||||
|
|
@ -893,7 +890,6 @@ DEPENDENCIES
|
||||||
after_commit_queue
|
after_commit_queue
|
||||||
akismet (~> 2.0)
|
akismet (~> 2.0)
|
||||||
allocations (~> 1.0)
|
allocations (~> 1.0)
|
||||||
annotate (~> 2.7.0)
|
|
||||||
asana (~> 0.4.0)
|
asana (~> 0.4.0)
|
||||||
asciidoctor (~> 1.5.2)
|
asciidoctor (~> 1.5.2)
|
||||||
attr_encrypted (~> 1.3.4)
|
attr_encrypted (~> 1.3.4)
|
||||||
|
|
@ -1061,4 +1057,4 @@ DEPENDENCIES
|
||||||
wikicloth (= 0.8.1)
|
wikicloth (= 0.8.1)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.12.1
|
1.12.3
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: abuse_reports
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# reporter_id :integer
|
|
||||||
# user_id :integer
|
|
||||||
# message :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class AbuseReport < ActiveRecord::Base
|
class AbuseReport < ActiveRecord::Base
|
||||||
belongs_to :reporter, class_name: 'User'
|
belongs_to :reporter, class_name: 'User'
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: appearances
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string
|
|
||||||
# description :text
|
|
||||||
# header_logo :string
|
|
||||||
# logo :string
|
|
||||||
# created_at :datetime not null
|
|
||||||
# updated_at :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class Appearance < ActiveRecord::Base
|
class Appearance < ActiveRecord::Base
|
||||||
validates :title, presence: true
|
validates :title, presence: true
|
||||||
validates :description, presence: true
|
validates :description, presence: true
|
||||||
|
|
|
||||||
|
|
@ -1,55 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: application_settings
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# default_projects_limit :integer
|
|
||||||
# signup_enabled :boolean
|
|
||||||
# signin_enabled :boolean
|
|
||||||
# gravatar_enabled :boolean
|
|
||||||
# sign_in_text :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# home_page_url :string
|
|
||||||
# default_branch_protection :integer default(2)
|
|
||||||
# restricted_visibility_levels :text
|
|
||||||
# version_check_enabled :boolean default(TRUE)
|
|
||||||
# max_attachment_size :integer default(10), not null
|
|
||||||
# default_project_visibility :integer
|
|
||||||
# default_snippet_visibility :integer
|
|
||||||
# restricted_signup_domains :text
|
|
||||||
# user_oauth_applications :boolean default(TRUE)
|
|
||||||
# after_sign_out_path :string
|
|
||||||
# session_expire_delay :integer default(10080), not null
|
|
||||||
# import_sources :text
|
|
||||||
# help_page_text :text
|
|
||||||
# admin_notification_email :string
|
|
||||||
# shared_runners_enabled :boolean default(TRUE), not null
|
|
||||||
# max_artifacts_size :integer default(100), not null
|
|
||||||
# runners_registration_token :string
|
|
||||||
# require_two_factor_authentication :boolean default(FALSE)
|
|
||||||
# two_factor_grace_period :integer default(48)
|
|
||||||
# metrics_enabled :boolean default(FALSE)
|
|
||||||
# metrics_host :string default("localhost")
|
|
||||||
# metrics_pool_size :integer default(16)
|
|
||||||
# metrics_timeout :integer default(10)
|
|
||||||
# metrics_method_call_threshold :integer default(10)
|
|
||||||
# recaptcha_enabled :boolean default(FALSE)
|
|
||||||
# recaptcha_site_key :string
|
|
||||||
# recaptcha_private_key :string
|
|
||||||
# metrics_port :integer default(8089)
|
|
||||||
# metrics_sample_interval :integer default(15)
|
|
||||||
# sentry_enabled :boolean default(FALSE)
|
|
||||||
# sentry_dsn :string
|
|
||||||
# akismet_enabled :boolean default(FALSE)
|
|
||||||
# akismet_api_key :string
|
|
||||||
# email_author_in_body :boolean default(FALSE)
|
|
||||||
# default_group_visibility :integer
|
|
||||||
# repository_checks_enabled :boolean default(FALSE)
|
|
||||||
# metrics_packet_size :integer default(1)
|
|
||||||
# shared_runners_text :text
|
|
||||||
#
|
|
||||||
|
|
||||||
class ApplicationSetting < ActiveRecord::Base
|
class ApplicationSetting < ActiveRecord::Base
|
||||||
include TokenAuthenticatable
|
include TokenAuthenticatable
|
||||||
add_authentication_token_field :runners_registration_token
|
add_authentication_token_field :runners_registration_token
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: audit_events
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# author_id :integer not null
|
|
||||||
# type :string not null
|
|
||||||
# entity_id :integer not null
|
|
||||||
# entity_type :string not null
|
|
||||||
# details :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class AuditEvent < ActiveRecord::Base
|
class AuditEvent < ActiveRecord::Base
|
||||||
serialize :details, Hash
|
serialize :details, Hash
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: broadcast_messages
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# message :text not null
|
|
||||||
# starts_at :datetime
|
|
||||||
# ends_at :datetime
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# color :string
|
|
||||||
# font :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class BroadcastMessage < ActiveRecord::Base
|
class BroadcastMessage < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_builds
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# status :string
|
|
||||||
# finished_at :datetime
|
|
||||||
# trace :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# started_at :datetime
|
|
||||||
# runner_id :integer
|
|
||||||
# coverage :float
|
|
||||||
# commit_id :integer
|
|
||||||
# commands :text
|
|
||||||
# job_id :integer
|
|
||||||
# name :string
|
|
||||||
# deploy :boolean default(FALSE)
|
|
||||||
# options :text
|
|
||||||
# allow_failure :boolean default(FALSE), not null
|
|
||||||
# stage :string
|
|
||||||
# trigger_request_id :integer
|
|
||||||
# stage_idx :integer
|
|
||||||
# tag :boolean
|
|
||||||
# ref :string
|
|
||||||
# user_id :integer
|
|
||||||
# type :string
|
|
||||||
# target_url :string
|
|
||||||
# description :string
|
|
||||||
# artifacts_file :text
|
|
||||||
# gl_project_id :integer
|
|
||||||
# artifacts_metadata :text
|
|
||||||
# erased_by_id :integer
|
|
||||||
# erased_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class Build < CommitStatus
|
class Build < CommitStatus
|
||||||
belongs_to :runner, class_name: 'Ci::Runner'
|
belongs_to :runner, class_name: 'Ci::Runner'
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_commits
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# ref :string
|
|
||||||
# sha :string
|
|
||||||
# before_sha :string
|
|
||||||
# push_data :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# tag :boolean default(FALSE)
|
|
||||||
# yaml_errors :text
|
|
||||||
# committed_at :datetime
|
|
||||||
# gl_project_id :integer
|
|
||||||
# status :string
|
|
||||||
# started_at :datetime
|
|
||||||
# finished_at :datetime
|
|
||||||
# duration :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class Commit < ActiveRecord::Base
|
class Commit < ActiveRecord::Base
|
||||||
extend Ci::Model
|
extend Ci::Model
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_runners
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# token :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# description :string
|
|
||||||
# contacted_at :datetime
|
|
||||||
# active :boolean default(TRUE), not null
|
|
||||||
# is_shared :boolean default(FALSE)
|
|
||||||
# name :string
|
|
||||||
# version :string
|
|
||||||
# revision :string
|
|
||||||
# platform :string
|
|
||||||
# architecture :string
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class Runner < ActiveRecord::Base
|
class Runner < ActiveRecord::Base
|
||||||
extend Ci::Model
|
extend Ci::Model
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_runner_projects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# runner_id :integer not null
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# gl_project_id :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class RunnerProject < ActiveRecord::Base
|
class RunnerProject < ActiveRecord::Base
|
||||||
extend Ci::Model
|
extend Ci::Model
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_triggers
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# token :string
|
|
||||||
# project_id :integer
|
|
||||||
# deleted_at :datetime
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# gl_project_id :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class Trigger < ActiveRecord::Base
|
class Trigger < ActiveRecord::Base
|
||||||
extend Ci::Model
|
extend Ci::Model
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_trigger_requests
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# trigger_id :integer not null
|
|
||||||
# variables :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# commit_id :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class TriggerRequest < ActiveRecord::Base
|
class TriggerRequest < ActiveRecord::Base
|
||||||
extend Ci::Model
|
extend Ci::Model
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_variables
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# key :string
|
|
||||||
# value :text
|
|
||||||
# encrypted_value :text
|
|
||||||
# encrypted_value_salt :string
|
|
||||||
# encrypted_value_iv :string
|
|
||||||
# gl_project_id :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
module Ci
|
module Ci
|
||||||
class Variable < ActiveRecord::Base
|
class Variable < ActiveRecord::Base
|
||||||
extend Ci::Model
|
extend Ci::Model
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_builds
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# status :string
|
|
||||||
# finished_at :datetime
|
|
||||||
# trace :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# started_at :datetime
|
|
||||||
# runner_id :integer
|
|
||||||
# coverage :float
|
|
||||||
# commit_id :integer
|
|
||||||
# commands :text
|
|
||||||
# job_id :integer
|
|
||||||
# name :string
|
|
||||||
# deploy :boolean default(FALSE)
|
|
||||||
# options :text
|
|
||||||
# allow_failure :boolean default(FALSE), not null
|
|
||||||
# stage :string
|
|
||||||
# trigger_request_id :integer
|
|
||||||
# stage_idx :integer
|
|
||||||
# tag :boolean
|
|
||||||
# ref :string
|
|
||||||
# user_id :integer
|
|
||||||
# type :string
|
|
||||||
# target_url :string
|
|
||||||
# description :string
|
|
||||||
# artifacts_file :text
|
|
||||||
# gl_project_id :integer
|
|
||||||
# artifacts_metadata :text
|
|
||||||
# erased_by_id :integer
|
|
||||||
# erased_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class CommitStatus < ActiveRecord::Base
|
class CommitStatus < ActiveRecord::Base
|
||||||
include Statuseable
|
include Statuseable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: keys
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# key :text
|
|
||||||
# title :string
|
|
||||||
# type :string
|
|
||||||
# fingerprint :string
|
|
||||||
# public :boolean default(FALSE), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class DeployKey < Key
|
class DeployKey < Key
|
||||||
has_many :deploy_keys_projects, dependent: :destroy
|
has_many :deploy_keys_projects, dependent: :destroy
|
||||||
has_many :projects, through: :deploy_keys_projects
|
has_many :projects, through: :deploy_keys_projects
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: deploy_keys_projects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# deploy_key_id :integer not null
|
|
||||||
# project_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class DeployKeysProject < ActiveRecord::Base
|
class DeployKeysProject < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :deploy_key
|
belongs_to :deploy_key
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: emails
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer not null
|
|
||||||
# email :string not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class Email < ActiveRecord::Base
|
class Email < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: events
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# target_type :string
|
|
||||||
# target_id :integer
|
|
||||||
# title :string
|
|
||||||
# data :text
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# action :integer
|
|
||||||
# author_id :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
class Event < ActiveRecord::Base
|
class Event < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
default_scope { where.not(author_id: nil) }
|
default_scope { where.not(author_id: nil) }
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: forked_project_links
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# forked_to_project_id :integer not null
|
|
||||||
# forked_from_project_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class ForkedProjectLink < ActiveRecord::Base
|
class ForkedProjectLink < ActiveRecord::Base
|
||||||
belongs_to :forked_to_project, class_name: Project
|
belongs_to :forked_to_project, class_name: Project
|
||||||
belongs_to :forked_from_project, class_name: Project
|
belongs_to :forked_from_project, class_name: Project
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: ci_builds
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# status :string
|
|
||||||
# finished_at :datetime
|
|
||||||
# trace :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# started_at :datetime
|
|
||||||
# runner_id :integer
|
|
||||||
# coverage :float
|
|
||||||
# commit_id :integer
|
|
||||||
# commands :text
|
|
||||||
# job_id :integer
|
|
||||||
# name :string
|
|
||||||
# deploy :boolean default(FALSE)
|
|
||||||
# options :text
|
|
||||||
# allow_failure :boolean default(FALSE), not null
|
|
||||||
# stage :string
|
|
||||||
# trigger_request_id :integer
|
|
||||||
# stage_idx :integer
|
|
||||||
# tag :boolean
|
|
||||||
# ref :string
|
|
||||||
# user_id :integer
|
|
||||||
# type :string
|
|
||||||
# target_url :string
|
|
||||||
# description :string
|
|
||||||
# artifacts_file :text
|
|
||||||
# gl_project_id :integer
|
|
||||||
# artifacts_metadata :text
|
|
||||||
# erased_by_id :integer
|
|
||||||
# erased_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class GenericCommitStatus < CommitStatus
|
class GenericCommitStatus < CommitStatus
|
||||||
before_validation :set_default_values
|
before_validation :set_default_values
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: namespaces
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# name :string not null
|
|
||||||
# path :string not null
|
|
||||||
# owner_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# type :string
|
|
||||||
# description :string default(""), not null
|
|
||||||
# avatar :string
|
|
||||||
# share_with_group_lock :boolean default(FALSE)
|
|
||||||
# visibility_level :integer default(20), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
||||||
class Group < Namespace
|
class Group < Namespace
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: web_hooks
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# url :string(2000)
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# type :string default("ProjectHook")
|
|
||||||
# service_id :integer
|
|
||||||
# push_events :boolean default(TRUE), not null
|
|
||||||
# issues_events :boolean default(FALSE), not null
|
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
|
||||||
# tag_push_events :boolean default(FALSE)
|
|
||||||
# note_events :boolean default(FALSE), not null
|
|
||||||
# enable_ssl_verification :boolean default(TRUE)
|
|
||||||
# build_events :boolean default(FALSE), not null
|
|
||||||
# wiki_page_events :boolean default(FALSE), not null
|
|
||||||
# token :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class ProjectHook < WebHook
|
class ProjectHook < WebHook
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: web_hooks
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# url :string(2000)
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# type :string default("ProjectHook")
|
|
||||||
# service_id :integer
|
|
||||||
# push_events :boolean default(TRUE), not null
|
|
||||||
# issues_events :boolean default(FALSE), not null
|
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
|
||||||
# tag_push_events :boolean default(FALSE)
|
|
||||||
# note_events :boolean default(FALSE), not null
|
|
||||||
# enable_ssl_verification :boolean default(TRUE)
|
|
||||||
# build_events :boolean default(FALSE), not null
|
|
||||||
# wiki_page_events :boolean default(FALSE), not null
|
|
||||||
# token :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class ServiceHook < WebHook
|
class ServiceHook < WebHook
|
||||||
belongs_to :service
|
belongs_to :service
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: web_hooks
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# url :string(2000)
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# type :string default("ProjectHook")
|
|
||||||
# service_id :integer
|
|
||||||
# push_events :boolean default(TRUE), not null
|
|
||||||
# issues_events :boolean default(FALSE), not null
|
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
|
||||||
# tag_push_events :boolean default(FALSE)
|
|
||||||
# note_events :boolean default(FALSE), not null
|
|
||||||
# enable_ssl_verification :boolean default(TRUE)
|
|
||||||
# build_events :boolean default(FALSE), not null
|
|
||||||
# wiki_page_events :boolean default(FALSE), not null
|
|
||||||
# token :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class SystemHook < WebHook
|
class SystemHook < WebHook
|
||||||
def async_execute(data, hook_name)
|
def async_execute(data, hook_name)
|
||||||
Sidekiq::Client.enqueue(SystemHookWorker, id, data, hook_name)
|
Sidekiq::Client.enqueue(SystemHookWorker, id, data, hook_name)
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: web_hooks
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# url :string(2000)
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# type :string default("ProjectHook")
|
|
||||||
# service_id :integer
|
|
||||||
# push_events :boolean default(TRUE), not null
|
|
||||||
# issues_events :boolean default(FALSE), not null
|
|
||||||
# merge_requests_events :boolean default(FALSE), not null
|
|
||||||
# tag_push_events :boolean default(FALSE)
|
|
||||||
# note_events :boolean default(FALSE), not null
|
|
||||||
# enable_ssl_verification :boolean default(TRUE)
|
|
||||||
# build_events :boolean default(FALSE), not null
|
|
||||||
# wiki_page_events :boolean default(FALSE), not null
|
|
||||||
# token :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class WebHook < ActiveRecord::Base
|
class WebHook < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
include HTTParty
|
include HTTParty
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: identities
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# extern_uid :string
|
|
||||||
# provider :string
|
|
||||||
# user_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class Identity < ActiveRecord::Base
|
class Identity < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
include CaseSensitivity
|
include CaseSensitivity
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: issues
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string
|
|
||||||
# assignee_id :integer
|
|
||||||
# author_id :integer
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# position :integer default(0)
|
|
||||||
# branch_name :string
|
|
||||||
# description :text
|
|
||||||
# milestone_id :integer
|
|
||||||
# state :string
|
|
||||||
# iid :integer
|
|
||||||
# updated_by_id :integer
|
|
||||||
# moved_to_id :integer
|
|
||||||
# confidential :boolean default(FALSE)
|
|
||||||
# deleted_at :datetime
|
|
||||||
# due_date :date
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
||||||
class Issue < ActiveRecord::Base
|
class Issue < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: keys
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# key :text
|
|
||||||
# title :string
|
|
||||||
# type :string
|
|
||||||
# fingerprint :string
|
|
||||||
# public :boolean default(FALSE), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
|
|
||||||
class Key < ActiveRecord::Base
|
class Key < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: labels
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string
|
|
||||||
# color :string
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# template :boolean default(FALSE)
|
|
||||||
# description :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class Label < ActiveRecord::Base
|
class Label < ActiveRecord::Base
|
||||||
include Referable
|
include Referable
|
||||||
include Subscribable
|
include Subscribable
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: label_links
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# label_id :integer
|
|
||||||
# target_id :integer
|
|
||||||
# target_type :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class LabelLink < ActiveRecord::Base
|
class LabelLink < ActiveRecord::Base
|
||||||
belongs_to :target, polymorphic: true
|
belongs_to :target, polymorphic: true
|
||||||
belongs_to :label
|
belongs_to :label
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: lfs_objects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# oid :string not null
|
|
||||||
# size :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# file :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class LfsObject < ActiveRecord::Base
|
class LfsObject < ActiveRecord::Base
|
||||||
has_many :lfs_objects_projects, dependent: :destroy
|
has_many :lfs_objects_projects, dependent: :destroy
|
||||||
has_many :projects, through: :lfs_objects_projects
|
has_many :projects, through: :lfs_objects_projects
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: lfs_objects_projects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# lfs_object_id :integer not null
|
|
||||||
# project_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class LfsObjectsProject < ActiveRecord::Base
|
class LfsObjectsProject < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :lfs_object
|
belongs_to :lfs_object
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: members
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# access_level :integer not null
|
|
||||||
# source_id :integer not null
|
|
||||||
# source_type :string not null
|
|
||||||
# user_id :integer
|
|
||||||
# notification_level :integer not null
|
|
||||||
# type :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# created_by_id :integer
|
|
||||||
# invite_email :string
|
|
||||||
# invite_token :string
|
|
||||||
# invite_accepted_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class Member < ActiveRecord::Base
|
class Member < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
include Gitlab::Access
|
include Gitlab::Access
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: members
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# access_level :integer not null
|
|
||||||
# source_id :integer not null
|
|
||||||
# source_type :string not null
|
|
||||||
# user_id :integer
|
|
||||||
# notification_level :integer not null
|
|
||||||
# type :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# created_by_id :integer
|
|
||||||
# invite_email :string
|
|
||||||
# invite_token :string
|
|
||||||
# invite_accepted_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class GroupMember < Member
|
class GroupMember < Member
|
||||||
SOURCE_TYPE = 'Namespace'
|
SOURCE_TYPE = 'Namespace'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: members
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# access_level :integer not null
|
|
||||||
# source_id :integer not null
|
|
||||||
# source_type :string not null
|
|
||||||
# user_id :integer
|
|
||||||
# notification_level :integer not null
|
|
||||||
# type :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# created_by_id :integer
|
|
||||||
# invite_email :string
|
|
||||||
# invite_token :string
|
|
||||||
# invite_accepted_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class ProjectMember < Member
|
class ProjectMember < Member
|
||||||
SOURCE_TYPE = 'Project'
|
SOURCE_TYPE = 'Project'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: merge_requests
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# target_branch :string not null
|
|
||||||
# source_branch :string not null
|
|
||||||
# source_project_id :integer not null
|
|
||||||
# author_id :integer
|
|
||||||
# assignee_id :integer
|
|
||||||
# title :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# milestone_id :integer
|
|
||||||
# state :string
|
|
||||||
# merge_status :string
|
|
||||||
# target_project_id :integer not null
|
|
||||||
# iid :integer
|
|
||||||
# description :text
|
|
||||||
# position :integer default(0)
|
|
||||||
# locked_at :datetime
|
|
||||||
# updated_by_id :integer
|
|
||||||
# merge_error :string
|
|
||||||
# merge_params :text
|
|
||||||
# merge_when_build_succeeds :boolean default(FALSE), not null
|
|
||||||
# merge_user_id :integer
|
|
||||||
# merge_commit_sha :string
|
|
||||||
# deleted_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class MergeRequest < ActiveRecord::Base
|
class MergeRequest < ActiveRecord::Base
|
||||||
include InternalId
|
include InternalId
|
||||||
include Issuable
|
include Issuable
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: merge_request_diffs
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# state :string
|
|
||||||
# st_commits :text
|
|
||||||
# st_diffs :text
|
|
||||||
# merge_request_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# base_commit_sha :string
|
|
||||||
# real_size :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class MergeRequestDiff < ActiveRecord::Base
|
class MergeRequestDiff < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: milestones
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string not null
|
|
||||||
# project_id :integer not null
|
|
||||||
# description :text
|
|
||||||
# due_date :date
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# state :string
|
|
||||||
# iid :integer
|
|
||||||
#
|
|
||||||
|
|
||||||
class Milestone < ActiveRecord::Base
|
class Milestone < ActiveRecord::Base
|
||||||
# Represents a "No Milestone" state used for filtering Issues and Merge
|
# Represents a "No Milestone" state used for filtering Issues and Merge
|
||||||
# Requests that have no milestone assigned.
|
# Requests that have no milestone assigned.
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: namespaces
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# name :string not null
|
|
||||||
# path :string not null
|
|
||||||
# owner_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# type :string
|
|
||||||
# description :string default(""), not null
|
|
||||||
# avatar :string
|
|
||||||
# share_with_group_lock :boolean default(FALSE)
|
|
||||||
# visibility_level :integer default(20), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class Namespace < ActiveRecord::Base
|
class Namespace < ActiveRecord::Base
|
||||||
include Sortable
|
include Sortable
|
||||||
include Gitlab::ShellAdapter
|
include Gitlab::ShellAdapter
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: notes
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# note :text
|
|
||||||
# noteable_type :string
|
|
||||||
# author_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# project_id :integer
|
|
||||||
# attachment :string
|
|
||||||
# line_code :string
|
|
||||||
# commit_id :string
|
|
||||||
# noteable_id :integer
|
|
||||||
# system :boolean default(FALSE), not null
|
|
||||||
# st_diff :text
|
|
||||||
# updated_by_id :integer
|
|
||||||
# is_award :boolean default(FALSE), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
||||||
class Note < ActiveRecord::Base
|
class Note < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: notification_settings
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer not null
|
|
||||||
# source_id :integer not null
|
|
||||||
# source_type :string not null
|
|
||||||
# level :integer default(0), not null
|
|
||||||
# created_at :datetime not null
|
|
||||||
# updated_at :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class NotificationSetting < ActiveRecord::Base
|
class NotificationSetting < ActiveRecord::Base
|
||||||
enum level: { disabled: 0, participating: 1, watch: 2, global: 3, mention: 4 }
|
enum level: { disabled: 0, participating: 1, watch: 2, global: 3, mention: 4 }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: oauth_access_tokens
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# resource_owner_id :integer
|
|
||||||
# application_id :integer
|
|
||||||
# token :string not null
|
|
||||||
# refresh_token :string
|
|
||||||
# expires_in :integer
|
|
||||||
# revoked_at :datetime
|
|
||||||
# created_at :datetime not null
|
|
||||||
# scopes :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class OauthAccessToken < ActiveRecord::Base
|
class OauthAccessToken < ActiveRecord::Base
|
||||||
belongs_to :resource_owner, class_name: 'User'
|
belongs_to :resource_owner, class_name: 'User'
|
||||||
belongs_to :application, class_name: 'Doorkeeper::Application'
|
belongs_to :application, class_name: 'Doorkeeper::Application'
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,2 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: snippets
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string
|
|
||||||
# content :text
|
|
||||||
# author_id :integer not null
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# file_name :string
|
|
||||||
# type :string
|
|
||||||
# visibility_level :integer default(0), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class PersonalSnippet < Snippet
|
class PersonalSnippet < Snippet
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,48 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: projects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# name :string
|
|
||||||
# path :string
|
|
||||||
# description :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# creator_id :integer
|
|
||||||
# issues_enabled :boolean default(TRUE), not null
|
|
||||||
# merge_requests_enabled :boolean default(TRUE), not null
|
|
||||||
# wiki_enabled :boolean default(TRUE), not null
|
|
||||||
# namespace_id :integer
|
|
||||||
# issues_tracker :string default("gitlab"), not null
|
|
||||||
# issues_tracker_id :string
|
|
||||||
# snippets_enabled :boolean default(TRUE), not null
|
|
||||||
# last_activity_at :datetime
|
|
||||||
# import_url :string
|
|
||||||
# visibility_level :integer default(0), not null
|
|
||||||
# archived :boolean default(FALSE), not null
|
|
||||||
# avatar :string
|
|
||||||
# import_status :string
|
|
||||||
# repository_size :float default(0.0)
|
|
||||||
# star_count :integer default(0), not null
|
|
||||||
# import_type :string
|
|
||||||
# import_source :string
|
|
||||||
# commit_count :integer default(0)
|
|
||||||
# import_error :text
|
|
||||||
# ci_id :integer
|
|
||||||
# builds_enabled :boolean default(TRUE), not null
|
|
||||||
# shared_runners_enabled :boolean default(TRUE), not null
|
|
||||||
# runners_token :string
|
|
||||||
# build_coverage_regex :string
|
|
||||||
# build_allow_git_fetch :boolean default(TRUE), not null
|
|
||||||
# build_timeout :integer default(3600), not null
|
|
||||||
# pending_delete :boolean default(FALSE)
|
|
||||||
# public_builds :boolean default(TRUE), not null
|
|
||||||
# main_language :string
|
|
||||||
# pushes_since_gc :integer default(0)
|
|
||||||
# last_repository_check_failed :boolean
|
|
||||||
# last_repository_check_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
||||||
class Project < ActiveRecord::Base
|
class Project < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: project_group_links
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer not null
|
|
||||||
# group_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# group_access :integer default(30), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class ProjectGroupLink < ActiveRecord::Base
|
class ProjectGroupLink < ActiveRecord::Base
|
||||||
GUEST = 10
|
GUEST = 10
|
||||||
REPORTER = 20
|
REPORTER = 20
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: project_import_data
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# data :text
|
|
||||||
# encrypted_credentials :text
|
|
||||||
# encrypted_credentials_iv :string
|
|
||||||
# encrypted_credentials_salt :string
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
||||||
class ProjectImportData < ActiveRecord::Base
|
class ProjectImportData < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'asana'
|
require 'asana'
|
||||||
|
|
||||||
class AsanaService < Service
|
class AsanaService < Service
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class AssemblaService < Service
|
class AssemblaService < Service
|
||||||
include HTTParty
|
include HTTParty
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class BambooService < CiService
|
class BambooService < CiService
|
||||||
include HTTParty
|
include HTTParty
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
require "addressable/uri"
|
require "addressable/uri"
|
||||||
|
|
||||||
class BuildkiteService < CiService
|
class BuildkiteService < CiService
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class BuildsEmailService < Service
|
class BuildsEmailService < Service
|
||||||
prop_accessor :recipients
|
prop_accessor :recipients
|
||||||
boolean_accessor :add_pusher
|
boolean_accessor :add_pusher
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class CampfireService < Service
|
class CampfireService < Service
|
||||||
prop_accessor :token, :subdomain, :room
|
prop_accessor :token, :subdomain, :room
|
||||||
validates :token, presence: true, if: :activated?
|
validates :token, presence: true, if: :activated?
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
# Base class for CI services
|
# Base class for CI services
|
||||||
# List methods you need to implement to get your CI service
|
# List methods you need to implement to get your CI service
|
||||||
# working with GitLab Merge Requests
|
# working with GitLab Merge Requests
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class CustomIssueTrackerService < IssueTrackerService
|
class CustomIssueTrackerService < IssueTrackerService
|
||||||
|
|
||||||
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
|
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class DroneCiService < CiService
|
class DroneCiService < CiService
|
||||||
|
|
||||||
prop_accessor :drone_url, :token, :enable_ssl_verification
|
prop_accessor :drone_url, :token, :enable_ssl_verification
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class EmailsOnPushService < Service
|
class EmailsOnPushService < Service
|
||||||
prop_accessor :send_from_committer_email
|
prop_accessor :send_from_committer_email
|
||||||
prop_accessor :disable_diffs
|
prop_accessor :disable_diffs
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class ExternalWikiService < Service
|
class ExternalWikiService < Service
|
||||||
include HTTParty
|
include HTTParty
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
require "flowdock-git-hook"
|
require "flowdock-git-hook"
|
||||||
|
|
||||||
class FlowdockService < Service
|
class FlowdockService < Service
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
require "gemnasium/gitlab_service"
|
require "gemnasium/gitlab_service"
|
||||||
|
|
||||||
class GemnasiumService < Service
|
class GemnasiumService < Service
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
# TODO(ayufan): The GitLabCiService is deprecated and the type should be removed when the database entries are removed
|
# TODO(ayufan): The GitLabCiService is deprecated and the type should be removed when the database entries are removed
|
||||||
class GitlabCiService < CiService
|
class GitlabCiService < CiService
|
||||||
# We override the active accessor to always make GitLabCiService disabled
|
# We override the active accessor to always make GitLabCiService disabled
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class GitlabIssueTrackerService < IssueTrackerService
|
class GitlabIssueTrackerService < IssueTrackerService
|
||||||
include Gitlab::Routing.url_helpers
|
include Gitlab::Routing.url_helpers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class HipchatService < Service
|
class HipchatService < Service
|
||||||
MAX_COMMITS = 3
|
MAX_COMMITS = 3
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'uri'
|
require 'uri'
|
||||||
|
|
||||||
class IrkerService < Service
|
class IrkerService < Service
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class IssueTrackerService < Service
|
class IssueTrackerService < Service
|
||||||
|
|
||||||
validates :project_url, :issues_url, :new_issue_url, presence: true, url: true, if: :activated?
|
validates :project_url, :issues_url, :new_issue_url, presence: true, url: true, if: :activated?
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class JiraService < IssueTrackerService
|
class JiraService < IssueTrackerService
|
||||||
include HTTParty
|
include HTTParty
|
||||||
include Gitlab::Routing.url_helpers
|
include Gitlab::Routing.url_helpers
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class PivotaltrackerService < Service
|
class PivotaltrackerService < Service
|
||||||
include HTTParty
|
include HTTParty
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class PushoverService < Service
|
class PushoverService < Service
|
||||||
include HTTParty
|
include HTTParty
|
||||||
base_uri 'https://api.pushover.net/1'
|
base_uri 'https://api.pushover.net/1'
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class RedmineService < IssueTrackerService
|
class RedmineService < IssueTrackerService
|
||||||
|
|
||||||
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
|
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class SlackService < Service
|
class SlackService < Service
|
||||||
prop_accessor :webhook, :username, :channel
|
prop_accessor :webhook, :username, :channel
|
||||||
boolean_accessor :notify_only_broken_builds
|
boolean_accessor :notify_only_broken_builds
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
class TeamcityService < CiService
|
class TeamcityService < CiService
|
||||||
include HTTParty
|
include HTTParty
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: snippets
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string
|
|
||||||
# content :text
|
|
||||||
# author_id :integer not null
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# file_name :string
|
|
||||||
# type :string
|
|
||||||
# visibility_level :integer default(0), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class ProjectSnippet < Snippet
|
class ProjectSnippet < Snippet
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :author, class_name: "User"
|
belongs_to :author, class_name: "User"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class ProjectWiki
|
||||||
end
|
end
|
||||||
|
|
||||||
def wiki_base_path
|
def wiki_base_path
|
||||||
[Gitlab.config.gitlab.url, "/", @project.path_with_namespace, "/wikis"].join('')
|
["/", @project.path_with_namespace, "/wikis"].join('')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the Gollum::Wiki object.
|
# Returns the Gollum::Wiki object.
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: protected_branches
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer not null
|
|
||||||
# name :string not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# developers_can_push :boolean default(FALSE), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class ProtectedBranch < ActiveRecord::Base
|
class ProtectedBranch < ActiveRecord::Base
|
||||||
include Gitlab::ShellAdapter
|
include Gitlab::ShellAdapter
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: releases
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# tag :string
|
|
||||||
# description :text
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class Release < ActiveRecord::Base
|
class Release < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,2 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: audit_events
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# author_id :integer not null
|
|
||||||
# type :string not null
|
|
||||||
# entity_id :integer not null
|
|
||||||
# entity_type :string not null
|
|
||||||
# details :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class SecurityEvent < AuditEvent
|
class SecurityEvent < AuditEvent
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: sent_notifications
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer
|
|
||||||
# noteable_id :integer
|
|
||||||
# noteable_type :string
|
|
||||||
# recipient_id :integer
|
|
||||||
# commit_id :string
|
|
||||||
# reply_key :string not null
|
|
||||||
# line_code :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class SentNotification < ActiveRecord::Base
|
class SentNotification < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :noteable, polymorphic: true
|
belongs_to :noteable, polymorphic: true
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
# == 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)
|
|
||||||
#
|
|
||||||
|
|
||||||
# To add new service you should build a class inherited from Service
|
# To add new service you should build a class inherited from Service
|
||||||
# and implement a set of methods
|
# and implement a set of methods
|
||||||
class Service < ActiveRecord::Base
|
class Service < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: snippets
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string
|
|
||||||
# content :text
|
|
||||||
# author_id :integer not null
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# file_name :string
|
|
||||||
# type :string
|
|
||||||
# visibility_level :integer default(0), not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class Snippet < ActiveRecord::Base
|
class Snippet < ActiveRecord::Base
|
||||||
include Gitlab::VisibilityLevel
|
include Gitlab::VisibilityLevel
|
||||||
include Linguist::BlobHelper
|
include Linguist::BlobHelper
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: spam_logs
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer
|
|
||||||
# source_ip :string
|
|
||||||
# user_agent :string
|
|
||||||
# via_api :boolean
|
|
||||||
# project_id :integer
|
|
||||||
# noteable_type :string
|
|
||||||
# title :string
|
|
||||||
# description :text
|
|
||||||
# created_at :datetime not null
|
|
||||||
# updated_at :datetime not null
|
|
||||||
#
|
|
||||||
|
|
||||||
class SpamLog < ActiveRecord::Base
|
class SpamLog < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: subscriptions
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer
|
|
||||||
# subscribable_id :integer
|
|
||||||
# subscribable_type :string
|
|
||||||
# subscribed :boolean
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class Subscription < ActiveRecord::Base
|
class Subscription < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
belongs_to :subscribable, polymorphic: true
|
belongs_to :subscribable, polymorphic: true
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: todos
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# user_id :integer not null
|
|
||||||
# project_id :integer not null
|
|
||||||
# target_id :integer
|
|
||||||
# target_type :string not null
|
|
||||||
# author_id :integer
|
|
||||||
# action :integer not null
|
|
||||||
# state :string not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# note_id :integer
|
|
||||||
# commit_id :string
|
|
||||||
#
|
|
||||||
|
|
||||||
class Todo < ActiveRecord::Base
|
class Todo < ActiveRecord::Base
|
||||||
ASSIGNED = 1
|
ASSIGNED = 1
|
||||||
MENTIONED = 2
|
MENTIONED = 2
|
||||||
|
|
|
||||||
|
|
@ -1,68 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: users
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# email :string default(""), not null
|
|
||||||
# encrypted_password :string default(""), not null
|
|
||||||
# reset_password_token :string
|
|
||||||
# reset_password_sent_at :datetime
|
|
||||||
# remember_created_at :datetime
|
|
||||||
# sign_in_count :integer default(0)
|
|
||||||
# current_sign_in_at :datetime
|
|
||||||
# last_sign_in_at :datetime
|
|
||||||
# current_sign_in_ip :string
|
|
||||||
# last_sign_in_ip :string
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# name :string
|
|
||||||
# admin :boolean default(FALSE), not null
|
|
||||||
# projects_limit :integer default(10)
|
|
||||||
# skype :string default(""), not null
|
|
||||||
# linkedin :string default(""), not null
|
|
||||||
# twitter :string default(""), not null
|
|
||||||
# authentication_token :string
|
|
||||||
# theme_id :integer default(1), not null
|
|
||||||
# bio :string
|
|
||||||
# failed_attempts :integer default(0)
|
|
||||||
# locked_at :datetime
|
|
||||||
# username :string
|
|
||||||
# can_create_group :boolean default(TRUE), not null
|
|
||||||
# can_create_team :boolean default(TRUE), not null
|
|
||||||
# state :string
|
|
||||||
# color_scheme_id :integer default(1), not null
|
|
||||||
# notification_level :integer default(1), not null
|
|
||||||
# password_expires_at :datetime
|
|
||||||
# created_by_id :integer
|
|
||||||
# last_credential_check_at :datetime
|
|
||||||
# avatar :string
|
|
||||||
# confirmation_token :string
|
|
||||||
# confirmed_at :datetime
|
|
||||||
# confirmation_sent_at :datetime
|
|
||||||
# unconfirmed_email :string
|
|
||||||
# hide_no_ssh_key :boolean default(FALSE)
|
|
||||||
# website_url :string default(""), not null
|
|
||||||
# notification_email :string
|
|
||||||
# hide_no_password :boolean default(FALSE)
|
|
||||||
# password_automatically_set :boolean default(FALSE)
|
|
||||||
# location :string
|
|
||||||
# encrypted_otp_secret :string
|
|
||||||
# encrypted_otp_secret_iv :string
|
|
||||||
# encrypted_otp_secret_salt :string
|
|
||||||
# otp_required_for_login :boolean default(FALSE), not null
|
|
||||||
# otp_backup_codes :text
|
|
||||||
# public_email :string default(""), not null
|
|
||||||
# dashboard :integer default(0)
|
|
||||||
# project_view :integer default(0)
|
|
||||||
# consumed_timestep :integer
|
|
||||||
# layout :integer default(0)
|
|
||||||
# hide_project_limit :boolean default(FALSE)
|
|
||||||
# unlock_token :string
|
|
||||||
# otp_grace_period_started_at :datetime
|
|
||||||
# ldap_email :boolean default(FALSE), not null
|
|
||||||
# external :boolean default(FALSE)
|
|
||||||
#
|
|
||||||
|
|
||||||
require 'carrierwave/orm/activerecord'
|
require 'carrierwave/orm/activerecord'
|
||||||
|
|
||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: users_star_projects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# project_id :integer not null
|
|
||||||
# user_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
class UsersStarProject < ActiveRecord::Base
|
class UsersStarProject < ActiveRecord::Base
|
||||||
belongs_to :project, counter_cache: :star_count, touch: true
|
belongs_to :project, counter_cache: :star_count, touch: true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag :message, nil, class: 'control-label'
|
= label_tag :message, nil, class: 'control-label'
|
||||||
.col-sm-10
|
.col-sm-10
|
||||||
= text_field_tag :message, nil, required: false, tabindex: 3, class: 'form-control'
|
= text_area_tag :message, nil, required: false, tabindex: 3, class: 'form-control', rows: 5
|
||||||
.help-block Optionally, enter a message to create an annotated tag.
|
.help-block Optionally, enter a message to create an annotated tag.
|
||||||
%hr
|
%hr
|
||||||
.form-group
|
.form-group
|
||||||
|
|
|
||||||
|
|
@ -19,15 +19,13 @@
|
||||||
%i.fa.fa-trash-o
|
%i.fa.fa-trash-o
|
||||||
.title
|
.title
|
||||||
%span.item-title= @tag.name
|
%span.item-title= @tag.name
|
||||||
- if @tag.message.present?
|
|
||||||
%span.light
|
|
||||||
|
|
||||||
= strip_gpg_signature(@tag.message)
|
|
||||||
- if @commit
|
- if @commit
|
||||||
= render 'projects/branches/commit', commit: @commit, project: @project
|
= render 'projects/branches/commit', commit: @commit, project: @project
|
||||||
- else
|
- else
|
||||||
Cant find HEAD commit for this tag
|
Cant find HEAD commit for this tag
|
||||||
|
- if @tag.message.present?
|
||||||
|
%pre.body
|
||||||
|
= strip_gpg_signature(@tag.message)
|
||||||
|
|
||||||
.append-bottom-default.prepend-top-default
|
.append-bottom-default.prepend-top-default
|
||||||
- if @release.description.present?
|
- if @release.description.present?
|
||||||
|
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
@project_commits
|
|
||||||
Feature: Project Commits Tags
|
|
||||||
Background:
|
|
||||||
Given I sign in as a user
|
|
||||||
And I own project "Shop"
|
|
||||||
Given I visit project tags page
|
|
||||||
|
|
||||||
Scenario: I can see all git tags
|
|
||||||
Then I should see "Shop" all tags list
|
|
||||||
|
|
||||||
Scenario: I create a tag
|
|
||||||
And I click new tag link
|
|
||||||
And I submit new tag form
|
|
||||||
Then I should see new tag created
|
|
||||||
|
|
||||||
Scenario: I create a tag with release notes
|
|
||||||
Given I click new tag link
|
|
||||||
And I submit new tag form with release notes
|
|
||||||
Then I should see new tag created
|
|
||||||
And I should see tag release notes
|
|
||||||
|
|
||||||
Scenario: I create a tag with invalid name
|
|
||||||
And I click new tag link
|
|
||||||
And I submit new tag form with invalid name
|
|
||||||
Then I should see new an error that tag is invalid
|
|
||||||
|
|
||||||
Scenario: I create a tag with invalid reference
|
|
||||||
And I click new tag link
|
|
||||||
And I submit new tag form with invalid reference
|
|
||||||
Then I should see new an error that tag ref is invalid
|
|
||||||
|
|
||||||
Scenario: I create a tag that already exists
|
|
||||||
And I click new tag link
|
|
||||||
And I submit new tag form with tag that already exists
|
|
||||||
Then I should see new an error that tag already exists
|
|
||||||
|
|
||||||
Scenario: I delete a tag
|
|
||||||
Given I visit tag 'v1.1.0' page
|
|
||||||
Given I delete tag 'v1.1.0'
|
|
||||||
Then I should not see tag 'v1.1.0'
|
|
||||||
|
|
||||||
Scenario: I add release notes to the tag
|
|
||||||
Given I visit tag 'v1.1.0' page
|
|
||||||
When I click edit tag link
|
|
||||||
And I fill release notes and submit form
|
|
||||||
Then I should see tag release notes
|
|
||||||
|
|
@ -1,90 +0,0 @@
|
||||||
class Spinach::Features::ProjectCommitsTags < Spinach::FeatureSteps
|
|
||||||
include SharedAuthentication
|
|
||||||
include SharedProject
|
|
||||||
include SharedPaths
|
|
||||||
|
|
||||||
step 'I should see "Shop" all tags list' do
|
|
||||||
expect(page).to have_content "Tags"
|
|
||||||
expect(page).to have_content "v1.0.0"
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I click new tag link' do
|
|
||||||
click_link 'New tag'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I submit new tag form' do
|
|
||||||
fill_in 'tag_name', with: 'v7.0'
|
|
||||||
fill_in 'ref', with: 'master'
|
|
||||||
click_button 'Create tag'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I submit new tag form with release notes' do
|
|
||||||
fill_in 'tag_name', with: 'v7.0'
|
|
||||||
fill_in 'ref', with: 'master'
|
|
||||||
fill_in 'release_description', with: 'Awesome release notes'
|
|
||||||
click_button 'Create tag'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I fill release notes and submit form' do
|
|
||||||
fill_in 'release_description', with: 'Awesome release notes'
|
|
||||||
click_button 'Save changes'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I submit new tag form with invalid name' do
|
|
||||||
fill_in 'tag_name', with: 'v 1.0'
|
|
||||||
fill_in 'ref', with: 'master'
|
|
||||||
click_button 'Create tag'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I submit new tag form with invalid reference' do
|
|
||||||
fill_in 'tag_name', with: 'foo'
|
|
||||||
fill_in 'ref', with: 'foo'
|
|
||||||
click_button 'Create tag'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I submit new tag form with tag that already exists' do
|
|
||||||
fill_in 'tag_name', with: 'v1.0.0'
|
|
||||||
fill_in 'ref', with: 'master'
|
|
||||||
click_button 'Create tag'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I should see new tag created' do
|
|
||||||
expect(page).to have_content 'v7.0'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I should see new an error that tag is invalid' do
|
|
||||||
expect(page).to have_content 'Tag name invalid'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I should see new an error that tag ref is invalid' do
|
|
||||||
expect(page).to have_content 'Target foo is invalid'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I should see new an error that tag already exists' do
|
|
||||||
expect(page).to have_content 'Tag v1.0.0 already exists'
|
|
||||||
end
|
|
||||||
|
|
||||||
step "I visit tag 'v1.1.0' page" do
|
|
||||||
click_link 'v1.1.0'
|
|
||||||
end
|
|
||||||
|
|
||||||
step "I delete tag 'v1.1.0'" do
|
|
||||||
page.within('.content') do
|
|
||||||
first('.btn-remove').click
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
step "I should not see tag 'v1.1.0'" do
|
|
||||||
page.within '.tags' do
|
|
||||||
expect(page).not_to have_link 'v1.1.0'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I click edit tag link' do
|
|
||||||
click_link 'Edit release notes'
|
|
||||||
end
|
|
||||||
|
|
||||||
step 'I should see tag release notes' do
|
|
||||||
expect(page).to have_content 'Awesome release notes'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
@ -10,6 +10,9 @@ module Banzai
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.user_can_see_reference?(user, node, context)
|
def self.user_can_see_reference?(user, node, context)
|
||||||
|
# It is not possible to check access rights for external issue trackers
|
||||||
|
return true if context[:project].try(:external_issue_tracker)
|
||||||
|
|
||||||
issue = Issue.find(node.attr('data-issue')) rescue nil
|
issue = Issue.find(node.attr('data-issue')) rescue nil
|
||||||
Ability.abilities.allowed?(user, :read_issue, issue)
|
Ability.abilities.allowed?(user, :read_issue, issue)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def wiki_page_url
|
def wiki_page_url
|
||||||
"#{object.wiki.wiki_base_path}/#{object.slug}"
|
"#{Gitlab.config.gitlab.url}#{object.wiki.wiki_base_path}/#{object.slug}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
if Rails.env.development?
|
|
||||||
task :set_annotation_options do
|
|
||||||
# You can override any of these by setting an environment variable of the
|
|
||||||
# same name.
|
|
||||||
Annotate.set_defaults(
|
|
||||||
'routes' => 'false',
|
|
||||||
'position_in_routes' => 'before',
|
|
||||||
'position_in_class' => 'before',
|
|
||||||
'position_in_test' => 'before',
|
|
||||||
'position_in_fixture' => 'before',
|
|
||||||
'position_in_factory' => 'before',
|
|
||||||
'position_in_serializer' => 'before',
|
|
||||||
'show_foreign_keys' => 'true',
|
|
||||||
'show_indexes' => 'false',
|
|
||||||
'simple_indexes' => 'false',
|
|
||||||
'model_dir' => 'app/models',
|
|
||||||
'root_dir' => '',
|
|
||||||
'include_version' => 'false',
|
|
||||||
'require' => '',
|
|
||||||
'exclude_tests' => 'true',
|
|
||||||
'exclude_fixtures' => 'true',
|
|
||||||
'exclude_factories' => 'true',
|
|
||||||
'exclude_serializers' => 'true',
|
|
||||||
'exclude_scaffolds' => 'true',
|
|
||||||
'exclude_controllers' => 'true',
|
|
||||||
'exclude_helpers' => 'true',
|
|
||||||
'ignore_model_sub_dir' => 'false',
|
|
||||||
'ignore_columns' => nil,
|
|
||||||
'ignore_unknown_models' => 'false',
|
|
||||||
'hide_limit_column_types' => 'integer,boolean',
|
|
||||||
'skip_on_db_migrate' => 'false',
|
|
||||||
'format_bare' => 'true',
|
|
||||||
'format_rdoc' => 'false',
|
|
||||||
'format_markdown' => 'false',
|
|
||||||
'sort' => 'false',
|
|
||||||
'force' => 'false',
|
|
||||||
'trace' => 'false',
|
|
||||||
'wrapper_open' => nil,
|
|
||||||
'wrapper_close' => nil,
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
Annotate.load_tasks
|
|
||||||
end
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: abuse_reports
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# reporter_id :integer
|
|
||||||
# user_id :integer
|
|
||||||
# message :text
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :abuse_report do
|
factory :abuse_report do
|
||||||
reporter factory: :user
|
reporter factory: :user
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: broadcast_messages
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# message :text not null
|
|
||||||
# starts_at :datetime
|
|
||||||
# ends_at :datetime
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# color :string(255)
|
|
||||||
# font :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :broadcast_message do
|
factory :broadcast_message do
|
||||||
message "MyText"
|
message "MyText"
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: forked_project_links
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# forked_to_project_id :integer not null
|
|
||||||
# forked_from_project_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :forked_project_link do
|
factory :forked_project_link do
|
||||||
association :forked_to_project, factory: :project
|
association :forked_to_project, factory: :project
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: label_links
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# label_id :integer
|
|
||||||
# target_id :integer
|
|
||||||
# target_type :string(255)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :label_link do
|
factory :label_link do
|
||||||
label
|
label
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: labels
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# title :string(255)
|
|
||||||
# color :string(255)
|
|
||||||
# project_id :integer
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# template :boolean default(FALSE)
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :label do
|
factory :label do
|
||||||
sequence(:title) { |n| "label#{n}" }
|
sequence(:title) { |n| "label#{n}" }
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: lfs_objects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# oid :string(255) not null
|
|
||||||
# size :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# file :string(255)
|
|
||||||
#
|
|
||||||
|
|
||||||
include ActionDispatch::TestProcess
|
include ActionDispatch::TestProcess
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: lfs_objects_projects
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# lfs_object_id :integer not null
|
|
||||||
# project_id :integer not null
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :lfs_objects_project do
|
factory :lfs_objects_project do
|
||||||
lfs_object
|
lfs_object
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,3 @@
|
||||||
# == Schema Information
|
|
||||||
#
|
|
||||||
# Table name: merge_requests
|
|
||||||
#
|
|
||||||
# id :integer not null, primary key
|
|
||||||
# target_branch :string(255) not null
|
|
||||||
# source_branch :string(255) not null
|
|
||||||
# source_project_id :integer not null
|
|
||||||
# author_id :integer
|
|
||||||
# assignee_id :integer
|
|
||||||
# title :string(255)
|
|
||||||
# created_at :datetime
|
|
||||||
# updated_at :datetime
|
|
||||||
# milestone_id :integer
|
|
||||||
# state :string(255)
|
|
||||||
# merge_status :string(255)
|
|
||||||
# target_project_id :integer not null
|
|
||||||
# iid :integer
|
|
||||||
# description :text
|
|
||||||
# position :integer default(0)
|
|
||||||
# locked_at :datetime
|
|
||||||
# updated_by_id :integer
|
|
||||||
# merge_error :string(255)
|
|
||||||
# merge_params :text
|
|
||||||
# merge_when_build_succeeds :boolean default(FALSE), not null
|
|
||||||
# merge_user_id :integer
|
|
||||||
# merge_commit_sha :string
|
|
||||||
#
|
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :merge_request do
|
factory :merge_request do
|
||||||
title
|
title
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue