Removed deprecated GitHub cased code
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
'@backstage/integration': patch
|
||||
---
|
||||
|
||||
**BREAKING** Removed deprecated code from when casing was changed from `GitHub` to `Github` nearly two years ago. The following items have been removed:
|
||||
|
||||
- `getGitHubFileFetchUrl` (use `getGithubFileFetchUrl` instead)
|
||||
- `GitHubIntegrationConfig` (use `GithubIntegrationConfig` instead)
|
||||
- `GitHubIntegration` (use `GithubIntegration` instead)
|
||||
- `readGitHubIntegrationConfig` (use `readGithubIntegrationConfig` instead)
|
||||
- `readGitHubIntegrationConfigs` (use `readGithubIntegrationConfigs` instead)
|
||||
- `replaceGitHubUrlType` (use `replaceGithubUrlType` instead)
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* Copyright 2022 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
GithubIntegrationConfig,
|
||||
readGithubIntegrationConfig,
|
||||
readGithubIntegrationConfigs,
|
||||
} from './config';
|
||||
import { getGithubFileFetchUrl } from './core';
|
||||
import { GithubIntegration, replaceGithubUrlType } from './GithubIntegration';
|
||||
import { ScmIntegrationsFactory } from '../types';
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link getGithubFileFetchUrl} instead.
|
||||
*/
|
||||
export const getGitHubFileFetchUrl = getGithubFileFetchUrl;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link GithubIntegrationConfig} instead.
|
||||
*/
|
||||
export type GitHubIntegrationConfig = GithubIntegrationConfig;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link GithubIntegration} instead.
|
||||
*/
|
||||
export class GitHubIntegration extends GithubIntegration {
|
||||
static factory: ScmIntegrationsFactory<GitHubIntegration> =
|
||||
GithubIntegration.factory;
|
||||
|
||||
constructor(integrationConfig: GitHubIntegrationConfig) {
|
||||
super(integrationConfig as GithubIntegrationConfig);
|
||||
}
|
||||
|
||||
get config(): GitHubIntegrationConfig {
|
||||
return super.config as GitHubIntegrationConfig;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link readGithubIntegrationConfig} instead.
|
||||
*/
|
||||
export const readGitHubIntegrationConfig = readGithubIntegrationConfig;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link readGithubIntegrationConfigs} instead.
|
||||
*/
|
||||
export const readGitHubIntegrationConfigs = readGithubIntegrationConfigs;
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @deprecated Use {@link replaceGithubUrlType} instead.
|
||||
*/
|
||||
export const replaceGitHubUrlType = replaceGithubUrlType;
|
||||
Reference in New Issue
Block a user