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,81 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
/**
|
|
4
|
-
* The Mergify conditional operators that can be used are: `or` and `and`.
|
|
5
|
-
* Note: The number of nested conditions is limited to 3.
|
|
6
|
-
* @see https://docs.mergify.io/conditions/#combining-conditions-with-operators
|
|
7
|
-
*/
|
|
8
|
-
export interface MergifyConditionalOperator {
|
|
9
|
-
readonly or?: MergifyCondition[];
|
|
10
|
-
readonly and?: MergifyCondition[];
|
|
11
|
-
}
|
|
12
|
-
export type MergifyCondition = string | MergifyConditionalOperator;
|
|
13
|
-
export interface MergifyRule {
|
|
14
|
-
/**
|
|
15
|
-
* The name of the rule. This is not used by the engine directly,
|
|
16
|
-
* but is used when reporting information about a rule.
|
|
17
|
-
*/
|
|
18
|
-
readonly name: string;
|
|
19
|
-
/**
|
|
20
|
-
* A list of Conditions string that must match against the
|
|
21
|
-
* pull request for the rule to be applied.
|
|
22
|
-
* @see https://docs.mergify.io/conditions/#conditions
|
|
23
|
-
*/
|
|
24
|
-
readonly conditions: MergifyCondition[];
|
|
25
|
-
/**
|
|
26
|
-
* A dictionary made of Actions that will be executed on the
|
|
27
|
-
* matching pull requests.
|
|
28
|
-
* @see https://docs.mergify.io/actions/#actions
|
|
29
|
-
*/
|
|
30
|
-
readonly actions: {
|
|
31
|
-
[action: string]: any;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export interface MergifyQueue {
|
|
35
|
-
/**
|
|
36
|
-
* The name of the queue.
|
|
37
|
-
*/
|
|
38
|
-
readonly name: string;
|
|
39
|
-
/**
|
|
40
|
-
* Merge method to use.
|
|
41
|
-
*
|
|
42
|
-
* Possible values are `merge`, `squash`, `rebase` or `fast-forward`.
|
|
43
|
-
* `fast-forward` is not supported on queues with `speculative_checks` > 1, `batch_size` > 1, or with `allow_inplace_checks` set to false.
|
|
44
|
-
*
|
|
45
|
-
* @default "merge"
|
|
46
|
-
*/
|
|
47
|
-
readonly mergeMethod?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Method to use to update the pull request with its base branch when the speculative check is done in-place.
|
|
50
|
-
*
|
|
51
|
-
* Possible values:
|
|
52
|
-
* - `merge` to merge the base branch into the pull request.
|
|
53
|
-
* - `rebase` to rebase the pull request against its base branch.
|
|
54
|
-
*
|
|
55
|
-
* Note that the `rebase` method has some drawbacks, see Mergify docs for details.
|
|
56
|
-
*
|
|
57
|
-
* @see https://docs.mergify.com/actions/queue/#queue-rules
|
|
58
|
-
*
|
|
59
|
-
* @default - `merge` for all merge methods except `fast-forward` where `rebase` is used
|
|
60
|
-
*/
|
|
61
|
-
readonly updateMethod?: string;
|
|
62
|
-
/**
|
|
63
|
-
* A list of Conditions string that must match against the
|
|
64
|
-
* pull request for the pull request to be added to the queue.
|
|
65
|
-
* @see https://docs.mergify.com/conditions/#conditions
|
|
66
|
-
*/
|
|
67
|
-
readonly conditions: MergifyCondition[];
|
|
68
|
-
}
|
|
69
|
-
export interface MergifyOptions {
|
|
70
|
-
readonly rules?: MergifyRule[];
|
|
71
|
-
readonly queues?: MergifyQueue[];
|
|
72
|
-
}
|
|
73
|
-
export declare class Mergify extends Component {
|
|
74
|
-
private readonly rules;
|
|
75
|
-
private readonly queues;
|
|
76
|
-
private yamlFile?;
|
|
77
|
-
constructor(github: GitHub, options?: MergifyOptions);
|
|
78
|
-
private createYamlFile;
|
|
79
|
-
addRule(rule: MergifyRule): void;
|
|
80
|
-
addQueue(queue: MergifyQueue): void;
|
|
81
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { TextFile } from "../textfile";
|
|
3
|
-
/**
|
|
4
|
-
* Options for `PullRequestTemplate`.
|
|
5
|
-
*/
|
|
6
|
-
export interface PullRequestTemplateOptions {
|
|
7
|
-
/**
|
|
8
|
-
* The contents of the template. You can use `addLine()` to add additional lines.
|
|
9
|
-
*
|
|
10
|
-
* @default - a standard default template will be created.
|
|
11
|
-
*/
|
|
12
|
-
readonly lines?: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Template for GitHub pull requests.
|
|
16
|
-
*/
|
|
17
|
-
export declare class PullRequestTemplate extends TextFile {
|
|
18
|
-
constructor(github: GitHub, options?: PullRequestTemplateOptions);
|
|
19
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { GitHub } from ".";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
/**
|
|
4
|
-
* Options for PullRequestLint
|
|
5
|
-
*/
|
|
6
|
-
export interface PullRequestLintOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Validate that pull request titles follow Conventional Commits.
|
|
9
|
-
*
|
|
10
|
-
* @default true
|
|
11
|
-
* @see https://www.conventionalcommits.org/
|
|
12
|
-
*/
|
|
13
|
-
readonly semanticTitle?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Options for validating the conventional commit title linter.
|
|
16
|
-
* @default - title must start with "feat", "fix", or "chore"
|
|
17
|
-
*/
|
|
18
|
-
readonly semanticTitleOptions?: SemanticTitleOptions;
|
|
19
|
-
/**
|
|
20
|
-
* Github Runner selection labels
|
|
21
|
-
* @default ["ubuntu-latest"]
|
|
22
|
-
*/
|
|
23
|
-
readonly runsOn?: string[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Options for linting that PR titles follow Conventional Commits.
|
|
27
|
-
* @see https://www.conventionalcommits.org/
|
|
28
|
-
*/
|
|
29
|
-
export interface SemanticTitleOptions {
|
|
30
|
-
/**
|
|
31
|
-
* Configure a list of commit types that are allowed.
|
|
32
|
-
* @default ["feat", "fix", "chore"]
|
|
33
|
-
*/
|
|
34
|
-
readonly types?: string[];
|
|
35
|
-
/**
|
|
36
|
-
* Configure that a scope must always be provided.
|
|
37
|
-
* e.g. feat(ui), fix(core)
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
readonly requireScope?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Configure validations to run on GitHub pull requests.
|
|
44
|
-
* Only generates a file if at least one linter is configured.
|
|
45
|
-
*/
|
|
46
|
-
export declare class PullRequestLint extends Component {
|
|
47
|
-
constructor(github: GitHub, options?: PullRequestLintOptions);
|
|
48
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StaleBehavior } from "./stale";
|
|
2
|
-
interface Options {
|
|
3
|
-
readonly stale: number;
|
|
4
|
-
readonly close: number;
|
|
5
|
-
readonly type: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function renderBehavior(behavior: StaleBehavior | undefined, opts: Options): Partial<StaleBehavior>;
|
|
8
|
-
export {};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { Component } from "../component";
|
|
3
|
-
/**
|
|
4
|
-
* Options for `Stale`.
|
|
5
|
-
*/
|
|
6
|
-
export interface StaleOptions {
|
|
7
|
-
/**
|
|
8
|
-
* How to handle stale pull requests.
|
|
9
|
-
*
|
|
10
|
-
* @default - By default, pull requests with no activity will be marked as
|
|
11
|
-
* stale after 14 days and closed within 2 days with relevant comments.
|
|
12
|
-
*/
|
|
13
|
-
readonly pullRequest?: StaleBehavior;
|
|
14
|
-
/**
|
|
15
|
-
* How to handle stale issues.
|
|
16
|
-
*
|
|
17
|
-
* @default - By default, stale issues with no activity will be marked as
|
|
18
|
-
* stale after 60 days and closed within 7 days.
|
|
19
|
-
*/
|
|
20
|
-
readonly issues?: StaleBehavior;
|
|
21
|
-
/**
|
|
22
|
-
* Github Runner selection labels
|
|
23
|
-
* @default ["ubuntu-latest"]
|
|
24
|
-
*/
|
|
25
|
-
readonly runsOn?: string[];
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Stale behavior.
|
|
29
|
-
*/
|
|
30
|
-
export interface StaleBehavior {
|
|
31
|
-
/**
|
|
32
|
-
* Determines if this behavior is enabled.
|
|
33
|
-
*
|
|
34
|
-
* Same as setting `daysBeforeStale` and `daysBeforeClose` to `-1`.
|
|
35
|
-
*
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
readonly enabled?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* How many days until the issue or pull request is marked as "Stale". Set to -1 to disable.
|
|
41
|
-
* @default -
|
|
42
|
-
*/
|
|
43
|
-
readonly daysBeforeStale?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Days until the issue/PR is closed after it is marked as "Stale". Set to -1 to disable.
|
|
46
|
-
* @default -
|
|
47
|
-
*/
|
|
48
|
-
readonly daysBeforeClose?: number;
|
|
49
|
-
/**
|
|
50
|
-
* The comment to add to the issue/PR when it becomes stale.
|
|
51
|
-
* @default "This pull request is now marked as stale because hasn\'t seen activity for a while. Add a comment or it will be closed soon."
|
|
52
|
-
*/
|
|
53
|
-
readonly staleMessage?: string;
|
|
54
|
-
/**
|
|
55
|
-
* The comment to add to the issue/PR when it's closed
|
|
56
|
-
*
|
|
57
|
-
* @default "Closing this pull request as it hasn\'t seen activity for a while. Please add a comment @mentioning a maintainer when you are ready to continue."
|
|
58
|
-
*/
|
|
59
|
-
readonly closeMessage?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The label to apply to the issue/PR when it becomes stale.
|
|
62
|
-
* @default "stale"
|
|
63
|
-
*/
|
|
64
|
-
readonly staleLabel?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Label which exempt an issue/PR from becoming stale. Set to `[]` to disable.
|
|
67
|
-
*
|
|
68
|
-
* @default - ["backlog"]
|
|
69
|
-
*/
|
|
70
|
-
readonly exemptLabels?: string[];
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
74
|
-
*
|
|
75
|
-
* The default configuration will:
|
|
76
|
-
*
|
|
77
|
-
* * Add a "Stale" label to pull requests after 14 days and closed after 2 days
|
|
78
|
-
* * Add a "Stale" label to issues after 60 days and closed after 7 days
|
|
79
|
-
* * If a comment is added, the label will be removed and timer is restarted.
|
|
80
|
-
*
|
|
81
|
-
* @see https://github.com/actions/stale
|
|
82
|
-
*/
|
|
83
|
-
export declare class Stale extends Component {
|
|
84
|
-
constructor(github: GitHub, options?: StaleOptions);
|
|
85
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { GitHub } from "./github";
|
|
2
|
-
import { GithubWorkflow } from "./workflows";
|
|
3
|
-
import { ContainerOptions, JobPermissions, JobStep, JobStepOutput, Triggers } from "./workflows-model";
|
|
4
|
-
import { Task } from "../task";
|
|
5
|
-
export interface TaskWorkflowOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The workflow name.
|
|
8
|
-
*/
|
|
9
|
-
readonly name: string;
|
|
10
|
-
/**
|
|
11
|
-
* The primary job id.
|
|
12
|
-
* @default "build"
|
|
13
|
-
*/
|
|
14
|
-
readonly jobId?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @default - default image
|
|
17
|
-
*/
|
|
18
|
-
readonly container?: ContainerOptions;
|
|
19
|
-
/**
|
|
20
|
-
* Adds an 'if' condition to the workflow.
|
|
21
|
-
*/
|
|
22
|
-
readonly condition?: string;
|
|
23
|
-
/**
|
|
24
|
-
* A directory name which contains artifacts to be uploaded (e.g. `dist`).
|
|
25
|
-
* If this is set, the contents of this directory will be uploaded as an
|
|
26
|
-
* artifact at the end of the workflow run, even if other steps fail.
|
|
27
|
-
*
|
|
28
|
-
* @default - not set
|
|
29
|
-
*/
|
|
30
|
-
readonly artifactsDirectory?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The triggers for the workflow.
|
|
33
|
-
*
|
|
34
|
-
* @default - by default workflows can only be triggered by manually.
|
|
35
|
-
*/
|
|
36
|
-
readonly triggers?: Triggers;
|
|
37
|
-
/**
|
|
38
|
-
* Initial steps to run before the source code checkout.
|
|
39
|
-
*
|
|
40
|
-
* @default - not set
|
|
41
|
-
*/
|
|
42
|
-
readonly preCheckoutSteps?: JobStep[];
|
|
43
|
-
/**
|
|
44
|
-
* Override for the `with` property of the source code checkout step.
|
|
45
|
-
*
|
|
46
|
-
* @default - not set
|
|
47
|
-
*/
|
|
48
|
-
readonly checkoutWith?: Record<string, any>;
|
|
49
|
-
/**
|
|
50
|
-
* Steps to run before the main build step.
|
|
51
|
-
*
|
|
52
|
-
* @default - not set
|
|
53
|
-
*/
|
|
54
|
-
readonly preBuildSteps?: JobStep[];
|
|
55
|
-
/**
|
|
56
|
-
* The main task to be executed.
|
|
57
|
-
*/
|
|
58
|
-
readonly task: Task;
|
|
59
|
-
/**
|
|
60
|
-
* Actions to run after the main build step.
|
|
61
|
-
*
|
|
62
|
-
* @default - not set
|
|
63
|
-
*/
|
|
64
|
-
readonly postBuildSteps?: JobStep[];
|
|
65
|
-
/**
|
|
66
|
-
* Workflow environment variables.
|
|
67
|
-
* @default {}
|
|
68
|
-
*/
|
|
69
|
-
readonly env?: Record<string, string>;
|
|
70
|
-
/**
|
|
71
|
-
* Permissions for the build job.
|
|
72
|
-
*/
|
|
73
|
-
readonly permissions: JobPermissions;
|
|
74
|
-
/**
|
|
75
|
-
* Mapping of job output names to values/expressions.
|
|
76
|
-
*
|
|
77
|
-
* @default {}
|
|
78
|
-
*/
|
|
79
|
-
readonly outputs?: {
|
|
80
|
-
[name: string]: JobStepOutput;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* The git identity to use in this workflow.
|
|
84
|
-
*/
|
|
85
|
-
readonly gitIdentity?: GitIdentity;
|
|
86
|
-
/**
|
|
87
|
-
* Github Runner selection labels
|
|
88
|
-
* @default ["ubuntu-latest"]
|
|
89
|
-
*/
|
|
90
|
-
readonly runsOn?: string[];
|
|
91
|
-
/**
|
|
92
|
-
* Whether to download files from Git LFS for this workflow
|
|
93
|
-
*
|
|
94
|
-
* @default - Use the setting on the corresponding GitHub project
|
|
95
|
-
*/
|
|
96
|
-
readonly downloadLfs?: boolean;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* A GitHub workflow for common build tasks within a project.
|
|
100
|
-
*/
|
|
101
|
-
export declare class TaskWorkflow extends GithubWorkflow {
|
|
102
|
-
private readonly github;
|
|
103
|
-
readonly jobId: string;
|
|
104
|
-
readonly artifactsDirectory?: string;
|
|
105
|
-
constructor(github: GitHub, options: TaskWorkflowOptions);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Represents the git identity.
|
|
109
|
-
*/
|
|
110
|
-
export interface GitIdentity {
|
|
111
|
-
/**
|
|
112
|
-
* The name of the user.
|
|
113
|
-
*/
|
|
114
|
-
readonly name: string;
|
|
115
|
-
/**
|
|
116
|
-
* The email address of the git user.
|
|
117
|
-
*/
|
|
118
|
-
readonly email: string;
|
|
119
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function secretToString(secretName: string): string;
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { GitIdentity, GithubCredentials } from ".";
|
|
2
|
-
import { JobStep } from "./workflows-model";
|
|
3
|
-
/**
|
|
4
|
-
* A set of utility functions for creating GitHub actions in workflows.
|
|
5
|
-
*/
|
|
6
|
-
export declare class WorkflowActions {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a .patch file from the current git diff and uploads it as an
|
|
9
|
-
* artifact. Use `checkoutWithPatch` to download and apply in another job.
|
|
10
|
-
*
|
|
11
|
-
* If a patch was uploaded, the action can optionally fail the job.
|
|
12
|
-
*
|
|
13
|
-
* @param options Options
|
|
14
|
-
* @returns Job steps
|
|
15
|
-
*/
|
|
16
|
-
static uploadGitPatch(options: UploadGitPatchOptions): JobStep[];
|
|
17
|
-
/**
|
|
18
|
-
* Checks out a repository and applies a git patch that was created using
|
|
19
|
-
* `uploadGitPatch`.
|
|
20
|
-
*
|
|
21
|
-
* @param options Options
|
|
22
|
-
* @returns Job steps
|
|
23
|
-
*/
|
|
24
|
-
static checkoutWithPatch(options?: CheckoutWithPatchOptions): JobStep[];
|
|
25
|
-
/**
|
|
26
|
-
* Configures the git identity (user name and email).
|
|
27
|
-
* @param id The identity to use
|
|
28
|
-
* @returns Job steps
|
|
29
|
-
*/
|
|
30
|
-
static setupGitIdentity(id: GitIdentity): JobStep[];
|
|
31
|
-
/**
|
|
32
|
-
* A step that creates a pull request based on the current repo state.
|
|
33
|
-
*
|
|
34
|
-
* @param options Options
|
|
35
|
-
* @returns Job steps
|
|
36
|
-
*/
|
|
37
|
-
static createPullRequest(options: CreatePullRequestOptions): JobStep[];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Options for `checkoutWithPatch`.
|
|
41
|
-
*/
|
|
42
|
-
export interface CheckoutWithPatchOptions {
|
|
43
|
-
/**
|
|
44
|
-
* The name of the artifact the patch is stored as.
|
|
45
|
-
* @default ".repo.patch"
|
|
46
|
-
*/
|
|
47
|
-
readonly patchFile?: string;
|
|
48
|
-
/**
|
|
49
|
-
* A GitHub token to use when checking out the repository.
|
|
50
|
-
*
|
|
51
|
-
* If the intent is to push changes back to the branch, then you must use a
|
|
52
|
-
* PAT with `repo` (and possibly `workflows`) permissions.
|
|
53
|
-
* @default - the default GITHUB_TOKEN is implicitly used
|
|
54
|
-
*/
|
|
55
|
-
readonly token?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Branch or tag name.
|
|
58
|
-
* @default - the default branch is implicitly used
|
|
59
|
-
*/
|
|
60
|
-
readonly ref?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The repository (owner/repo) to use.
|
|
63
|
-
* @default - the default repository is implicitly used
|
|
64
|
-
*/
|
|
65
|
-
readonly repository?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Whether LFS is enabled for the GitHub repository
|
|
68
|
-
*
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
readonly lfs?: boolean;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Options for `uploadGitPatch`.
|
|
75
|
-
*/
|
|
76
|
-
export interface UploadGitPatchOptions {
|
|
77
|
-
/**
|
|
78
|
-
* The step ID which produces the output which indicates if a patch was created.
|
|
79
|
-
*/
|
|
80
|
-
readonly stepId: string;
|
|
81
|
-
/**
|
|
82
|
-
* The name of the step.
|
|
83
|
-
* @default "Find mutations"
|
|
84
|
-
*/
|
|
85
|
-
readonly stepName?: string;
|
|
86
|
-
/**
|
|
87
|
-
* The name of the artifact the patch is stored as.
|
|
88
|
-
* @default ".repo.patch"
|
|
89
|
-
*/
|
|
90
|
-
readonly patchFile?: string;
|
|
91
|
-
/**
|
|
92
|
-
* The name of the output to emit. It will be set to `true` if there was a diff.
|
|
93
|
-
*/
|
|
94
|
-
readonly outputName: string;
|
|
95
|
-
/**
|
|
96
|
-
* Fail if a mutation was found and print this error message.
|
|
97
|
-
* @default - do not fail upon mutation
|
|
98
|
-
*/
|
|
99
|
-
readonly mutationError?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface CreatePullRequestOptions {
|
|
102
|
-
/**
|
|
103
|
-
* The step ID which produces the output which indicates if a patch was created.
|
|
104
|
-
* @default "create_pr"
|
|
105
|
-
*/
|
|
106
|
-
readonly stepId?: string;
|
|
107
|
-
/**
|
|
108
|
-
* The name of the step displayed on GitHub.
|
|
109
|
-
* @default "Create Pull Request"
|
|
110
|
-
*/
|
|
111
|
-
readonly stepName?: string;
|
|
112
|
-
/**
|
|
113
|
-
* The job credentials used to create the pull request.
|
|
114
|
-
*
|
|
115
|
-
* Provided credentials must have permissions to create a pull request on the repository.
|
|
116
|
-
*/
|
|
117
|
-
readonly credentials?: GithubCredentials;
|
|
118
|
-
/**
|
|
119
|
-
* The name of the workflow that will create the PR
|
|
120
|
-
*/
|
|
121
|
-
readonly workflowName: string;
|
|
122
|
-
/**
|
|
123
|
-
* The full title used to create the pull request.
|
|
124
|
-
*
|
|
125
|
-
* If PR titles are validated in this repo, the title should comply with the respective rules.
|
|
126
|
-
*/
|
|
127
|
-
readonly pullRequestTitle: string;
|
|
128
|
-
/**
|
|
129
|
-
* Description added to the pull request.
|
|
130
|
-
*
|
|
131
|
-
* Providence information are automatically added.
|
|
132
|
-
*/
|
|
133
|
-
readonly pullRequestDescription: string;
|
|
134
|
-
/**
|
|
135
|
-
* Sets the pull request base branch.
|
|
136
|
-
*
|
|
137
|
-
* @default - The branch checked out in the workflow.
|
|
138
|
-
*/
|
|
139
|
-
readonly baseBranch?: string;
|
|
140
|
-
/**
|
|
141
|
-
* The pull request branch name.
|
|
142
|
-
*
|
|
143
|
-
* @default `github-actions/${options.workflowName}`
|
|
144
|
-
*/
|
|
145
|
-
readonly branchName?: string;
|
|
146
|
-
/**
|
|
147
|
-
* The git identity used to create the commit.
|
|
148
|
-
* @default - the default github-actions user
|
|
149
|
-
*/
|
|
150
|
-
readonly gitIdentity?: GitIdentity;
|
|
151
|
-
/**
|
|
152
|
-
* Add Signed-off-by line by the committer at the end of the commit log message.
|
|
153
|
-
*
|
|
154
|
-
* @default true
|
|
155
|
-
*/
|
|
156
|
-
readonly signoff?: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* Labels to apply on the PR.
|
|
159
|
-
*
|
|
160
|
-
* @default - no labels.
|
|
161
|
-
*/
|
|
162
|
-
readonly labels?: string[];
|
|
163
|
-
/**
|
|
164
|
-
* Assignees to add on the PR.
|
|
165
|
-
*
|
|
166
|
-
* @default - no assignees
|
|
167
|
-
*/
|
|
168
|
-
readonly assignees?: string[];
|
|
169
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CheckoutWithPatchOptions, CreatePullRequestOptions } from ".";
|
|
2
|
-
import { Job } from "./workflows-model";
|
|
3
|
-
/**
|
|
4
|
-
* A set of utility functions for creating jobs in GitHub Workflows.
|
|
5
|
-
*/
|
|
6
|
-
export declare class WorkflowJobs {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a pull request with the changes of a patch file.
|
|
9
|
-
*
|
|
10
|
-
* @returns Job
|
|
11
|
-
*/
|
|
12
|
-
static pullRequestFromPatch(options: PullRequestFromPatchOptions): Job;
|
|
13
|
-
}
|
|
14
|
-
export interface PullRequestPatchSource extends CheckoutWithPatchOptions {
|
|
15
|
-
/**
|
|
16
|
-
* The id of the job that created the patch file
|
|
17
|
-
*/
|
|
18
|
-
readonly jobId: string;
|
|
19
|
-
/**
|
|
20
|
-
* The name of the output that indicates if a patch has been created
|
|
21
|
-
*/
|
|
22
|
-
readonly outputName: string;
|
|
23
|
-
}
|
|
24
|
-
export interface PullRequestFromPatchOptions extends CreatePullRequestOptions {
|
|
25
|
-
/**
|
|
26
|
-
* Information about the patch that is used to create the pull request.
|
|
27
|
-
*/
|
|
28
|
-
readonly patch: PullRequestPatchSource;
|
|
29
|
-
/**
|
|
30
|
-
* The name of the job displayed on GitHub.
|
|
31
|
-
* @default "Create Pull Request"
|
|
32
|
-
*/
|
|
33
|
-
readonly jobName?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Github Runner selection labels
|
|
36
|
-
* @default ["ubuntu-latest"]
|
|
37
|
-
*/
|
|
38
|
-
readonly runsOn?: string[];
|
|
39
|
-
}
|