Fix forked repositories missed tags (#18719)
Fix forked repositories missed tags (#18719)

* Fix forked repositories missed tags

* Add missed close

* Use ctx

Co-authored-by: 6543 <38d17c89bbb30dc9e2665c7359356aaa08c63a4d@obermui.de>
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea