13 lines
564 B
TypeScript
13 lines
564 B
TypeScript
export function getRepoId(): string | undefined {
|
|
return (
|
|
// https://docs.gitlab.com/ee/ci/variables/predefined_variables.html#variables-reference
|
|
process.env.CI_PROJECT_ID
|
|
// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
|
|
|| process.env.CIRCLE_PROJECT_REPONAME
|
|
// https://docs.drone.io/pipeline/environment/reference
|
|
|| process.env.DRONE_REPO
|
|
// https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables#default-environment-variables
|
|
|| process.env.GITHUB_REPOSITORY
|
|
);
|
|
}
|