A tool to migrate GitHub Repositories to Gitea including all issues
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
gitea-github-migrator/web/migration/status.go

14 lines
322 B

package migration
import (
"git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator/web/context"
)
// StatusReport returns the status of the current Job in JSON
func StatusReport(ctx *context.Context) {
if job := ctx.GetCurrentJob(); job != nil {
ctx.JSON(200, job.StatusReport())
return
}
ctx.Status(404)
}