detached b8fe0a4

fix(rpc): map the release:write scope to the contract

commit
b8fe0a446e2d7c28fecaf11632dbd33777377dca
author
brice · · 2026-10-21 14:54 UTC
committer
brice · · 2026-10-21 17:53 UTC
parent
f9e6941
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +2 -0
M internal/adapters/client/scopes_test.go +1 -0
@@ -28,6 +28,7 @@ func TestScopeWireNames(t *testing.T) {
2828 ermite.Scope_SCOPE_RUNNER_REGISTER: "runner:register",
2929 ermite.Scope_SCOPE_TOKEN_ADMIN: "token:admin",
3030 ermite.Scope_SCOPE_ISSUE_WRITE: "issue:write",
31+ ermite.Scope_SCOPE_RELEASE_WRITE: "release:write",
3132 }
3233 for s, name := range want {
3334 assert.Equal(t, name, client.ScopeName(s))
@@ -28,6 +28,7 @@ func TestScopeWireNames(t *testing.T) {
28 ermite.Scope_SCOPE_RUNNER_REGISTER: "runner:register",28 ermite.Scope_SCOPE_RUNNER_REGISTER: "runner:register",
29 ermite.Scope_SCOPE_TOKEN_ADMIN: "token:admin",29 ermite.Scope_SCOPE_TOKEN_ADMIN: "token:admin",
30 ermite.Scope_SCOPE_ISSUE_WRITE: "issue:write",30 ermite.Scope_SCOPE_ISSUE_WRITE: "issue:write",
31+ ermite.Scope_SCOPE_RELEASE_WRITE: "release:write",
31 }32 }
32 for s, name := range want {33 for s, name := range want {
33 assert.Equal(t, name, client.ScopeName(s))34 assert.Equal(t, name, client.ScopeName(s))
M internal/adapters/rpc/convert.go +1 -0
@@ -137,6 +137,7 @@ var scopeToPB = map[domain.Scope]pb.Scope{
137137 domain.ScopeRunnerRegister: pb.Scope_SCOPE_RUNNER_REGISTER,
138138 domain.ScopeTokenAdmin: pb.Scope_SCOPE_TOKEN_ADMIN,
139139 domain.ScopeIssueWrite: pb.Scope_SCOPE_ISSUE_WRITE,
140+ domain.ScopeReleaseWrite: pb.Scope_SCOPE_RELEASE_WRITE,
140141 }
141142
142143 func scopeFromPB(s pb.Scope) (domain.Scope, error) {
@@ -137,6 +137,7 @@ var scopeToPB = map[domain.Scope]pb.Scope{
137 domain.ScopeRunnerRegister: pb.Scope_SCOPE_RUNNER_REGISTER,137 domain.ScopeRunnerRegister: pb.Scope_SCOPE_RUNNER_REGISTER,
138 domain.ScopeTokenAdmin: pb.Scope_SCOPE_TOKEN_ADMIN,138 domain.ScopeTokenAdmin: pb.Scope_SCOPE_TOKEN_ADMIN,
139 domain.ScopeIssueWrite: pb.Scope_SCOPE_ISSUE_WRITE,139 domain.ScopeIssueWrite: pb.Scope_SCOPE_ISSUE_WRITE,
140+ domain.ScopeReleaseWrite: pb.Scope_SCOPE_RELEASE_WRITE,
140 }141 }
141 142
142 func scopeFromPB(s pb.Scope) (domain.Scope, error) {143 func scopeFromPB(s pb.Scope) (domain.Scope, error) {

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 42

↑↓ moveenter openesc close