Handle case when branch not exist

Handle default branch name in push and branch create handlers
Don't panic in this case in case the project has multiple configs
This commit is contained in:
2024-09-12 16:25:22 +02:00
parent b0b39726b8
commit b7ec9a9ffb
5 changed files with 48 additions and 106 deletions

View File

@@ -485,3 +485,4 @@ func (gitea *GiteaTransport) GetRecentCommits(org, repo, branch string, commitNo
return commits.Payload, nil
}