diff --git a/services/github/github-commit-activity.service.js b/services/github/github-commit-activity.service.js index c99b2cd54345b..9f0700c301971 100644 --- a/services/github/github-commit-activity.service.js +++ b/services/github/github-commit-activity.service.js @@ -136,7 +136,7 @@ export default class GitHubCommitActivity extends GithubAuthV4Service { since, }, }, - errorMessages: errorMessagesFor('repo not found'), + errorMessages: errorMessagesFor('repo or branch not found'), }) } @@ -152,11 +152,7 @@ export default class GitHubCommitActivity extends GithubAuthV4Service { return repo.history.totalCount } - static transformAuthorFilter({ res, buffer }) { - if (buffer.message === 'Not Found') { - throw new InvalidResponse({ prettyMessage: 'invalid branch' }) - } - + static transformAuthorFilter({ res }) { const parsed = parseLinkHeader(res.headers.link) if (!parsed) {