What POST /repos/{owner}/{repo}/wiki/new is told.
CreateWikiPage.ofText(name, "# Deployment\n\nRun `make deploy`.").withMessage("document the deploy")
CreateWikiPageOptions is shared by the create and the edit route in spec/swagger.v1.json, but the two do not mean the same thing by it — a create must name the page it is creating, while an edit's title is documented as "leave empty to keep unchanged" and is therefore a rename. Modelling them as one type would make title optional on a route that cannot work without it, so there are two: this one and EditWikiPage. They share a renderer, which is where the wire spellings live exactly once.
Value parameters
- content
-
the page body, base64-encoded — build it with WikiContent, or reuse a com.worxbend.codeberg4s.repositories.FileContent read back from another page
- message
-
the commit message for the revision this creates, absent to let Forgejo write its own
- title
-
the page to create
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any