Skip to content
Snippets Groups Projects
Select Git revision
  • 71712ae1c3fa0e7eb8c5e81c38dc07fde5a8eded
  • main default protected
  • release/v2.6.x
  • dependabot/github_actions/ci-3649212e03
  • conform-k8s-1.33
  • rfc-external-artifact
  • release/v2.5.x
  • release/v2.4.x
  • remove-notation-validation
  • release/v2.3.x
  • release/v2.2.x
  • RFC
  • fix-commit-log
  • flux-audit
  • release/v2.1.x
  • context-ns
  • ksm-dashboard
  • rfc-passwordless-git-auth
  • release/v2.0.x
  • rfc-gating
  • release/v0.27.4
  • v2.6.2 protected
  • v2.6.1 protected
  • v2.6.0 protected
  • v2.5.1 protected
  • v2.5.0 protected
  • v2.4.0 protected
  • v2.3.0 protected
  • v2.2.3 protected
  • v2.2.2 protected
  • v2.2.1 protected
  • v2.2.0 protected
  • v2.1.2 protected
  • v2.1.1 protected
  • v2.1.0 protected
  • v2.0.1 protected
  • v2.0.0 protected
  • v2.0.0-rc.5 protected
  • v2.0.0-rc.4 protected
  • v2.0.0-rc.3 protected
  • v2.0.0-rc.2 protected
41 results

monitoring.md

Blame
  • index.ts 49.90 KiB
    import URL from 'url';
    import is from '@sindresorhus/is';
    import delay from 'delay';
    import JSON5 from 'json5';
    import { DateTime } from 'luxon';
    import semver from 'semver';
    import { PlatformId } from '../../../constants';
    import {
      PLATFORM_INTEGRATION_UNAUTHORIZED,
      REPOSITORY_ACCESS_FORBIDDEN,
      REPOSITORY_ARCHIVED,
      REPOSITORY_BLOCKED,
      REPOSITORY_CANNOT_FORK,
      REPOSITORY_CHANGED,
      REPOSITORY_DISABLED,
      REPOSITORY_EMPTY,
      REPOSITORY_FORKED,
      REPOSITORY_NOT_FOUND,
      REPOSITORY_RENAMED,
    } from '../../../constants/error-messages';
    import { logger } from '../../../logger';
    import { BranchStatus, PrState, VulnerabilityAlert } from '../../../types';
    import { ExternalHostError } from '../../../types/errors/external-host-error';
    import * as git from '../../../util/git';
    import { listCommitTree, pushCommitToRenovateRef } from '../../../util/git';
    import type {
      CommitFilesConfig,
      CommitResult,
      CommitSha,
    } from '../../../util/git/types';
    import * as hostRules from '../../../util/host-rules';
    import * as githubHttp from '../../../util/http/github';
    import { regEx } from '../../../util/regex';
    import { sanitize } from '../../../util/sanitize';
    import { fromBase64 } from '../../../util/string';
    import { ensureTrailingSlash } from '../../../util/url';
    import type {
      AggregatedVulnerabilities,
      BranchStatusConfig,
      CreatePRConfig,
      EnsureCommentConfig,
      EnsureCommentRemovalConfig,
      EnsureIssueConfig,
      EnsureIssueResult,
      FindPRConfig,
      Issue,
      MergePRConfig,
      PlatformParams,
      PlatformPrOptions,
      PlatformResult,
      Pr,
      RepoParams,
      RepoResult,
      UpdatePrConfig,
    } from '../types';
    import { smartTruncate } from '../utils/pr-body';
    import { coerceRestPr } from './common';
    import {
      enableAutoMergeMutation,
      getIssuesQuery,
      repoInfoQuery,
      vulnerabilityAlertsQuery,
    } from './graphql';
    import { massageMarkdownLinks } from './massage-markdown-links';
    import { getPrCache } from './pr';
    import type {
      BranchProtection,
      CombinedBranchStatus,
      Comment,
      GhAutomergeResponse,