From df3f3f8dab5105904344c3184f193455d2a2fbe7 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 13 Apr 2025 17:54:09 +0000 Subject: [PATCH] Action badge style query (#209) Add dcos for the new style query for action badges (https://github.com/go-gitea/gitea/pull/34062). Reviewed-on: https://gitea.com/gitea/docs/pulls/209 Reviewed-by: Lunny Xiao Co-authored-by: bytedream Co-committed-by: bytedream --- docs/usage/actions/badge.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/usage/actions/badge.md b/docs/usage/actions/badge.md index 882999a6..86b4500e 100644 --- a/docs/usage/actions/badge.md +++ b/docs/usage/actions/badge.md @@ -16,7 +16,7 @@ It is designed to be compatible with [GitHub Actions workflow badge](https://doc You can use the following URL to get the badge: ``` -https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file}/badge.svg?branch={branch}&event={event} +https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file}/badge.svg?branch={branch}&event={event}&style={style} ``` - `{owner}`: The owner of the repository. @@ -24,3 +24,4 @@ https://your-gitea-instance.com/{owner}/{repo}/actions/workflows/{workflow_file} - `{workflow_file}`: The name of the workflow file. - `{branch}`: Optional. The branch of the workflow. Default to your repository's default branch. - `{event}`: Optional. The event of the workflow. Default to none. +- `{style}`: Optional. Style of the badge, either `flat` or `flat-square`. Default to `flat`.