Skip to content

Commit 5503683

Browse files
authored
fix: compare full path to support nested groups (#253)
* compare full path to support nested groups
1 parent 3722cc5 commit 5503683

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build_and_test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
runs-on: ${{ matrix.platform }}
1717
steps:
1818
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # ratchet:actions/checkout@v3
19-
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # ratchet:actions/setup-go@v3
19+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
2020
with:
21-
go-version: 1.19
21+
go-version: '1.20'
2222
- name: Verify dependencies
2323
run: go mod verify
2424
- name: Build

internal/clients/gitlab/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (c *Client) Group(name string) (*gitlab.Group, error) {
156156
}
157157

158158
for _, g := range res.Collected {
159-
if g.Path == name {
159+
if g.FullPath == name {
160160
return g, nil
161161
}
162162
}

0 commit comments

Comments
 (0)