1
0
Fork 0
forgejo/models/actions
Gergely Nagy d6915f4d5f
badges: Relax the default workflow badge conditions
Previously, if no branch was explicitly specified for a workflow, it
defaulted to the default branch of the repo. This worked fine for
workflows that were triggered on push, but it prevented showing badges
for workflows that only run on tags, or on schedule - since they do not
run on a specific branch.

Thus, relax the conditions, and if no branch is specified, just return
the latest run of the given workflow. If one is specified, *then*
restrict it to said branch.

Fixes #3487.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-05-20 11:20:11 +02:00
..
artifact.go
forgejo.go
forgejo_test.go
main_test.go fix(actions): prevent deleted records' UUID from colliding with new records (#3830) 2024-05-19 10:46:15 +00:00
run.go badges: Relax the default workflow badge conditions 2024-05-20 11:20:11 +02:00
run_job.go
run_job_list.go
run_list.go
runner.go fix(actions): prevent deleted records' UUID from colliding with new records (#3830) 2024-05-19 10:46:15 +00:00
runner_list.go
runner_test.go fix(actions): prevent deleted records' UUID from colliding with new records (#3830) 2024-05-19 10:46:15 +00:00
runner_token.go
runner_token_test.go
schedule.go
schedule_list.go
schedule_spec.go
schedule_spec_list.go
status.go
task.go
task_list.go
task_output.go
task_step.go
tasks_version.go
utils.go
utils_test.go
variable.go