bug: patterns-files="." causes 500 error from Gitea API #70
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When
patterns-filesis set to., the client passes it directly to the Gitea contents API:Gitea rejects this with HTTP 500:
Root Cause
ListContents()only handles empty string specially. When path is., it appends it to the URL.Fix
Normalize
.to""before calling the API. InListContents()or infetchPatterns()before the call:Workaround
Use
patterns-files: ""instead ofpatterns-files: "."in workflow configs.