projen 0.71.13 → 0.71.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/package.json +3 -11
- package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +0 -129
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +0 -49
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +0 -89
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +0 -168
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +0 -122
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +0 -68
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +0 -171
- package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +0 -180
- package/lib/.types-compat/ts3.9/lib/build/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
- package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +0 -38
- package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +0 -154
- package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +0 -71
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +0 -144
- package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +0 -13
- package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +0 -132
- package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +0 -260
- package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/clobber.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/common.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/component.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +0 -160
- package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +0 -80
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +0 -103
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +0 -64
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/file.d.ts +0 -120
- package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +0 -247
- package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +0 -58
- package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +0 -177
- package/lib/.types-compat/ts3.9/lib/github/github.d.ts +0 -110
- package/lib/.types-compat/ts3.9/lib/github/index.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +0 -48
- package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +0 -8
- package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +0 -85
- package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +0 -119
- package/lib/.types-compat/ts3.9/lib/github/util.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +0 -169
- package/lib/.types-compat/ts3.9/lib/github/workflow-jobs.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +0 -1031
- package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +0 -108
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +0 -536
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +0 -11
- package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +0 -301
- package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/index.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/ini.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/inventory.d.ts +0 -94
- package/lib/.types-compat/ts3.9/lib/java/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +0 -141
- package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +0 -214
- package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +0 -174
- package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +0 -175
- package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +0 -10
- package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +0 -599
- package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +0 -616
- package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +0 -465
- package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +0 -40
- package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +0 -358
- package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +0 -403
- package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +0 -188
- package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +0 -75
- package/lib/.types-compat/ts3.9/lib/json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/license.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/logger.d.ts +0 -73
- package/lib/.types-compat/ts3.9/lib/logging.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/makefile.d.ts +0 -77
- package/lib/.types-compat/ts3.9/lib/object-file.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/project-build.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/project.d.ts +0 -374
- package/lib/.types-compat/ts3.9/lib/projects.d.ts +0 -63
- package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/python/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +0 -183
- package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +0 -30
- package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +0 -62
- package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +0 -190
- package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +0 -70
- package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/readme.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +0 -72
- package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +0 -533
- package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +0 -97
- package/lib/.types-compat/ts3.9/lib/release/release.d.ts +0 -338
- package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/semver.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +0 -156
- package/lib/.types-compat/ts3.9/lib/source-code.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/task-model.d.ts +0 -151
- package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/task.d.ts +0 -136
- package/lib/.types-compat/ts3.9/lib/tasks.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/testing.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/textfile.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/toml.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +0 -42
- package/lib/.types-compat/ts3.9/lib/util.d.ts +0 -131
- package/lib/.types-compat/ts3.9/lib/version.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +0 -86
- package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +0 -90
- package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/web/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/web/next.d.ts +0 -100
- package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/web/react.d.ts +0 -105
- package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/yaml.d.ts +0 -25
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
export interface AutoMergeOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Number of approved code reviews.
|
|
6
|
-
* @default 1
|
|
7
|
-
*/
|
|
8
|
-
readonly approvedReviews?: number;
|
|
9
|
-
/**
|
|
10
|
-
* List of labels that will prevent auto-merging.
|
|
11
|
-
* @default ['do-not-merge']
|
|
12
|
-
*/
|
|
13
|
-
readonly blockingLabels?: string[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Sets up mergify to merging approved pull requests.
|
|
17
|
-
*
|
|
18
|
-
* If `buildJob` is specified, the specified GitHub workflow job ID is required
|
|
19
|
-
* to succeed in order for the PR to be merged.
|
|
20
|
-
*
|
|
21
|
-
* `approvedReviews` specified the number of code review approvals required for
|
|
22
|
-
* the PR to be merged.
|
|
23
|
-
*/
|
|
24
|
-
export declare class AutoMerge extends Component {
|
|
25
|
-
private readonly lazyConditions;
|
|
26
|
-
constructor(github: GitHub, options?: AutoMergeOptions);
|
|
27
|
-
/**
|
|
28
|
-
* Adds conditions to the auto merge rule.
|
|
29
|
-
* @param conditions The conditions to add (mergify syntax)
|
|
30
|
-
*/
|
|
31
|
-
addConditions(...conditions: string[]): void;
|
|
32
|
-
/**
|
|
33
|
-
* Adds conditions that will be rendered only during synthesis.
|
|
34
|
-
* @param later The later
|
|
35
|
-
*/
|
|
36
|
-
addConditionsLater(later: IAddConditionsLater): void;
|
|
37
|
-
private renderConditions;
|
|
38
|
-
}
|
|
39
|
-
export interface IAddConditionsLater {
|
|
40
|
-
render(): string[];
|
|
41
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { GitIdentity } from ".";
|
|
2
|
-
/**
|
|
3
|
-
* Name of the artifact produced by the build job. Its contains the entire
|
|
4
|
-
* working directory.
|
|
5
|
-
*/
|
|
6
|
-
export declare const BUILD_ARTIFACT_NAME = "build-artifact";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the github-actions user.
|
|
9
|
-
*
|
|
10
|
-
* Use this when you need to perform a commit as part of your workflow.
|
|
11
|
-
*/
|
|
12
|
-
export declare const DEFAULT_GITHUB_ACTIONS_USER: GitIdentity;
|
|
13
|
-
/**
|
|
14
|
-
* Name of the permission back up file to include in the build artifact
|
|
15
|
-
* to work around a GitHub Action bug that does not preserve file mode
|
|
16
|
-
* permissions across upload and download actions.
|
|
17
|
-
*
|
|
18
|
-
* See {@link https://github.com/actions/upload-artifact/issues/38}
|
|
19
|
-
*/
|
|
20
|
-
export declare const PERMISSION_BACKUP_FILE = "permissions-backup.acl";
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
export interface DependabotOptions {
|
|
4
|
-
/**
|
|
5
|
-
* How often to check for new versions and raise pull requests.
|
|
6
|
-
*
|
|
7
|
-
* @default ScheduleInterval.DAILY
|
|
8
|
-
*/
|
|
9
|
-
readonly scheduleInterval?: DependabotScheduleInterval;
|
|
10
|
-
/**
|
|
11
|
-
* The strategy to use when edits manifest and lock files.
|
|
12
|
-
*
|
|
13
|
-
* @default VersioningStrategy.LOCKFILE_ONLY The default is to only update the
|
|
14
|
-
* lock file because package.json is controlled by projen and any outside
|
|
15
|
-
* updates will fail the build.
|
|
16
|
-
*/
|
|
17
|
-
readonly versioningStrategy?: VersioningStrategy;
|
|
18
|
-
/**
|
|
19
|
-
* You can use the `ignore` option to customize which dependencies are updated.
|
|
20
|
-
* The ignore option supports the following options.
|
|
21
|
-
* @default []
|
|
22
|
-
*/
|
|
23
|
-
readonly ignore?: DependabotIgnore[];
|
|
24
|
-
/**
|
|
25
|
-
* Ignores updates to `projen`.
|
|
26
|
-
*
|
|
27
|
-
* This is required since projen updates may cause changes in committed files
|
|
28
|
-
* and anti-tamper checks will fail.
|
|
29
|
-
*
|
|
30
|
-
* Projen upgrades are covered through the `ProjenUpgrade` class.
|
|
31
|
-
*
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
|
-
readonly ignoreProjen?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* List of labels to apply to the created PR's.
|
|
37
|
-
*/
|
|
38
|
-
readonly labels?: string[];
|
|
39
|
-
/**
|
|
40
|
-
* Map of package registries to use
|
|
41
|
-
* @default - use public registries
|
|
42
|
-
*/
|
|
43
|
-
readonly registries?: {
|
|
44
|
-
[name: string]: DependabotRegistry;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Use to add private registry support for dependabot
|
|
49
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#configuration-options-for-private-registries
|
|
50
|
-
*/
|
|
51
|
-
export interface DependabotRegistry {
|
|
52
|
-
/**
|
|
53
|
-
* Registry type e.g. 'npm-registry' or 'docker-registry'
|
|
54
|
-
*/
|
|
55
|
-
readonly type: DependabotRegistryType;
|
|
56
|
-
/**
|
|
57
|
-
* Url for the registry e.g. 'https://npm.pkg.github.com' or 'registry.hub.docker.com'
|
|
58
|
-
*/
|
|
59
|
-
readonly url: string;
|
|
60
|
-
/**
|
|
61
|
-
* The username that Dependabot uses to access the registry
|
|
62
|
-
* @default - do not authenticate
|
|
63
|
-
*/
|
|
64
|
-
readonly username?: string;
|
|
65
|
-
/**
|
|
66
|
-
* A reference to a Dependabot secret containing the password for the specified user
|
|
67
|
-
* @default undefined
|
|
68
|
-
*/
|
|
69
|
-
readonly password?: string;
|
|
70
|
-
/**
|
|
71
|
-
* A reference to a Dependabot secret containing an access key for this registry
|
|
72
|
-
* @default undefined
|
|
73
|
-
*/
|
|
74
|
-
readonly key?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Secret token for dependabot access e.g. '${{ secrets.DEPENDABOT_PACKAGE_TOKEN }}'
|
|
77
|
-
* @default undefined
|
|
78
|
-
*/
|
|
79
|
-
readonly token?: string;
|
|
80
|
-
/**
|
|
81
|
-
* For registries with type: python-index, if the boolean value is true, pip
|
|
82
|
-
* esolves dependencies by using the specified URL rather than the base URL of
|
|
83
|
-
* the Python Package Index (by default https://pypi.org/simple)
|
|
84
|
-
* @default undefined
|
|
85
|
-
*/
|
|
86
|
-
readonly replacesBase?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Used with the hex-organization registry type.
|
|
89
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#hex-organization
|
|
90
|
-
* @default undefined
|
|
91
|
-
*/
|
|
92
|
-
readonly organization?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Each configuration type requires you to provide particular settings.
|
|
96
|
-
* Some types allow more than one way to connect
|
|
97
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#configuration-options-for-private-registries
|
|
98
|
-
*/
|
|
99
|
-
export declare enum DependabotRegistryType {
|
|
100
|
-
/**
|
|
101
|
-
* The composer-repository type supports username and password.
|
|
102
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#composer-repository
|
|
103
|
-
*/
|
|
104
|
-
COMPOSER_REGISTRY = "composer-registry",
|
|
105
|
-
/**
|
|
106
|
-
* The docker-registry type supports username and password.
|
|
107
|
-
* The docker-registry type can also be used to pull from Amazon ECR using static AWS credentials
|
|
108
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#docker-registry
|
|
109
|
-
*/
|
|
110
|
-
DOCKER_REGISTRY = "docker-registry",
|
|
111
|
-
/**
|
|
112
|
-
* The git type supports username and password
|
|
113
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#git
|
|
114
|
-
*/
|
|
115
|
-
GIT = "git",
|
|
116
|
-
/**
|
|
117
|
-
* The hex-organization type supports organization and key
|
|
118
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#hex-organization
|
|
119
|
-
*/
|
|
120
|
-
HEX_ORGANIZATION = "hex-organization",
|
|
121
|
-
/**
|
|
122
|
-
* The maven-repository type supports username and password, or token
|
|
123
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#maven-repository
|
|
124
|
-
*/
|
|
125
|
-
MAVEN_REPOSITORY = "maven-repository",
|
|
126
|
-
/**
|
|
127
|
-
* The npm-registry type supports username and password, or token
|
|
128
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#npm-registry
|
|
129
|
-
*/
|
|
130
|
-
NPM_REGISTRY = "npm-registry",
|
|
131
|
-
/**
|
|
132
|
-
* The nuget-feed type supports username and password, or token
|
|
133
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#nuget-feed
|
|
134
|
-
*/
|
|
135
|
-
NUGET_FEED = "nuget-feed",
|
|
136
|
-
/**
|
|
137
|
-
* The python-index type supports username and password, or token
|
|
138
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#python-index
|
|
139
|
-
*/
|
|
140
|
-
PYTHON_INDEX = "python-index",
|
|
141
|
-
/**
|
|
142
|
-
* The rubygems-server type supports username and password, or token
|
|
143
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#rubygems-server
|
|
144
|
-
*/
|
|
145
|
-
RUBYGEMS_SERVER = "rubygems-server",
|
|
146
|
-
/**
|
|
147
|
-
* The terraform-registry type supports a token
|
|
148
|
-
* @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#terraform-registry
|
|
149
|
-
*/
|
|
150
|
-
TERRAFORM_REGISTRY = "terraform-registry"
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* You can use the `ignore` option to customize which dependencies are updated.
|
|
154
|
-
* The ignore option supports the following options.
|
|
155
|
-
*/
|
|
156
|
-
export interface DependabotIgnore {
|
|
157
|
-
/**
|
|
158
|
-
* Use to ignore updates for dependencies with matching names, optionally
|
|
159
|
-
* using `*` to match zero or more characters.
|
|
160
|
-
*
|
|
161
|
-
* For Java dependencies, the format of the dependency-name attribute is:
|
|
162
|
-
* `groupId:artifactId`, for example: `org.kohsuke:github-api`.
|
|
163
|
-
*/
|
|
164
|
-
readonly dependencyName: string;
|
|
165
|
-
/**
|
|
166
|
-
* Use to ignore specific versions or ranges of versions. If you want to
|
|
167
|
-
* define a range, use the standard pattern for the package manager (for
|
|
168
|
-
* example: `^1.0.0` for npm, or `~> 2.0` for Bundler).
|
|
169
|
-
*/
|
|
170
|
-
readonly versions?: string[];
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* How often to check for new versions and raise pull requests for version
|
|
174
|
-
* updates.
|
|
175
|
-
*/
|
|
176
|
-
export declare enum DependabotScheduleInterval {
|
|
177
|
-
/**
|
|
178
|
-
* Runs on every weekday, Monday to Friday.
|
|
179
|
-
*/
|
|
180
|
-
DAILY = "daily",
|
|
181
|
-
/**
|
|
182
|
-
* Runs once each week. By default, this is on Monday.
|
|
183
|
-
*/
|
|
184
|
-
WEEKLY = "weekly",
|
|
185
|
-
/**
|
|
186
|
-
* Runs once each month. This is on the first day of the month.
|
|
187
|
-
*/
|
|
188
|
-
MONTHLY = "monthly"
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* The strategy to use when edits manifest and lock files.
|
|
192
|
-
*/
|
|
193
|
-
export declare enum VersioningStrategy {
|
|
194
|
-
/**
|
|
195
|
-
* Only create pull requests to update lockfiles updates. Ignore any new
|
|
196
|
-
* versions that would require package manifest changes.
|
|
197
|
-
*/
|
|
198
|
-
LOCKFILE_ONLY = "lockfile-only",
|
|
199
|
-
/**
|
|
200
|
-
* - For apps, the version requirements are increased.
|
|
201
|
-
* - For libraries, the range of versions is widened.
|
|
202
|
-
*/
|
|
203
|
-
AUTO = "auto",
|
|
204
|
-
/**
|
|
205
|
-
* Relax the version requirement to include both the new and old version, when
|
|
206
|
-
* possible.
|
|
207
|
-
*/
|
|
208
|
-
WIDEN = "widen",
|
|
209
|
-
/**
|
|
210
|
-
* Always increase the version requirement to match the new version.
|
|
211
|
-
*/
|
|
212
|
-
INCREASE = "increase",
|
|
213
|
-
/**
|
|
214
|
-
* Increase the version requirement only when required by the new version.
|
|
215
|
-
*/
|
|
216
|
-
INCREASE_IF_NECESSARY = "increase-if-necessary"
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Defines dependabot configuration for node projects.
|
|
220
|
-
*
|
|
221
|
-
* Since module versions are managed in projen, the versioning strategy will be
|
|
222
|
-
* configured to "lockfile-only" which means that only updates that can be done
|
|
223
|
-
* on the lockfile itself will be proposed.
|
|
224
|
-
*/
|
|
225
|
-
export declare class Dependabot extends Component {
|
|
226
|
-
/**
|
|
227
|
-
* The raw dependabot configuration.
|
|
228
|
-
* @see https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
229
|
-
*/
|
|
230
|
-
readonly config: any;
|
|
231
|
-
/**
|
|
232
|
-
* Whether or not projen is also upgraded in this config,
|
|
233
|
-
*/
|
|
234
|
-
readonly ignoresProjen: boolean;
|
|
235
|
-
private readonly ignore;
|
|
236
|
-
constructor(github: GitHub, options?: DependabotOptions);
|
|
237
|
-
/**
|
|
238
|
-
* Ignores a dependency from automatic updates.
|
|
239
|
-
*
|
|
240
|
-
* @param dependencyName Use to ignore updates for dependencies with matching
|
|
241
|
-
* names, optionally using `*` to match zero or more characters.
|
|
242
|
-
* @param versions Use to ignore specific versions or ranges of versions. If
|
|
243
|
-
* you want to define a range, use the standard pattern for the package
|
|
244
|
-
* manager (for example: `^1.0.0` for npm, or `~> 2.0` for Bundler).
|
|
245
|
-
*/
|
|
246
|
-
addIgnore(dependencyName: string, ...versions: string[]): void;
|
|
247
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { JobStep, AppPermissions } from "./workflows-model";
|
|
2
|
-
/**
|
|
3
|
-
* Options for `GithubCredentials.fromPersonalAccessToken`
|
|
4
|
-
*/
|
|
5
|
-
export interface GithubCredentialsPersonalAccessTokenOptions {
|
|
6
|
-
readonly secret?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Options for `GithubCredentials.fromApp`
|
|
10
|
-
*/
|
|
11
|
-
export interface GithubCredentialsAppOptions {
|
|
12
|
-
readonly appIdSecret?: string;
|
|
13
|
-
readonly privateKeySecret?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The permissions granted to the token.
|
|
16
|
-
*
|
|
17
|
-
* @default - all permissions granted to the app
|
|
18
|
-
*/
|
|
19
|
-
readonly permissions?: AppPermissions;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Represents a method of providing GitHub API access for projen workflows.
|
|
23
|
-
*/
|
|
24
|
-
export declare class GithubCredentials {
|
|
25
|
-
private readonly options;
|
|
26
|
-
/**
|
|
27
|
-
* Provide API access through a GitHub personal access token.
|
|
28
|
-
*
|
|
29
|
-
* The token must be added as a secret to the GitHub repo, and the name of the
|
|
30
|
-
* secret can be specified here.
|
|
31
|
-
*
|
|
32
|
-
* @see https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
|
|
33
|
-
* @default - a secret named "PROJEN_GITHUB_TOKEN"
|
|
34
|
-
*/
|
|
35
|
-
static fromPersonalAccessToken(options?: GithubCredentialsPersonalAccessTokenOptions): GithubCredentials;
|
|
36
|
-
/**
|
|
37
|
-
* Provide API access through a GitHub App.
|
|
38
|
-
*
|
|
39
|
-
* The GitHub App must be installed on the GitHub repo, its App ID and a
|
|
40
|
-
* private key must be added as secrets to the repo. The name of the secrets
|
|
41
|
-
* can be specified here.
|
|
42
|
-
*
|
|
43
|
-
* @see https://docs.github.com/en/developers/apps/building-github-apps/creating-a-github-app
|
|
44
|
-
* @see https://projen.io/github.html#github-app
|
|
45
|
-
* @default - app id stored in "PROJEN_APP_ID" and private key stored in "PROJEN_APP_PRIVATE_KEY" with all permissions attached to the app
|
|
46
|
-
*/
|
|
47
|
-
static fromApp(options?: GithubCredentialsAppOptions): GithubCredentials;
|
|
48
|
-
private constructor();
|
|
49
|
-
/**
|
|
50
|
-
* Setup steps to obtain GitHub credentials.
|
|
51
|
-
*/
|
|
52
|
-
get setupSteps(): JobStep[];
|
|
53
|
-
/**
|
|
54
|
-
* The value to use in a workflow when a GitHub token is expected. This
|
|
55
|
-
* typically looks like "${{ some.path.to.a.value }}".
|
|
56
|
-
*/
|
|
57
|
-
get tokenRef(): string;
|
|
58
|
-
}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { AutoApprove, AutoApproveOptions } from "./auto-approve";
|
|
2
|
-
import { AutoMergeOptions } from "./auto-merge";
|
|
3
|
-
import { GitHub, GitHubOptions } from "./github";
|
|
4
|
-
import { GithubCredentials } from "./github-credentials";
|
|
5
|
-
import { MergifyOptions } from "./mergify";
|
|
6
|
-
import { StaleOptions } from "./stale";
|
|
7
|
-
import { Gitpod } from "../gitpod";
|
|
8
|
-
import { Project, ProjectOptions, ProjectType } from "../project";
|
|
9
|
-
import { SampleReadmeProps } from "../readme";
|
|
10
|
-
import { DevContainer, VsCode } from "../vscode";
|
|
11
|
-
/**
|
|
12
|
-
* Options for `GitHubProject`.
|
|
13
|
-
*/
|
|
14
|
-
export interface GitHubProjectOptions extends ProjectOptions {
|
|
15
|
-
/**
|
|
16
|
-
* Add a Gitpod development environment
|
|
17
|
-
*
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
readonly gitpod?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Enable VSCode integration.
|
|
23
|
-
*
|
|
24
|
-
* Enabled by default for root projects. Disabled for non-root projects.
|
|
25
|
-
*
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
readonly vscode?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Enable GitHub integration.
|
|
31
|
-
*
|
|
32
|
-
* Enabled by default for root projects. Disabled for non-root projects.
|
|
33
|
-
*
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
readonly github?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Options for GitHub integration
|
|
39
|
-
*
|
|
40
|
-
* @default - see GitHubOptions
|
|
41
|
-
*/
|
|
42
|
-
readonly githubOptions?: GitHubOptions;
|
|
43
|
-
/**
|
|
44
|
-
* Whether mergify should be enabled on this repository or not.
|
|
45
|
-
*
|
|
46
|
-
* @default true
|
|
47
|
-
* @deprecated use `githubOptions.mergify` instead
|
|
48
|
-
*/
|
|
49
|
-
readonly mergify?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Options for mergify
|
|
52
|
-
*
|
|
53
|
-
* @default - default options
|
|
54
|
-
* @deprecated use `githubOptions.mergifyOptions` instead
|
|
55
|
-
*/
|
|
56
|
-
readonly mergifyOptions?: MergifyOptions;
|
|
57
|
-
/**
|
|
58
|
-
* Add a VSCode development environment (used for GitHub Codespaces)
|
|
59
|
-
*
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
readonly devContainer?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Add a `clobber` task which resets the repo to origin.
|
|
65
|
-
* @default - true, but false for subprojects
|
|
66
|
-
*/
|
|
67
|
-
readonly clobber?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* The README setup.
|
|
70
|
-
*
|
|
71
|
-
* @default - { filename: 'README.md', contents: '# replace this' }
|
|
72
|
-
* @example "{ filename: 'readme.md', contents: '# title' }"
|
|
73
|
-
*/
|
|
74
|
-
readonly readme?: SampleReadmeProps;
|
|
75
|
-
/**
|
|
76
|
-
* Which type of project this is (library/app).
|
|
77
|
-
* @default ProjectType.UNKNOWN
|
|
78
|
-
* @deprecated no longer supported at the base project level
|
|
79
|
-
*/
|
|
80
|
-
readonly projectType?: ProjectType;
|
|
81
|
-
/**
|
|
82
|
-
* Enable and configure the 'auto approve' workflow.
|
|
83
|
-
* @default - auto approve is disabled
|
|
84
|
-
*/
|
|
85
|
-
readonly autoApproveOptions?: AutoApproveOptions;
|
|
86
|
-
/**
|
|
87
|
-
* Enable automatic merging on GitHub. Has no effect if `github.mergify`
|
|
88
|
-
* is set to false.
|
|
89
|
-
* @default true
|
|
90
|
-
*/
|
|
91
|
-
readonly autoMerge?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Configure options for automatic merging on GitHub. Has no effect if
|
|
94
|
-
* `github.mergify` or `autoMerge` is set to false.
|
|
95
|
-
*
|
|
96
|
-
* @default - see defaults in `AutoMergeOptions`
|
|
97
|
-
*/
|
|
98
|
-
readonly autoMergeOptions?: AutoMergeOptions;
|
|
99
|
-
/**
|
|
100
|
-
* Auto-close stale issues and pull requests. To disable set `stale` to `false`.
|
|
101
|
-
*
|
|
102
|
-
* @default - see defaults in `StaleOptions`
|
|
103
|
-
*/
|
|
104
|
-
readonly staleOptions?: StaleOptions;
|
|
105
|
-
/**
|
|
106
|
-
* Auto-close of stale issues and pull request. See `staleOptions` for options.
|
|
107
|
-
*
|
|
108
|
-
* @default false
|
|
109
|
-
*/
|
|
110
|
-
readonly stale?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Choose a method of providing GitHub API access for projen workflows.
|
|
113
|
-
*
|
|
114
|
-
* @default - use a personal access token named PROJEN_GITHUB_TOKEN
|
|
115
|
-
*/
|
|
116
|
-
readonly projenCredentials?: GithubCredentials;
|
|
117
|
-
/**
|
|
118
|
-
* The name of a secret which includes a GitHub Personal Access Token to be
|
|
119
|
-
* used by projen workflows. This token needs to have the `repo`, `workflows`
|
|
120
|
-
* and `packages` scope.
|
|
121
|
-
*
|
|
122
|
-
* @default "PROJEN_GITHUB_TOKEN"
|
|
123
|
-
* @deprecated use `projenCredentials`
|
|
124
|
-
*/
|
|
125
|
-
readonly projenTokenSecret?: string;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* GitHub-based project.
|
|
129
|
-
*
|
|
130
|
-
* @deprecated This is a *temporary* class. At the moment, our base project
|
|
131
|
-
* types such as `NodeProject` and `JavaProject` are derived from this, but we
|
|
132
|
-
* want to be able to use these project types outside of GitHub as well. One of
|
|
133
|
-
* the next steps to address this is to abstract workflows so that different
|
|
134
|
-
* "engines" can be used to implement our CI/CD solutions.
|
|
135
|
-
*/
|
|
136
|
-
export declare class GitHubProject extends Project {
|
|
137
|
-
/**
|
|
138
|
-
* Access all github components.
|
|
139
|
-
*
|
|
140
|
-
* This will be `undefined` for subprojects.
|
|
141
|
-
*/
|
|
142
|
-
readonly github: GitHub | undefined;
|
|
143
|
-
/**
|
|
144
|
-
* Access all VSCode components.
|
|
145
|
-
*
|
|
146
|
-
* This will be `undefined` for subprojects.
|
|
147
|
-
*/
|
|
148
|
-
readonly vscode: VsCode | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* Access for Gitpod
|
|
151
|
-
*
|
|
152
|
-
* This will be `undefined` if gitpod boolean is false
|
|
153
|
-
*/
|
|
154
|
-
readonly gitpod: Gitpod | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* Access for .devcontainer.json (used for GitHub Codespaces)
|
|
157
|
-
*
|
|
158
|
-
* This will be `undefined` if devContainer boolean is false
|
|
159
|
-
*/
|
|
160
|
-
readonly devContainer: DevContainer | undefined;
|
|
161
|
-
readonly projectType: ProjectType;
|
|
162
|
-
/**
|
|
163
|
-
* Auto approve set up for this project.
|
|
164
|
-
*/
|
|
165
|
-
readonly autoApprove?: AutoApprove;
|
|
166
|
-
constructor(options: GitHubProjectOptions);
|
|
167
|
-
/**
|
|
168
|
-
* Marks the provided file(s) as being generated. This is achieved using the
|
|
169
|
-
* github-linguist attributes. Generated files do not count against the
|
|
170
|
-
* repository statistics and language breakdown.
|
|
171
|
-
*
|
|
172
|
-
* @param glob the glob pattern to match (could be a file path).
|
|
173
|
-
*
|
|
174
|
-
* @see https://github.com/github/linguist/blob/master/docs/overrides.md
|
|
175
|
-
*/
|
|
176
|
-
annotateGenerated(glob: string): void;
|
|
177
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { GitHubActionsProvider } from "./actions-provider";
|
|
2
|
-
import { Dependabot, DependabotOptions } from "./dependabot";
|
|
3
|
-
import { GithubCredentials } from "./github-credentials";
|
|
4
|
-
import { Mergify, MergifyOptions } from "./mergify";
|
|
5
|
-
import { PullRequestTemplate } from "./pr-template";
|
|
6
|
-
import { PullRequestLintOptions } from "./pull-request-lint";
|
|
7
|
-
import { GithubWorkflow } from "./workflows";
|
|
8
|
-
import { Component } from "../component";
|
|
9
|
-
import { Project } from "../project";
|
|
10
|
-
export interface GitHubOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Whether mergify should be enabled on this repository or not.
|
|
13
|
-
*
|
|
14
|
-
* @default true
|
|
15
|
-
*/
|
|
16
|
-
readonly mergify?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Options for Mergify.
|
|
19
|
-
*
|
|
20
|
-
* @default - default options
|
|
21
|
-
*/
|
|
22
|
-
readonly mergifyOptions?: MergifyOptions;
|
|
23
|
-
/**
|
|
24
|
-
* Enables GitHub workflows. If this is set to `false`, workflows will not be created.
|
|
25
|
-
*
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
readonly workflows?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Add a workflow that performs basic checks for pull requests, like
|
|
31
|
-
* validating that PRs follow Conventional Commits.
|
|
32
|
-
*
|
|
33
|
-
* @default true
|
|
34
|
-
*/
|
|
35
|
-
readonly pullRequestLint?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Options for configuring a pull request linter.
|
|
38
|
-
*
|
|
39
|
-
* @default - see defaults in `PullRequestLintOptions`
|
|
40
|
-
*/
|
|
41
|
-
readonly pullRequestLintOptions?: PullRequestLintOptions;
|
|
42
|
-
/**
|
|
43
|
-
* Choose a method of providing GitHub API access for projen workflows.
|
|
44
|
-
*
|
|
45
|
-
* @default - use a personal access token named PROJEN_GITHUB_TOKEN
|
|
46
|
-
*/
|
|
47
|
-
readonly projenCredentials?: GithubCredentials;
|
|
48
|
-
/**
|
|
49
|
-
* The name of a secret which includes a GitHub Personal Access Token to be
|
|
50
|
-
* used by projen workflows. This token needs to have the `repo`, `workflows`
|
|
51
|
-
* and `packages` scope.
|
|
52
|
-
*
|
|
53
|
-
* @default "PROJEN_GITHUB_TOKEN"
|
|
54
|
-
* @deprecated - use `projenCredentials`
|
|
55
|
-
*/
|
|
56
|
-
readonly projenTokenSecret?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Download files in LFS in workflows
|
|
59
|
-
*
|
|
60
|
-
* @default true if the associated project has `lfsPatterns`, `false` otherwise
|
|
61
|
-
*/
|
|
62
|
-
readonly downloadLfs?: boolean;
|
|
63
|
-
}
|
|
64
|
-
export declare class GitHub extends Component {
|
|
65
|
-
/**
|
|
66
|
-
* Returns the `GitHub` component of a project or `undefined` if the project
|
|
67
|
-
* does not have a GitHub component.
|
|
68
|
-
*/
|
|
69
|
-
static of(project: Project): GitHub | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* The `Mergify` configured on this repository. This is `undefined` if Mergify
|
|
72
|
-
* was not enabled when creating the repository.
|
|
73
|
-
*/
|
|
74
|
-
readonly mergify?: Mergify;
|
|
75
|
-
/**
|
|
76
|
-
* Are workflows enabled?
|
|
77
|
-
*/
|
|
78
|
-
readonly workflowsEnabled: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* GitHub API authentication method used by projen workflows.
|
|
81
|
-
*/
|
|
82
|
-
readonly projenCredentials: GithubCredentials;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
*/
|
|
86
|
-
readonly actions: GitHubActionsProvider;
|
|
87
|
-
private readonly _downloadLfs?;
|
|
88
|
-
constructor(project: Project, options?: GitHubOptions);
|
|
89
|
-
/**
|
|
90
|
-
* All workflows.
|
|
91
|
-
*/
|
|
92
|
-
get workflows(): GithubWorkflow[];
|
|
93
|
-
/**
|
|
94
|
-
* Adds a workflow to the project.
|
|
95
|
-
* @param name Name of the workflow
|
|
96
|
-
* @returns a GithubWorkflow instance
|
|
97
|
-
*/
|
|
98
|
-
addWorkflow(name: string): GithubWorkflow;
|
|
99
|
-
addPullRequestTemplate(...content: string[]): PullRequestTemplate;
|
|
100
|
-
addDependabot(options?: DependabotOptions): Dependabot;
|
|
101
|
-
/**
|
|
102
|
-
* Finds a GitHub workflow by name. Returns `undefined` if the workflow cannot be found.
|
|
103
|
-
* @param name The name of the GitHub workflow
|
|
104
|
-
*/
|
|
105
|
-
tryFindWorkflow(name: string): undefined | GithubWorkflow;
|
|
106
|
-
/**
|
|
107
|
-
* Whether downloading from LFS is enabled for this GitHub project
|
|
108
|
-
*/
|
|
109
|
-
get downloadLfs(): boolean;
|
|
110
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from "./github";
|
|
2
|
-
export * from "./dependabot";
|
|
3
|
-
export * from "./workflows";
|
|
4
|
-
export * from "./actions-provider";
|
|
5
|
-
export * from "./mergify";
|
|
6
|
-
export * from "./pr-template";
|
|
7
|
-
export * from "./mergify";
|
|
8
|
-
export * from "./auto-merge";
|
|
9
|
-
export * from "./auto-approve";
|
|
10
|
-
export * from "./stale";
|
|
11
|
-
export * from "./pull-request-lint";
|
|
12
|
-
export * from "./github-credentials";
|
|
13
|
-
export * from "./workflow-actions";
|
|
14
|
-
export * from "./workflow-jobs";
|
|
15
|
-
export * from "./task-workflow";
|
|
16
|
-
export * from "./github-project";
|
|
17
|
-
export * as workflows from "./workflows-model";
|