D
Dokploy5mo ago
monco

[SOLVED] "Branch Not Match" with forgejo webhook

i tried autodeploy with forgejo. branch is "main" in both forgejo and my dokploy project provider. forgejo triggers the webhook after pushes but reports a 301 - {"message":"Branch Not Match"} every time. any ideas?
4 Replies
Siumauricio
Siumauricio5mo ago
You are pushing on a different branch that dokploy branch currently have
monco
moncoOP5mo ago
i'm pushing on main. currently, there is only this one branch.
> git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
> git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
monco
moncoOP5mo ago
and in dokploy:
No description
monco
moncoOP5mo ago
changing the webhook http method to POST (instead of GET) in forgejo fixed the issue.

Did you find this page helpful?