Skip to content
Snippets Groups Projects
Select Git revision
  • 62d5d670bf24e077b3c3643707219493148e4fa3
  • main default protected
  • next
  • revert-31645-feat/rename-gradle-wrapper-validation-action
  • renovate/main-redis-5.x
  • fix/36615b-branch-reuse-no-cache
  • chore/punycode
  • fix/36615-branch-reuse-bug
  • refactor/pin-new-value
  • 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
  • fix/32307-global-extends-repositories
  • gh-readonly-queue/next/pr-35009-046ebf7cb84ab859f7fefceb5fa53a54ce9736f8
  • 41.34.1
  • 41.34.0
  • 41.33.0
  • 41.32.3
  • 41.32.2
  • 41.32.1
  • 41.32.0
  • 41.31.1
  • 41.31.0
  • 41.30.5
  • 41.30.4
  • 41.30.3
  • 41.30.2
  • 41.30.1
  • 41.30.0
  • 41.29.1
  • 41.29.0
  • 41.28.2
  • 41.28.1
  • 41.28.0
41 results

split.ts

Blame
  • index.ts 31.00 KiB
    import url, { URLSearchParams } from 'url';
    import delay from 'delay';
    
    import { RenovateConfig } from '../../config/common';
    import {
      REPOSITORY_CHANGED,
      REPOSITORY_DISABLED,
      REPOSITORY_NOT_FOUND,
    } from '../../constants/error-messages';
    import { PLATFORM_TYPE_BITBUCKET_SERVER } from '../../constants/platforms';
    import { PR_STATE_ALL, PR_STATE_OPEN } from '../../constants/pull-requests';
    import { logger } from '../../logger';
    import { BranchStatus } from '../../types';
    import * as hostRules from '../../util/host-rules';
    import { sanitize } from '../../util/sanitize';
    import { ensureTrailingSlash } from '../../util/url';
    import {
      BranchStatusConfig,
      CommitFilesConfig,
      CreatePRConfig,
      EnsureCommentConfig,
      EnsureIssueConfig,
      EnsureIssueResult,
      FindPRConfig,
      GotResponse,
      Issue,
      PlatformConfig,
      Pr,
      RepoConfig,
      RepoParams,
      VulnerabilityAlert,
    } from '../common';
    import GitStorage, { StatusResult } from '../git/storage';
    import { smartTruncate } from '../utils/pr-body';
    import { api } from './bb-got-wrapper';
    import * as utils from './utils';
    /*
     * Version: 5.3 (EOL Date: 15 Aug 2019)
     * See following docs for api information:
     * https://docs.atlassian.com/bitbucket-server/rest/5.3.0/bitbucket-rest.html
     * https://docs.atlassian.com/bitbucket-server/rest/5.3.0/bitbucket-build-rest.html
     *
     * See following page for uptodate supported versions
     * https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html#AtlassianSupportEndofLifePolicy-BitbucketServer
     */
    
    interface BbsConfig {
      baseBranch: string;
      bbUseDefaultReviewers: boolean;
      defaultBranch: string;
      fileList: any[];
      mergeMethod: string;
      owner: string;
      prList: Pr[];
      projectKey: string;
      repository: string;
      repositorySlug: string;
      storage: GitStorage;
    
      prVersions: Map<number, number>;
    
      username: string;
    }
    
    let config: BbsConfig = {} as any;
    
    const defaults: any = {
      hostType: PLATFORM_TYPE_BITBUCKET_SERVER,
    };