Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add `allow_self_approval` to project setting (#14887)
boojack0d4f9f941db3
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.goindex eb2d6b7b82..53bc50c557 100644--- a/backend/api/v1/project_service.go+++ b/backend/api/v1/project_service.go@@ -253,6 +253,10 @@ func (s *ProjectService) UpdateProject(ctx context.Context, request *v1pb.UpdateprojectSettings := project.SettingprojectSettings.PostgresDatabaseTenantMode = request.Project.PostgresDatabaseTenantModepatch.Setting = projectSettings+ case "allow_self_approval":+ projectSettings := project.Setting+ projectSettings.AllowSelfApproval = request.Project.AllowSelfApproval+ patch.Setting = projectSettingsdefault:return nil, status.Errorf(codes.InvalidArgument, `unsupport update_mask "%s"`, path)}@@ -1299,6 +1303,7 @@ func convertToProject(projectMessage *store.ProjectMessage) *v1pb.Project {AutoEnableBackup: projectMessage.Setting.AutoEnableBackup,SkipBackupErrors: projectMessage.Setting.SkipBackupErrors,PostgresDatabaseTenantMode: projectMessage.Setting.PostgresDatabaseTenantMode,+ AllowSelfApproval: projectMessage.Setting.AllowSelfApproval,}}@@ -1310,6 +1315,7 @@ func convertToProjectMessage(resourceID string, project *v1pb.Project) (*store.PAutoEnableBackup: project.AutoEnableBackup,SkipBackupErrors: project.SkipBackupErrors,PostgresDatabaseTenantMode: project.PostgresDatabaseTenantMode,+ AllowSelfApproval: project.AllowSelfApproval,}return &store.ProjectMessage{ResourceID: resourceID,diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex 2fdf22f5e2..ae3f877dc7 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -36,7 +36,7 @@ export enum Edition {EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be- * used or relied on outside of tests.+ * used or relyed on outside of tests.*/EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",@@ -1093,13 +1093,12 @@ export interface MessageOptions {export interface FieldOptions {/**- * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.* The ctype option instructs the C++ code generator to use a different* representation of the field than it normally would. See the specific* options below. This option is only implemented to support use of* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of- * type "bytes" in the open source release.- * TODO: make ctype actually deprecated.+ * type "bytes" in the open source release -- sorry, we'll try to include+ * other types in a future version!*/ctype?:| FieldOptions_CType@@ -1315,7 +1314,11 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number}}-/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */+/**+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.+ * Note: as of January 2023, support for this is in progress and does not yet+ * have an effect (b/264593489).+ */export enum FieldOptions_OptionRetention {RETENTION_UNKNOWN = "RETENTION_UNKNOWN",RETENTION_RUNTIME = "RETENTION_RUNTIME",@@ -1372,7 +1375,8 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option/*** This indicates the types of entities that the field may apply to when used* as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity.+ * option on any kind of entity. Note: as of January 2023, support for this is+ * in progress and does not yet have an effect (b/264593489).*/export enum FieldOptions_OptionTargetType {TARGET_TYPE_UNKNOWN = "TARGET_TYPE_UNKNOWN",diff --git a/frontend/src/types/proto/store/project.ts b/frontend/src/types/proto/store/project.tsindex 2851312306..e337b3c84c 100644--- a/frontend/src/types/proto/store/project.ts+++ b/frontend/src/types/proto/store/project.ts@@ -35,6 +35,8 @@ export interface Project {* If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.*/postgresDatabaseTenantMode: boolean;+ /** Whether to allow the issue creator to self-approve the issue. */+ allowSelfApproval: boolean;}function createBaseLabel(): Label {@@ -139,6 +141,7 @@ function createBaseProject(): Project {autoEnableBackup: false,skipBackupErrors: false,postgresDatabaseTenantMode: false,+ allowSelfApproval: false,};}@@ -168,6 +171,9 @@ export const Project: MessageFns<Project> = {if (message.postgresDatabaseTenantMode !== false) {writer.uint32(72).bool(message.postgresDatabaseTenantMode);}+ if (message.allowSelfApproval !== false) {+ writer.uint32(80).bool(message.allowSelfApproval);+ }return writer;},@@ -242,6 +248,14 @@ export const Project: MessageFns<Project> = {message.postgresDatabaseTenantMode = reader.bool();continue;}+ case 10: {+ if (tag !== 80) {+ break;+ }++ message.allowSelfApproval = reader.bool();+ continue;+ }}if ((tag & 7) === 4 || tag === 0) {break;@@ -267,6 +281,7 @@ export const Project: MessageFns<Project> = {postgresDatabaseTenantMode: isSet(object.postgresDatabaseTenantMode)? globalThis.Boolean(object.postgresDatabaseTenantMode): false,+ allowSelfApproval: isSet(object.allowSelfApproval) ? globalThis.Boolean(object.allowSelfApproval) : false,};},@@ -296,6 +311,9 @@ export const Project: MessageFns<Project> = {if (message.postgresDatabaseTenantMode !== false) {obj.postgresDatabaseTenantMode = message.postgresDatabaseTenantMode;}+ if (message.allowSelfApproval !== false) {+ obj.allowSelfApproval = message.allowSelfApproval;+ }return obj;},@@ -312,6 +330,7 @@ export const Project: MessageFns<Project> = {message.autoEnableBackup = object.autoEnableBackup ?? false;message.skipBackupErrors = object.skipBackupErrors ?? false;message.postgresDatabaseTenantMode = object.postgresDatabaseTenantMode ?? false;+ message.allowSelfApproval = object.allowSelfApproval ?? false;return message;},};diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.tsindex 17b907f063..fdabad14e4 100644--- a/frontend/src/types/proto/v1/project_service.ts+++ b/frontend/src/types/proto/v1/project_service.ts@@ -294,6 +294,8 @@ export interface Project {* If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.*/postgresDatabaseTenantMode: boolean;+ /** Whether to allow the issue creator to self-approve the issue. */+ allowSelfApproval: boolean;}export interface AddWebhookRequest {@@ -1833,6 +1835,7 @@ function createBaseProject(): Project {autoEnableBackup: false,skipBackupErrors: false,postgresDatabaseTenantMode: false,+ allowSelfApproval: false,};}@@ -1883,6 +1886,9 @@ export const Project: MessageFns<Project> = {if (message.postgresDatabaseTenantMode !== false) {writer.uint32(160).bool(message.postgresDatabaseTenantMode);}+ if (message.allowSelfApproval !== false) {+ writer.uint32(168).bool(message.allowSelfApproval);+ }return writer;},@@ -2013,6 +2019,14 @@ export const Project: MessageFns<Project> = {message.postgresDatabaseTenantMode = reader.bool();continue;}+ case 21: {+ if (tag !== 168) {+ break;+ }++ message.allowSelfApproval = reader.bool();+ continue;+ }}if ((tag & 7) === 4 || tag === 0) {break;@@ -2047,6 +2061,7 @@ export const Project: MessageFns<Project> = {postgresDatabaseTenantMode: isSet(object.postgresDatabaseTenantMode)? globalThis.Boolean(object.postgresDatabaseTenantMode): false,+ allowSelfApproval: isSet(object.allowSelfApproval) ? globalThis.Boolean(object.allowSelfApproval) : false,};},@@ -2097,6 +2112,9 @@ export const Project: MessageFns<Project> = {if (message.postgresDatabaseTenantMode !== false) {obj.postgresDatabaseTenantMode = message.postgresDatabaseTenantMode;}+ if (message.allowSelfApproval !== false) {+ obj.allowSelfApproval = message.allowSelfApproval;+ }return obj;},@@ -2120,6 +2138,7 @@ export const Project: MessageFns<Project> = {message.autoEnableBackup = object.autoEnableBackup ?? false;message.skipBackupErrors = object.skipBackupErrors ?? false;message.postgresDatabaseTenantMode = object.postgresDatabaseTenantMode ?? false;+ message.allowSelfApproval = object.allowSelfApproval ?? false;return message;},};diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex c003def4b7..df77be7d31 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -12432,6 +12432,9 @@ components:description: |-Whether to enable the database tenant mode for PostgreSQL.If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.+ allowSelfApproval:+ type: boolean+ description: Whether to allow the issue creator to self-approve the issue.QueryHistory:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 5d0ece1aeb..578e93e8e5 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -3914,6 +3914,7 @@ SlowQueryPolicy is the policy configuration for slow query.| auto_enable_backup | [bool](#bool) | | Whether to automatically enable backup. || skip_backup_errors | [bool](#bool) | | Whether to skip backup errors and continue the data migration. || postgres_database_tenant_mode | [bool](#bool) | | Whether to enable the database tenant mode for PostgreSQL. If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement. |+| allow_self_approval | [bool](#bool) | | Whether to allow the issue creator to self-approve the issue. |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex cab8d09bf1..5fcd6718ac 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -10156,6 +10156,13 @@ for example, the environment resource can have the sql review config tag, like &If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement. </p></td></tr>+ <tr>+ <td>allow_self_approval</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to allow the issue creator to self-approve the issue. </p></td>+ </tr>+</tbody></table>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex c096ed6235..ea5f2f116f 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -8279,6 +8279,7 @@ When paginating, all other parameters provided to `ListProjects` must match the| auto_enable_backup | [bool](#bool) | | Whether to automatically enable backup. || skip_backup_errors | [bool](#bool) | | Whether to skip backup errors and continue the data migration. || postgres_database_tenant_mode | [bool](#bool) | | Whether to enable the database tenant mode for PostgreSQL. If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement. |+| allow_self_approval | [bool](#bool) | | Whether to allow the issue creator to self-approve the issue. |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex d8d9a693a4..217fc5e34e 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -22978,6 +22978,13 @@ Format: projects/{project} </p></td>If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement. </p></td></tr>+ <tr>+ <td>allow_self_approval</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to allow the issue creator to self-approve the issue. </p></td>+ </tr>+</tbody></table>diff --git a/proto/generated-go/store/project.pb.go b/proto/generated-go/store/project.pb.goindex 01fdf23e35..357d7fed80 100644--- a/proto/generated-go/store/project.pb.go+++ b/proto/generated-go/store/project.pb.go@@ -98,8 +98,10 @@ type Project struct {// Whether to enable the database tenant mode for PostgreSQL.// If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.PostgresDatabaseTenantMode bool `protobuf:"varint,9,opt,name=postgres_database_tenant_mode,json=postgresDatabaseTenantMode,proto3" json:"postgres_database_tenant_mode,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // Whether to allow the issue creator to self-approve the issue.+ AllowSelfApproval bool `protobuf:"varint,10,opt,name=allow_self_approval,json=allowSelfApproval,proto3" json:"allow_self_approval,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *Project) Reset() {@@ -188,6 +190,13 @@ func (x *Project) GetPostgresDatabaseTenantMode() bool {return false}+func (x *Project) GetAllowSelfApproval() bool {+ if x != nil {+ return x.AllowSelfApproval+ }+ return false+}+var File_store_project_proto protoreflect.FileDescriptorvar file_store_project_proto_rawDesc = []byte{@@ -198,7 +207,7 @@ var file_store_project_proto_rawDesc = []byte{0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20,0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72,0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,- 0x22, 0xaa, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x38, 0x0a, 0x0c,+ 0x22, 0xda, 0x03, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x38, 0x0a, 0x0c,0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03,0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65,@@ -224,7 +233,10 @@ var file_store_project_proto_rawDesc = []byte{0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74,0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x70, 0x6f, 0x73,0x74, 0x67, 0x72, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x65, 0x6e,- 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x14, 0x5a,+ 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77,+ 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x0a,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x6c, 0x66, 0x41,+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x14, 0x5a,0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74,0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.goindex b70678f0e3..6b42d97452 100644--- a/proto/generated-go/v1/project_service.pb.go+++ b/proto/generated-go/v1/project_service.pb.go@@ -1086,8 +1086,10 @@ type Project struct {// Whether to enable the database tenant mode for PostgreSQL.// If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.PostgresDatabaseTenantMode bool `protobuf:"varint,20,opt,name=postgres_database_tenant_mode,json=postgresDatabaseTenantMode,proto3" json:"postgres_database_tenant_mode,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // Whether to allow the issue creator to self-approve the issue.+ AllowSelfApproval bool `protobuf:"varint,21,opt,name=allow_self_approval,json=allowSelfApproval,proto3" json:"allow_self_approval,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *Project) Reset() {@@ -1225,6 +1227,13 @@ func (x *Project) GetPostgresDatabaseTenantMode() bool {return false}+func (x *Project) GetAllowSelfApproval() bool {+ if x != nil {+ return x.AllowSelfApproval+ }+ return false+}+type AddWebhookRequest struct {state protoimpl.MessageState `protogen:"open.v1"`// The name of the project to add the webhook to.@@ -2094,7 +2103,7 @@ var file_v1_project_service_proto_rawDesc = []byte{0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0xe4, 0x05,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x94, 0x06,0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a,0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62,@@ -2137,7 +2146,10 @@ var file_v1_project_service_proto_rawDesc = []byte{0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,0x65, 0x5f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x14, 0x20,0x01, 0x28, 0x08, 0x52, 0x1a, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x3a,+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12,+ 0x2e, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x61, 0x70,+ 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x6c,+ 0x6c, 0x6f, 0x77, 0x53, 0x65, 0x6c, 0x66, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x3a,0x2d, 0xea, 0x41, 0x2a, 0x0a, 0x14, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63,0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x70, 0x72, 0x6f, 0x6a,0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x4a, 0x04,diff --git a/proto/store/project.proto b/proto/store/project.protoindex b52f02cfc1..9d27f6c907 100644--- a/proto/store/project.proto+++ b/proto/store/project.proto@@ -32,4 +32,7 @@ message Project {// Whether to enable the database tenant mode for PostgreSQL.// If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.bool postgres_database_tenant_mode = 9;++ // Whether to allow the issue creator to self-approve the issue.+ bool allow_self_approval = 10;}diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.protoindex 8fa2a7a679..4a4a2a7192 100644--- a/proto/v1/project_service.proto+++ b/proto/v1/project_service.proto@@ -323,6 +323,9 @@ message Project {// Whether to enable the database tenant mode for PostgreSQL.// If enabled, the issue will be created with the pre-appended "set role <db_owner>" statement.bool postgres_database_tenant_mode = 20;++ // Whether to allow the issue creator to self-approve the issue.+ bool allow_self_approval = 21;}enum Workflow {