add has_actions to projects
This commit is contained in:
parent
32b40487f6
commit
ec01552818
|
@ -10,6 +10,7 @@ class Api::V1::SonarqubesController < Api::V1::BaseController
|
||||||
Gitea::Repository::ActionSecretsService.new(@owner, @project.identifier, 'SONAR_HOST_URL', Rails.application.config_for(:configuration)['sonarqube']['url'] ).destroy
|
Gitea::Repository::ActionSecretsService.new(@owner, @project.identifier, 'SONAR_HOST_URL', Rails.application.config_for(:configuration)['sonarqube']['url'] ).destroy
|
||||||
Gitea::Repository::ActionSecretsService.new(@owner, @project.identifier, 'SONAR_TOKEN', Rails.application.config_for(:configuration)['sonarqube']['secret'] ).destroy
|
Gitea::Repository::ActionSecretsService.new(@owner, @project.identifier, 'SONAR_TOKEN', Rails.application.config_for(:configuration)['sonarqube']['secret'] ).destroy
|
||||||
end
|
end
|
||||||
|
@project.update(gitea_params)
|
||||||
render_ok
|
render_ok
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
# label :string(255)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# by_name (name)
|
# index_action_nodes_on_action_node_types_id (action_node_types_id)
|
||||||
# index_action_nodes_on_action_types_id (action_node_types_id)
|
|
||||||
# index_action_nodes_on_user_id (user_id)
|
# index_action_nodes_on_user_id (user_id)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# input_type :string(255)
|
# input_type :string(255)
|
||||||
# description :string(255)
|
# description :string(255)
|
||||||
# is_required :boolean default("0")
|
# is_required :boolean default("0")
|
||||||
# sort_no :string(255) default("0")
|
# sort_no :integer default("0")
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255)
|
# name :string(255)
|
||||||
# description :string(255)
|
# description :string(255)
|
||||||
# sort_no :integer
|
# sort_no :integer default("0")
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# name :string(255)
|
# name :string(255)
|
||||||
# description :string(255)
|
# description :string(255)
|
||||||
# img :string(255)
|
# img :string(255)
|
||||||
# sort_no :string(255) default("0")
|
# sort_no :integer default("0")
|
||||||
# json :text(65535)
|
# json :text(65535)
|
||||||
# yaml :text(65535)
|
# yaml :text(65535)
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
# cloud_url :string(255) default("")
|
# cloud_url :string(255) default("")
|
||||||
# course_second_category_id :integer default("0")
|
# course_second_category_id :integer default("0")
|
||||||
# delay_publish :boolean default("0")
|
# delay_publish :boolean default("0")
|
||||||
# memo_image :boolean default("0")
|
|
||||||
# extra_type :integer default("0")
|
|
||||||
# uuid :string(255)
|
# uuid :string(255)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
|
@ -45,6 +43,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Attachment < ApplicationRecord
|
class Attachment < ApplicationRecord
|
||||||
include BaseModel
|
include BaseModel
|
||||||
include Publicable
|
include Publicable
|
||||||
|
|
|
@ -8,6 +8,26 @@
|
||||||
# team_id :integer
|
# team_id :integer
|
||||||
# team_name :string(255)
|
# team_name :string(255)
|
||||||
# school_name :string(255)
|
# school_name :string(255)
|
||||||
|
# educoder_login :string(255)
|
||||||
|
# nickname :string(255)
|
||||||
|
# phone :string(255)
|
||||||
|
# email :string(255)
|
||||||
|
# identity :string(255)
|
||||||
|
# role :string(255)
|
||||||
|
# created_at :datetime not null
|
||||||
|
# updated_at :datetime not null
|
||||||
|
#
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: gitlink_competition_applies
|
||||||
|
#
|
||||||
|
# id :integer not null, primary key
|
||||||
|
# competition_id :integer
|
||||||
|
# competition_identifier :string(255)
|
||||||
|
# team_id :integer
|
||||||
|
# team_name :string(255)
|
||||||
|
# school_name :string(255)
|
||||||
# login :string(255)
|
# login :string(255)
|
||||||
# nickname :string(255)
|
# nickname :string(255)
|
||||||
# phone :string(255)
|
# phone :string(255)
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
# content :text(65535)
|
# content :text(65535)
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# is_secret :boolean default("0")
|
|
||||||
#
|
#
|
||||||
|
|
||||||
class License < ApplicationRecord
|
class License < ApplicationRecord
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
# course_group_id :integer default("0")
|
# course_group_id :integer default("0")
|
||||||
# is_collect :integer default("1")
|
# is_collect :integer default("1")
|
||||||
# graduation_group_id :integer default("0")
|
# graduation_group_id :integer default("0")
|
||||||
# is_apply_signature :boolean default("0")
|
|
||||||
# team_user_id :integer
|
# team_user_id :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# organization_id :integer
|
# organization_id :integer
|
||||||
# is_creator :boolean default("0")
|
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
# is_pinned :boolean default("0")
|
# is_pinned :boolean default("0")
|
||||||
# recommend_index :integer default("0")
|
# recommend_index :integer default("0")
|
||||||
# pr_view_admin :boolean default("0")
|
# pr_view_admin :boolean default("0")
|
||||||
|
# has_actions :boolean default("0")
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_project_categories_on_ancestry (ancestry)
|
# index_project_categories_on_ancestry (ancestry)
|
||||||
# index_project_categories_on_id (id)
|
|
||||||
#
|
#
|
||||||
|
|
||||||
class ProjectCategory < ApplicationRecord
|
class ProjectCategory < ApplicationRecord
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
# Indexes
|
|
||||||
#
|
|
||||||
# index_project_languages_on_id (id)
|
|
||||||
#
|
|
||||||
|
|
||||||
class ProjectLanguage < ApplicationRecord
|
class ProjectLanguage < ApplicationRecord
|
||||||
include Projectable
|
include Projectable
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_name (project_id)
|
|
||||||
# index_repositories_on_identifier (identifier)
|
# index_repositories_on_identifier (identifier)
|
||||||
# index_repositories_on_project_id (project_id)
|
# index_repositories_on_project_id (project_id)
|
||||||
# index_repositories_on_user_id (user_id)
|
# index_repositories_on_user_id (user_id)
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
# sync_direction :integer
|
# sync_direction :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
# external_token :string(255)
|
||||||
|
# webhook_gid :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
# sync_direction :integer
|
# sync_direction :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
# external_token :string(255)
|
||||||
|
# webhook_gid :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
# school_id :integer
|
# school_id :integer
|
||||||
# description :string(255)
|
# description :string(255)
|
||||||
# department_id :integer
|
# department_id :integer
|
||||||
# province :text(65535)
|
# province :string(255)
|
||||||
# custom_department :string(255)
|
|
||||||
# city :string(255)
|
# city :string(255)
|
||||||
|
# custom_department :string(255)
|
||||||
# show_email :boolean default("0")
|
# show_email :boolean default("0")
|
||||||
# show_location :boolean default("0")
|
# show_location :boolean default("0")
|
||||||
# show_department :boolean default("0")
|
# show_department :boolean default("0")
|
||||||
|
|
|
@ -53,7 +53,9 @@ default: &default
|
||||||
# 区块链相关配置
|
# 区块链相关配置
|
||||||
blockchain:
|
blockchain:
|
||||||
api_url: 'blockchain service url'
|
api_url: 'blockchain service url'
|
||||||
|
sonarqube:
|
||||||
|
url: ''
|
||||||
|
secret: ''
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddHasActionsToProjects < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :projects , :has_actions, :boolean, default: false
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue