fix(proto): keep failing_checks_block as a deprecated field instead of removing it
2 files · +20 -6
M gen/ermite/repo.pb.go +17 -3 generated file: collapsed
M proto/ermite/repo.proto +3 -3
| @@ -35,14 +35,14 @@ enum IssuesMode { | |||
| 35 | 35 | // RepoSettings are the settings of a repository that govern its merge | |
| 36 | 36 | // requests and issues. | |
| 37 | 37 | message RepoSettings { | |
| 38 | - | reserved 2; | |
| 39 | - | reserved "failing_checks_block"; | |
| 40 | - | ||
| 41 | 38 | // AllowedMergeModes are the modes with which a merge request of the | |
| 42 | 39 | // repository may be merged. It is never empty in a response and has no | |
| 43 | 40 | // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is | |
| 44 | 41 | // rejected. | |
| 45 | 42 | repeated MergeMode allowed_merge_modes = 1; | |
| 43 | + | // FailingChecksBlock is unused: servers ignore it and never set it. A merge | |
| 44 | + | // needs passing checks unless MergeMergeRequestRequest.ignore_checks is set. | |
| 45 | + | bool failing_checks_block = 2 [deprecated = true]; | |
| 46 | 46 | // Issues is the issue participation mode of the repository. | |
| 47 | 47 | IssuesMode issues = 3; | |
| 48 | 48 | // AllowAutoMerge says whether auto-merge can be enabled on the merge requests | |
| @@ -35,14 +35,14 @@ enum IssuesMode { | |||||
| 35 | // RepoSettings are the settings of a repository that govern its merge | 35 | // RepoSettings are the settings of a repository that govern its merge | ||
| 36 | // requests and issues. | 36 | // requests and issues. | ||
| 37 | message RepoSettings { | 37 | message RepoSettings { | ||
| 38 | - | reserved 2; | |||
| 39 | - | reserved "failing_checks_block"; | |||
| 40 | - | ||||
| 41 | // AllowedMergeModes are the modes with which a merge request of the | 38 | // AllowedMergeModes are the modes with which a merge request of the | ||
| 42 | // repository may be merged. It is never empty in a response and has no | 39 | // repository may be merged. It is never empty in a response and has no | ||
| 43 | // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is | 40 | // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is | ||
| 44 | // rejected. | 41 | // rejected. | ||
| 45 | repeated MergeMode allowed_merge_modes = 1; | 42 | repeated MergeMode allowed_merge_modes = 1; | ||
| 43 | + | // FailingChecksBlock is unused: servers ignore it and never set it. A merge | |||
| 44 | + | // needs passing checks unless MergeMergeRequestRequest.ignore_checks is set. | |||
| 45 | + | bool failing_checks_block = 2 [deprecated = true]; | |||
| 46 | // Issues is the issue participation mode of the repository. | 46 | // Issues is the issue participation mode of the repository. | ||
| 47 | IssuesMode issues = 3; | 47 | IssuesMode issues = 3; | ||
| 48 | // AllowAutoMerge says whether auto-merge can be enabled on the merge requests | 48 | // AllowAutoMerge says whether auto-merge can be enabled on the merge requests | ||