0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-15 19:05:14 -05:00
forgejo/routers/web/repo
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
..
actions Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
badges badges: Relax the default workflow badge conditions 2024-05-20 11:20:11 +02:00
flags
setting Fix wrong transfer hint (#30889) 2024-05-12 20:03:10 +02:00
activity.go Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:47:52 +00:00
attachment.go
blame.go
branch.go
cherry_pick.go
code_frequency.go
commit.go Fix code search input for different views (#30678) 2024-04-28 15:39:01 +02:00
compare.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
contributors.go
download.go
editor.go
editor_test.go
find.go
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
issue_content_history.go
issue_dependency.go Use PostFormValue instead of PostForm.Get 2024-05-02 10:51:07 +02:00
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Fix Issue watching / unwatching on the web ui 2024-05-01 11:04:54 +02:00
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects.go Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
projects_test.go
pull.go Fix misspelling of mergable (#30896) 2024-05-12 20:03:10 +02:00
pull_review.go Prevent allow/reject reviews on merged/closed PRs (#30686) 2024-04-28 15:39:01 +02:00
pull_review_test.go
recent_commits.go
release.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
release_test.go
render.go
repo.go Add an immutable tarball link to archive download headers for Nix 2024-05-03 15:21:45 -07:00
search.go [FEAT] support searching non default branches/tags when using git-grep (#3654) 2024-05-14 15:41:03 +00:00
topic.go
treelist.go
view.go [FEAT] support searching non default branches/tags when using git-grep (#3654) 2024-05-14 15:41:03 +00:00
view_test.go
wiki.go
wiki_test.go