From 0145621e8dd50a34cde5a4ae9c96eaed07e80ccf Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Wed, 1 Oct 2025 04:52:16 +0200 Subject: [PATCH] docs: add back warning as a commit status (#8935) `warning` has been originally removed, but it caused issues with the CIs and therefore the removal has been reverted. However the docs have not been properly updated, the warning option is supported on the backend, but it's not mentioned anywhere in the generated docs / API. (Removal and revert has been propagated from the Gitea) Fixes #8934 Signed-off-by: Matej Focko ## Checklist The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org). ### Tests - I added test coverage for Go changes... - [ ] in their respective `*_test.go` for unit tests. - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server. - I added test coverage for JavaScript changes... - [ ] in `web_src/js/*.test.js` if it can be unit tested. - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)). ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [ ] I did not document these changes and I do not expect someone else to do it. ### Release notes - [ ] I do not want this change to show in the release notes. - [ ] I want the title to show in the release notes with a link to this pull request. - [ ] I want the content of the `release-notes/.md` to be be used for the release notes instead of the title. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8935 Reviewed-by: Earl Warren Co-authored-by: Matej Focko Co-committed-by: Matej Focko --- modules/structs/commit_status.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/structs/commit_status.go b/modules/structs/commit_status.go index dc880ef5eb..2a5dfb7546 100644 --- a/modules/structs/commit_status.go +++ b/modules/structs/commit_status.go @@ -4,7 +4,7 @@ package structs // CommitStatusState holds the state of a CommitStatus -// It can be "pending", "success", "error" and "failure" +// It can be "pending", "success", "error", "failure" and "warning" type CommitStatusState string const ( diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 98cdeeb228..f9ee915e39 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -23123,7 +23123,7 @@ "x-go-package": "forgejo.org/modules/structs" }, "CommitStatusState": { - "description": "CommitStatusState holds the state of a CommitStatus\nIt can be \"pending\", \"success\", \"error\" and \"failure\"", + "description": "CommitStatusState holds the state of a CommitStatus\nIt can be \"pending\", \"success\", \"error\", \"failure\" and \"warning\"", "type": "string", "x-go-package": "forgejo.org/modules/structs" },