(path string)
| 135 | } |
| 136 | |
| 137 | func checkCoderRepo(path string) error { |
| 138 | remote, err := run("git", "-C", path, "remote", "get-url", "origin") |
| 139 | if err != nil { |
| 140 | return xerrors.Errorf("get remote failed: %w", err) |
| 141 | } |
| 142 | if !strings.Contains(remote, "github.com") || !strings.Contains(remote, "coder/coder") { |
| 143 | return xerrors.Errorf("origin is not set to the coder/coder repository on github.com") |
| 144 | } |
| 145 | return nil |
| 146 | } |
| 147 | |
| 148 | type releaseCommand struct { |
| 149 | fs afero.Fs |