chore(maintenance): make GitHub repo configurable for auto-updater and publisher (#6828)
Signed-off-by: Yelsin Sepulveda <yelsinsepulveda@gmail.com>
This commit is contained in:
@@ -27,8 +27,8 @@ interface UpdateCheckResult {
|
||||
}
|
||||
|
||||
export class GitHubUpdater {
|
||||
private readonly owner = 'block';
|
||||
private readonly repo = 'goose';
|
||||
private readonly owner = process.env.GITHUB_OWNER || 'block';
|
||||
private readonly repo = process.env.GITHUB_REPO || 'goose';
|
||||
private readonly apiUrl = `https://api.github.com/repos/${this.owner}/${this.repo}/releases/latest`;
|
||||
|
||||
async checkForUpdates(): Promise<UpdateCheckResult> {
|
||||
|
||||
Reference in New Issue
Block a user