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)
| 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. |
| 13 | func 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 |
no test coverage detected