We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3c189 commit 7ec4fd4Copy full SHA for 7ec4fd4
repo.go
@@ -146,6 +146,23 @@ func (c *Client) EditIssueTracker(owner, repo string, opt EditIssueTrackerOption
146
return err
147
}
148
149
+type EditWikiOption struct {
150
+ EnableWiki *bool `json:"enable_wiki"`
151
+ AllowPublicWiki *bool `json:"allow_public_wiki"`
152
+ EnableExternalWiki *bool `json:"enable_external_wiki"`
153
+ ExternalWikiURL *string `json:"external_wiki_url"`
154
+}
155
+
156
+// EditWiki updates wiki options of the repository.
157
+func (c *Client) EditWiki(owner, repo string, opt EditWikiOption) error {
158
+ body, err := json.Marshal(&opt)
159
+ if err != nil {
160
+ return err
161
+ }
162
+ _, err = c.getResponse("PATCH", fmt.Sprintf("/repos/%s/%s/wiki", owner, repo), jsonHeader, bytes.NewReader(body))
163
164
165
166
func (c *Client) MirrorSync(owner, repo string) error {
167
_, err := c.getResponse("POST", fmt.Sprintf("/repos/%s/%s/mirror-sync", owner, repo), jsonHeader, nil)
168
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments