(baseRepoFunc func() (ghrepo.Interface, error), override string)
| 73 | } |
| 74 | |
| 75 | func OverrideBaseRepoFunc(baseRepoFunc func() (ghrepo.Interface, error), override string) func() (ghrepo.Interface, error) { |
| 76 | if override == "" { |
| 77 | override = os.Getenv("GH_REPO") |
| 78 | } |
| 79 | if override != "" { |
| 80 | return func() (ghrepo.Interface, error) { |
| 81 | return ghrepo.FromFullName(override) |
| 82 | } |
| 83 | } |
| 84 | return baseRepoFunc |
| 85 | } |