detached e4b332d

fix(proto): keep failing_checks_block as a deprecated field instead of removing it

commit
e4b332d4ee65c3da47f730b86c499f3a7230935a
author
brice · · 2026-10-21 14:11 UTC
parent
d1c609e
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
checks
4/4
refs
tag: v0.15.0
2 files · +20 -6
M gen/ermite/repo.pb.go +17 -3
@@ -146,6 +146,11 @@ type RepoSettings struct {
146146 // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is
147147 // rejected.
148148 AllowedMergeModes []MergeMode `protobuf:"varint,1,rep,packed,name=allowed_merge_modes,json=allowedMergeModes,proto3,enum=ermite.MergeMode" json:"allowed_merge_modes,omitempty"`
149+ // FailingChecksBlock is unused: servers ignore it and never set it. A merge
150+ // needs passing checks unless MergeMergeRequestRequest.ignore_checks is set.
151+ //
152+ // Deprecated: Marked as deprecated in ermite/repo.proto.
153+ FailingChecksBlock bool `protobuf:"varint,2,opt,name=failing_checks_block,json=failingChecksBlock,proto3" json:"failing_checks_block,omitempty"`
149154 // Issues is the issue participation mode of the repository.
150155 Issues IssuesMode `protobuf:"varint,3,opt,name=issues,proto3,enum=ermite.IssuesMode" json:"issues,omitempty"`
151156 // AllowAutoMerge says whether auto-merge can be enabled on the merge requests
@@ -193,6 +198,14 @@ func (x *RepoSettings) GetAllowedMergeModes() []MergeMode {
193198 return nil
194199 }
195200
201+// Deprecated: Marked as deprecated in ermite/repo.proto.
202+func (x *RepoSettings) GetFailingChecksBlock() bool {
203+ if x != nil {
204+ return x.FailingChecksBlock
205+ }
206+ return false
207+}
208+
196209 func (x *RepoSettings) GetIssues() IssuesMode {
197210 if x != nil {
198211 return x.Issues
@@ -910,11 +923,12 @@ var File_ermite_repo_proto protoreflect.FileDescriptor
910923
911924 const file_ermite_repo_proto_rawDesc = "" +
912925 "\n" +
913- "\x11ermite/repo.proto\x12\x06ermite\x1a google/protobuf/field_mask.proto\x1a\x12ermite/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x01\n" +
926+ "\x11ermite/repo.proto\x12\x06ermite\x1a google/protobuf/field_mask.proto\x1a\x12ermite/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x01\n" +
914927 "\fRepoSettings\x12A\n" +
915- "\x13allowed_merge_modes\x18\x01 \x03(\x0e2\x11.ermite.MergeModeR\x11allowedMergeModes\x12*\n" +
928+ "\x13allowed_merge_modes\x18\x01 \x03(\x0e2\x11.ermite.MergeModeR\x11allowedMergeModes\x124\n" +
929+ "\x14failing_checks_block\x18\x02 \x01(\bB\x02\x18\x01R\x12failingChecksBlock\x12*\n" +
916930 "\x06issues\x18\x03 \x01(\x0e2\x12.ermite.IssuesModeR\x06issues\x12(\n" +
917- "\x10allow_auto_merge\x18\x04 \x01(\bR\x0eallowAutoMergeJ\x04\b\x02\x10\x03R\x14failing_checks_block\"\xd5\x02\n" +
931+ "\x10allow_auto_merge\x18\x04 \x01(\bR\x0eallowAutoMerge\"\xd5\x02\n" +
918932 "\x04Repo\x12\x12\n" +
919933 "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
920934 "\vdescription\x18\x02 \x01(\tR\vdescription\x122\n" +
@@ -146,6 +146,11 @@ type RepoSettings struct {
146 // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is146 // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is
147 // rejected.147 // rejected.
148 AllowedMergeModes []MergeMode `protobuf:"varint,1,rep,packed,name=allowed_merge_modes,json=allowedMergeModes,proto3,enum=ermite.MergeMode" json:"allowed_merge_modes,omitempty"`148 AllowedMergeModes []MergeMode `protobuf:"varint,1,rep,packed,name=allowed_merge_modes,json=allowedMergeModes,proto3,enum=ermite.MergeMode" json:"allowed_merge_modes,omitempty"`
149+ // FailingChecksBlock is unused: servers ignore it and never set it. A merge
150+ // needs passing checks unless MergeMergeRequestRequest.ignore_checks is set.
151+ //
152+ // Deprecated: Marked as deprecated in ermite/repo.proto.
153+ FailingChecksBlock bool `protobuf:"varint,2,opt,name=failing_checks_block,json=failingChecksBlock,proto3" json:"failing_checks_block,omitempty"`
149 // Issues is the issue participation mode of the repository.154 // Issues is the issue participation mode of the repository.
150 Issues IssuesMode `protobuf:"varint,3,opt,name=issues,proto3,enum=ermite.IssuesMode" json:"issues,omitempty"`155 Issues IssuesMode `protobuf:"varint,3,opt,name=issues,proto3,enum=ermite.IssuesMode" json:"issues,omitempty"`
151 // AllowAutoMerge says whether auto-merge can be enabled on the merge requests156 // AllowAutoMerge says whether auto-merge can be enabled on the merge requests
@@ -193,6 +198,14 @@ func (x *RepoSettings) GetAllowedMergeModes() []MergeMode {
193 return nil198 return nil
194 }199 }
195 200
201+// Deprecated: Marked as deprecated in ermite/repo.proto.
202+func (x *RepoSettings) GetFailingChecksBlock() bool {
203+ if x != nil {
204+ return x.FailingChecksBlock
205+ }
206+ return false
207+}
208+
196 func (x *RepoSettings) GetIssues() IssuesMode {209 func (x *RepoSettings) GetIssues() IssuesMode {
197 if x != nil {210 if x != nil {
198 return x.Issues211 return x.Issues
@@ -910,11 +923,12 @@ var File_ermite_repo_proto protoreflect.FileDescriptor
910 923
911 const file_ermite_repo_proto_rawDesc = "" +924 const file_ermite_repo_proto_rawDesc = "" +
912 "\n" +925 "\n" +
913- "\x11ermite/repo.proto\x12\x06ermite\x1a google/protobuf/field_mask.proto\x1a\x12ermite/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x01\n" +926+ "\x11ermite/repo.proto\x12\x06ermite\x1a google/protobuf/field_mask.proto\x1a\x12ermite/types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x01\n" +
914 "\fRepoSettings\x12A\n" +927 "\fRepoSettings\x12A\n" +
915- "\x13allowed_merge_modes\x18\x01 \x03(\x0e2\x11.ermite.MergeModeR\x11allowedMergeModes\x12*\n" +928+ "\x13allowed_merge_modes\x18\x01 \x03(\x0e2\x11.ermite.MergeModeR\x11allowedMergeModes\x124\n" +
929+ "\x14failing_checks_block\x18\x02 \x01(\bB\x02\x18\x01R\x12failingChecksBlock\x12*\n" +
916 "\x06issues\x18\x03 \x01(\x0e2\x12.ermite.IssuesModeR\x06issues\x12(\n" +930 "\x06issues\x18\x03 \x01(\x0e2\x12.ermite.IssuesModeR\x06issues\x12(\n" +
917- "\x10allow_auto_merge\x18\x04 \x01(\bR\x0eallowAutoMergeJ\x04\b\x02\x10\x03R\x14failing_checks_block\"\xd5\x02\n" +931+ "\x10allow_auto_merge\x18\x04 \x01(\bR\x0eallowAutoMerge\"\xd5\x02\n" +
918 "\x04Repo\x12\x12\n" +932 "\x04Repo\x12\x12\n" +
919 "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +933 "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
920 "\vdescription\x18\x02 \x01(\tR\vdescription\x122\n" +934 "\vdescription\x18\x02 \x01(\tR\vdescription\x122\n" +
M proto/ermite/repo.proto +3 -3
@@ -35,14 +35,14 @@ enum IssuesMode {
3535 // RepoSettings are the settings of a repository that govern its merge
3636 // requests and issues.
3737 message RepoSettings {
38- reserved 2;
39- reserved "failing_checks_block";
40-
4138 // AllowedMergeModes are the modes with which a merge request of the
4239 // repository may be merged. It is never empty in a response and has no
4340 // duplicate. Every mode is allowed by default. MERGE_MODE_UNSPECIFIED is
4441 // rejected.
4542 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];
4646 // Issues is the issue participation mode of the repository.
4747 IssuesMode issues = 3;
4848 // 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 merge35 // 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 the38 // 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 no39 // 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 is40 // 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 requests48 // AllowAutoMerge says whether auto-merge can be enabled on the merge requests

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 18

↑↓ moveenter openesc close