Skip to content

Inconsistent context availability in run-name #35622

@ChristopherHX

Description

@ChristopherHX

Description

  • Missing vars
    workflows, err = jobparser.Parse(content, jobparser.WithGitContext(giteaCtx.ToGitHubContext()), jobparser.WithInputs(inputsWithDefaults))
    if err != nil {
    return err
    }
    if len(workflows) > 0 && workflows[0].RunName != "" {
    run.Title = workflows[0].RunName
    }
  • Missing github, gitea and run-name code latter defined in caller of this function
    // Parse the workflow specification from the cron schedule
    workflows, err := jobparser.Parse(cron.Content, jobparser.WithVars(vars))
    if err != nil {
    return err
    }
    wfRawConcurrency, err := jobparser.ReadWorkflowRawConcurrency(cron.Content)

Gitea Version

40f71bc

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Code Audit

Database

None

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions