Merge pull request #3183 from github/robertbrignull/remove_releases_repo_config
Remove ownerName and repositoryName from DistributionConfig
This commit is contained in:
@@ -512,9 +512,7 @@ class ExtensionSpecificDistributionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private get distributionOwnerName(): string {
|
private get distributionOwnerName(): string {
|
||||||
if (this.config.ownerName) {
|
if (this.config.channel === "nightly") {
|
||||||
return this.config.ownerName;
|
|
||||||
} else if (this.config.channel === "nightly") {
|
|
||||||
return NIGHTLY_DISTRIBUTION_OWNER_NAME;
|
return NIGHTLY_DISTRIBUTION_OWNER_NAME;
|
||||||
} else {
|
} else {
|
||||||
return DEFAULT_DISTRIBUTION_OWNER_NAME;
|
return DEFAULT_DISTRIBUTION_OWNER_NAME;
|
||||||
@@ -522,9 +520,7 @@ class ExtensionSpecificDistributionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private get distributionRepositoryName(): string {
|
private get distributionRepositoryName(): string {
|
||||||
if (this.config.repositoryName) {
|
if (this.config.channel === "nightly") {
|
||||||
return this.config.repositoryName;
|
|
||||||
} else if (this.config.channel === "nightly") {
|
|
||||||
return NIGHTLY_DISTRIBUTION_REPOSITORY_NAME;
|
return NIGHTLY_DISTRIBUTION_REPOSITORY_NAME;
|
||||||
} else {
|
} else {
|
||||||
return DEFAULT_DISTRIBUTION_REPOSITORY_NAME;
|
return DEFAULT_DISTRIBUTION_REPOSITORY_NAME;
|
||||||
|
|||||||
@@ -119,8 +119,6 @@ export interface DistributionConfig {
|
|||||||
updateCustomCodeQlPath: (newPath: string | undefined) => Promise<void>;
|
updateCustomCodeQlPath: (newPath: string | undefined) => Promise<void>;
|
||||||
includePrerelease: boolean;
|
includePrerelease: boolean;
|
||||||
personalAccessToken?: string;
|
personalAccessToken?: string;
|
||||||
ownerName?: string;
|
|
||||||
repositoryName?: string;
|
|
||||||
channel: CLIChannel;
|
channel: CLIChannel;
|
||||||
onDidChangeConfiguration?: Event<void>;
|
onDidChangeConfiguration?: Event<void>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user