UNPKG

changesets-gitlab

Version:

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/un-ts/changesets-gitlab/ci.yml?branch=main)](https://github.com/un-ts/changesets-gitlab/actions/workflows/ci.yml?query=branch%3Amain) [![CodeRabbit Pull Request Revie

39 lines (38 loc) 1.21 kB
export interface MainCommandOptions { published?: string; onlyChangesets?: string; } export type LooseString<T extends string> = T | (string & {}); export type Env = GitLabCIPredefinedVariables & MergeRequestVariables & { GITLAB_HOST: string; GITLAB_TOKEN: string; GITLAB_TOKEN_TYPE: LooseString<'job' | 'oauth'>; GITLAB_CI_USER_NAME?: string; GITLAB_CI_USER_EMAIL: string; GITLAB_COMMENT_TYPE: LooseString<'discussion' | 'note'>; GITLAB_COMMENT_DISCUSSION_AUTO_RESOLVE?: LooseString<'1' | 'true'>; GITLAB_ADD_CHANGESET_MESSAGE?: string; DEBUG_GITLAB_CREDENTIAL?: LooseString<'1' | 'true'>; GITLAB_COMMENT_CUSTOM_LINKS?: string; HOME: string; NPM_TOKEN?: string; }; type MergeRequestVariables = { CI_MERGE_REQUEST_SOURCE_BRANCH_NAME: undefined; } | { CI_MERGE_REQUEST_IID: number; CI_MERGE_REQUEST_PROJECT_URL: string; CI_MERGE_REQUEST_SOURCE_BRANCH_NAME: string; CI_MERGE_REQUEST_SOURCE_BRANCH_SHA: string; CI_MERGE_REQUEST_TITLE: string; }; type GitLabCIPredefinedVariables = { GITLAB_USER_NAME: string; } & ({ CI: undefined; } | { CI: 'true'; CI_PROJECT_PATH: string; CI_SERVER_URL: string; }); export {};