MCPcopy Create free account
hub / github.com/github/gh-aw / wikiRepository

Function wikiRepository

pkg/workflow/checkout_step_generator.go:13–22  ·  view source on GitHub ↗

wikiRepository returns the effective repository string for a wiki checkout. GitHub wiki repositories are accessible as "{owner}/{repo}.wiki". When the repository is empty (default current repo), returns "${{ github.repository }}.wiki". If the repository already ends with ".wiki" it is returned uncha

(repository string)

Source from the content-addressed store, hash-verified

11// When the repository is empty (default current repo), returns "${{ github.repository }}.wiki".
12// If the repository already ends with ".wiki" it is returned unchanged to prevent double-suffixing.
13func wikiRepository(repository string) string {
14 if repository == "" {
15 checkoutManagerLog.Print("Wiki checkout using default current repository")
16 return "${{ github.repository }}.wiki"
17 }
18 if strings.HasSuffix(repository, ".wiki") {
19 return repository
20 }
21 return repository + ".wiki"
22}
23
24// GenerateCheckoutAppTokenSteps generates GitHub App token minting steps for all
25// checkout entries that use app authentication. Each app-authenticated checkout

Callers 2

Calls 1

PrintMethod · 0.80

Tested by

no test coverage detected