summaryrefslogtreecommitdiffstats
path: root/generator/src/methods.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-07-30 21:49:35 +0200
committerCyborus <cyborus@noreply.codeberg.org>2024-07-30 21:49:35 +0200
commit127e4e6a9ccea0793e760bbcb604ca3298acefef (patch)
tree7c894d755981ec523e9613c8b76c405b35b6de29 /generator/src/methods.rs
parentMerge pull request 'bump version to 0.4.0' (#70) from bump-0.4.0 into main (diff)
parentdocs: replace instances of "gitea" with "Forgejo" (diff)
downloadforgejo-api-127e4e6a9ccea0793e760bbcb604ca3298acefef.tar.xz
forgejo-api-127e4e6a9ccea0793e760bbcb604ca3298acefef.zip
Merge pull request 'replace instances of "gitea" with "Forgejo"' (#71) from replace-gitea into mainv0.4.0
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/71
Diffstat (limited to 'generator/src/methods.rs')
-rw-r--r--generator/src/methods.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/src/methods.rs b/generator/src/methods.rs
index 93d5f57..7245247 100644
--- a/generator/src/methods.rs
+++ b/generator/src/methods.rs
@@ -96,6 +96,9 @@ fn method_docs(spec: &OpenApiV2, op: &Operation) -> eyre::Result<String> {
let mut out = String::new();
let mut prev = false;
if let Some(summary) = &op.summary {
+ let summary = summary
+ .replace("gitea", "Forgejo")
+ .replace("Gitea", "Forgejo");
write!(&mut out, "/// {summary}\n")?;
prev = true;
}