chore: use ConsumedResponse to pass eslint validation

Signed-off-by: secustor <sebastian@poxhofer.at>
This commit is contained in:
secustor
2024-01-15 16:03:43 +01:00
parent e27b7f3207
commit 633250f0e5
@@ -20,6 +20,7 @@ import {
GithubIntegrationConfig,
readGithubIntegrationConfigs,
} from './config';
import { ConsumedResponse } from '@backstage/errors';
/**
* A GitHub based integration.
@@ -66,7 +67,7 @@ export class GithubIntegration implements ScmIntegration {
return replaceGithubUrlType(url, 'edit');
}
isRateLimited(response: Response): boolean {
isRateLimited(response: ConsumedResponse): boolean {
return (
response.status === 429 ||
(response.status === 403 &&