mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +00:00
09d2da2f1b
As part of follow-up changes, we're looking to tighten the way that Renovate handles outgoing HTTP traffic. Before we do this, we can introduce a new config option, `hostRules[].allowInternal`, that allows a self-hosted administrator to mark an internal host as "trusted" for access. This wires in the new global-only config option, `allowInternal`, which implies a new internal field `internalHostGrant`. We'll add full documentation in a future commit, when the full enforcement is in place, as there are some wider changes to enforce it fully. Co-authored-by: Claude Fable 5 <jamie.tanna+claude-code@mend.io> Co-authored-by: Claude Opus 5 <jamie.tanna+claude-code@mend.io>
55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
export type {
|
|
MergeStrategy,
|
|
RenovateSplit,
|
|
UpdateType,
|
|
ValidationMessage,
|
|
} from '../config/types.ts';
|
|
export type { BunyanRecord } from '../logger/types.ts';
|
|
export type {
|
|
BranchCache,
|
|
BranchUpgradeCache,
|
|
} from '../util/cache/repository/types.ts';
|
|
export type {
|
|
ProcessResult,
|
|
ProcessStatus,
|
|
RepositoryResult,
|
|
} from '../workers/repository/result.ts';
|
|
export type { BranchResult, PrBlockedBy } from '../workers/types.ts';
|
|
export type { ModuleApi, RenovatePackageJson } from './base.ts';
|
|
export type { BranchStatus } from './branch-status.ts';
|
|
export type { CommitMessageJSON } from './commit-message-json.ts';
|
|
export type {
|
|
CombinedHostRule,
|
|
HostRule,
|
|
InternalHostGrant,
|
|
} from './host-rules.ts';
|
|
export type { PrState } from './pr-state.ts';
|
|
export type { SkipReason, StageName } from './skip-reason.ts';
|
|
export type { RangeStrategy } from './versioning.ts';
|
|
|
|
export type AutoMergeType = 'branch' | 'pr' | 'pr-comment';
|
|
|
|
type Val = NonNullable<unknown>;
|
|
|
|
/**
|
|
* A type that can be null or undefined.
|
|
*
|
|
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#nullish-coalescing
|
|
*/
|
|
export type Nullish<T extends Val> = T | null | undefined;
|
|
|
|
export type MaybePromise<T> = T | Promise<T>;
|
|
|
|
/**
|
|
* The Extends utility type ensures that U is a subset of T (typically a union).
|
|
* This helps ensure that we get a typescript error should anything ever be removed
|
|
* from T but still remain in U.
|
|
*
|
|
* @example
|
|
* type MyType = Extends<AutoMergeType, 'pr' | 'branch'>; // works
|
|
*
|
|
* @example
|
|
* type IsBroken = Extends<AutoMergeType, 'pr' | 'branch' | 'oh-no' >; // This will give a typescript error
|
|
*/
|
|
export type Extends<T, U extends T> = U;
|