0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 02:14:06 -05:00
forgejo/routers/web
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
..
admin Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
auth Prevent automatic OAuth grants for public clients (#30790) 2024-05-05 12:15:40 +01:00
devtest
events
explore Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
feed Teach activities.GetFeeds() how to avoid returning duplicates 2024-05-09 18:33:33 +02:00
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc
org Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
repo badges: Relax the default workflow badge conditions 2024-05-20 11:20:11 +02:00
shared Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
user Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go [FEAT] support searching non default branches/tags when using git-grep (#3654) 2024-05-14 15:41:03 +00:00
webfinger.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00