mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-26 02:22:52 +09:00
Add workflow
This commit is contained in:
@ -11,8 +11,20 @@ import (
|
||||
)
|
||||
|
||||
func BuildView(ctx *context.Context) {
|
||||
ctx.Data["RunID"] = ctx.Params("runid")
|
||||
ctx.Data["JobID"] = ctx.Params("jobid")
|
||||
runID := ctx.ParamsInt64("runid")
|
||||
ctx.Data["RunID"] = runID
|
||||
jobID := ctx.ParamsInt64("jobid")
|
||||
if jobID <= 0 {
|
||||
runJobs, err := bots_model.GetRunJobsByRunID(ctx, runID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if len(runJobs) <= 0 {
|
||||
return
|
||||
}
|
||||
jobID = runJobs[0].ID
|
||||
}
|
||||
ctx.Data["JobID"] = jobID
|
||||
|
||||
ctx.HTML(http.StatusOK, "dev/buildview")
|
||||
}
|
||||
|
Reference in New Issue
Block a user