Skip to content
Snippets Groups Projects
Select Git revision
  • 456245aabe465529d6623dafd8aa32ed152f5365
  • main default protected
  • renovate/main-ghcr.io-renovatebot-base-image-11.x
  • chore/maintainers-rarkins
  • refactor/pin-new-value
  • fix/user-agent
  • feat/37517-base64-private-key
  • next
  • feat/gnupg
  • fix/36615b-branch-reuse-no-cache
  • chore/punycode
  • feat/36219--git-x509-signing
  • feat/structured-logger
  • hotfix/39.264.1
  • feat/skip-dangling
  • gh-readonly-queue/next/pr-36034-7a061c4ca1024a19e2c295d773d9642625d1c2be
  • hotfix/39.238.3
  • refactor/gitlab-auto-approve
  • feat/template-strings
  • gh-readonly-queue/next/pr-35654-137d934242c784e0c45d4b957362214f0eade1d7
  • fix/32307-global-extends-merging
  • 41.88.0
  • 41.87.4
  • 41.87.3
  • 41.87.2
  • 41.87.1
  • 41.87.0
  • 41.86.1
  • 41.86.0
  • 41.85.0
  • 41.84.0
  • 41.83.2
  • 41.83.1
  • 41.83.0
  • 41.82.10
  • 41.82.9
  • 41.82.8
  • 41.82.7
  • 41.82.6
  • 41.82.5
  • 41.82.4
41 results

configured.ts

Blame
  • user avatar
    Rhys Arkins authored and GitHub committed
    53ca9130
    History
    configured.ts 381 B
    import { RenovateConfig } from '../../config';
    import {
      REPOSITORY_DISABLED,
      REPOSITORY_FORKED,
    } from '../../constants/error-messages';
    
    export function checkIfConfigured(config: RenovateConfig): void {
      if (config.enabled === false) {
        throw new Error(REPOSITORY_DISABLED);
      }
      if (config.isFork && !config.includeForks) {
        throw new Error(REPOSITORY_FORKED);
      }
    }