fix(release): upload before deleting on --clobber; show repo view to readers without code access

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 17:19:54 +02:00
1 parent 3d10badb8b
commit 08ba777f2b
3 files changed
+13 -7

No files matched your search

+2 -1
View File
@@ -109,7 +109,8 @@ func (s Repositories) Readme(ctx context.Context, repo, ref string) (name, conte
return c.Repositories.ListContents(ctx, owner, name, ref, "")
})
if err != nil {
if IsNotFound(err) {
// A reader without code access sees the repository but not its files.
if IsNotFound(err) || IsForbidden(err) {
return "", "", nil
}
return "", "", err