projen 0.70.2 → 0.70.4

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.
Files changed (321) hide show
  1. package/.jsii +108 -90
  2. package/docs/api/API.md +2 -0
  3. package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +2 -0
  4. package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +129 -0
  5. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +53 -0
  6. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +49 -0
  7. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +81 -0
  8. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +89 -0
  9. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +7 -0
  10. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +7 -0
  11. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +7 -0
  12. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +168 -0
  13. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +5 -0
  14. package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +122 -0
  15. package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +33 -0
  16. package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +14 -0
  17. package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +46 -0
  18. package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +20 -0
  19. package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +68 -0
  20. package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +171 -0
  21. package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +180 -0
  22. package/lib/.types-compat/ts3.9/lib/build/index.d.ts +1 -0
  23. package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
  24. package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +45 -0
  25. package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +38 -0
  26. package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +6 -0
  27. package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +5 -0
  28. package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +53 -0
  29. package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +4 -0
  30. package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +20 -0
  31. package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +153 -0
  32. package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +33 -0
  33. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +39 -0
  34. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +45 -0
  35. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +71 -0
  36. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +4 -0
  37. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +4 -0
  38. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +144 -0
  39. package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +7 -0
  40. package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +13 -0
  41. package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +26 -0
  42. package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +1 -0
  43. package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +132 -0
  44. package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +5 -0
  45. package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +3 -0
  46. package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +260 -0
  47. package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +2 -0
  48. package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +9 -0
  49. package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +1 -0
  50. package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +1 -0
  51. package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +19 -0
  52. package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +7 -0
  53. package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +19 -0
  54. package/lib/.types-compat/ts3.9/lib/clobber.d.ts +5 -0
  55. package/lib/.types-compat/ts3.9/lib/common.d.ts +5 -0
  56. package/lib/.types-compat/ts3.9/lib/component.d.ts +20 -0
  57. package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +160 -0
  58. package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +80 -0
  59. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +103 -0
  60. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +44 -0
  61. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +2 -0
  62. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +155 -0
  63. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +64 -0
  64. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +99 -0
  65. package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +5 -0
  66. package/lib/.types-compat/ts3.9/lib/file.d.ts +119 -0
  67. package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +26 -0
  68. package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +28 -0
  69. package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +44 -0
  70. package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +41 -0
  71. package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +20 -0
  72. package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +247 -0
  73. package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +58 -0
  74. package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +177 -0
  75. package/lib/.types-compat/ts3.9/lib/github/github.d.ts +110 -0
  76. package/lib/.types-compat/ts3.9/lib/github/index.d.ts +15 -0
  77. package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +81 -0
  78. package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +19 -0
  79. package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +48 -0
  80. package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +8 -0
  81. package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +85 -0
  82. package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +119 -0
  83. package/lib/.types-compat/ts3.9/lib/github/util.d.ts +1 -0
  84. package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +78 -0
  85. package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +1031 -0
  86. package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +108 -0
  87. package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +536 -0
  88. package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +170 -0
  89. package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +19 -0
  90. package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +4 -0
  91. package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +11 -0
  92. package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +301 -0
  93. package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +59 -0
  94. package/lib/.types-compat/ts3.9/lib/index.d.ts +51 -0
  95. package/lib/.types-compat/ts3.9/lib/ini.d.ts +15 -0
  96. package/lib/.types-compat/ts3.9/lib/inventory.d.ts +46 -0
  97. package/lib/.types-compat/ts3.9/lib/java/index.d.ts +7 -0
  98. package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +141 -0
  99. package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +29 -0
  100. package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +26 -0
  101. package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +34 -0
  102. package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +14 -0
  103. package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +214 -0
  104. package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +59 -0
  105. package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +174 -0
  106. package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +175 -0
  107. package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +10 -0
  108. package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +599 -0
  109. package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +605 -0
  110. package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +464 -0
  111. package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +40 -0
  112. package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +358 -0
  113. package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +18 -0
  114. package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +88 -0
  115. package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +403 -0
  116. package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +188 -0
  117. package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +21 -0
  118. package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +75 -0
  119. package/lib/.types-compat/ts3.9/lib/json.d.ts +27 -0
  120. package/lib/.types-compat/ts3.9/lib/license.d.ts +31 -0
  121. package/lib/.types-compat/ts3.9/lib/logger.d.ts +73 -0
  122. package/lib/.types-compat/ts3.9/lib/logging.d.ts +8 -0
  123. package/lib/.types-compat/ts3.9/lib/makefile.d.ts +77 -0
  124. package/lib/.types-compat/ts3.9/lib/object-file.d.ts +155 -0
  125. package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +18 -0
  126. package/lib/.types-compat/ts3.9/lib/project-build.d.ts +41 -0
  127. package/lib/.types-compat/ts3.9/lib/project.d.ts +374 -0
  128. package/lib/.types-compat/ts3.9/lib/projects.d.ts +63 -0
  129. package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +27 -0
  130. package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +18 -0
  131. package/lib/.types-compat/ts3.9/lib/python/index.d.ts +14 -0
  132. package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +32 -0
  133. package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +177 -0
  134. package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +32 -0
  135. package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +21 -0
  136. package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +24 -0
  137. package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +30 -0
  138. package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +6 -0
  139. package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +62 -0
  140. package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +190 -0
  141. package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +17 -0
  142. package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +29 -0
  143. package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +70 -0
  144. package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +15 -0
  145. package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +28 -0
  146. package/lib/.types-compat/ts3.9/lib/readme.d.ts +28 -0
  147. package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +72 -0
  148. package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +1 -0
  149. package/lib/.types-compat/ts3.9/lib/release/index.d.ts +3 -0
  150. package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +533 -0
  151. package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +97 -0
  152. package/lib/.types-compat/ts3.9/lib/release/release.d.ts +338 -0
  153. package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +1 -0
  154. package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +31 -0
  155. package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +1 -0
  156. package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +36 -0
  157. package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +1 -0
  158. package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +99 -0
  159. package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +1 -0
  160. package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +88 -0
  161. package/lib/.types-compat/ts3.9/lib/semver.d.ts +34 -0
  162. package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +156 -0
  163. package/lib/.types-compat/ts3.9/lib/source-code.d.ts +46 -0
  164. package/lib/.types-compat/ts3.9/lib/task-model.d.ts +130 -0
  165. package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +32 -0
  166. package/lib/.types-compat/ts3.9/lib/task.d.ts +129 -0
  167. package/lib/.types-compat/ts3.9/lib/tasks.d.ts +51 -0
  168. package/lib/.types-compat/ts3.9/lib/testing.d.ts +18 -0
  169. package/lib/.types-compat/ts3.9/lib/textfile.d.ts +33 -0
  170. package/lib/.types-compat/ts3.9/lib/toml.d.ts +15 -0
  171. package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +4 -0
  172. package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +43 -0
  173. package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +27 -0
  174. package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +7 -0
  175. package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +163 -0
  176. package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +43 -0
  177. package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +42 -0
  178. package/lib/.types-compat/ts3.9/lib/util.d.ts +131 -0
  179. package/lib/.types-compat/ts3.9/lib/version.d.ts +45 -0
  180. package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +86 -0
  181. package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +36 -0
  182. package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +5 -0
  183. package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +90 -0
  184. package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +24 -0
  185. package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +14 -0
  186. package/lib/.types-compat/ts3.9/lib/web/index.d.ts +4 -0
  187. package/lib/.types-compat/ts3.9/lib/web/next.d.ts +100 -0
  188. package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +28 -0
  189. package/lib/.types-compat/ts3.9/lib/web/react.d.ts +105 -0
  190. package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +21 -0
  191. package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +18 -0
  192. package/lib/.types-compat/ts3.9/lib/yaml.d.ts +25 -0
  193. package/lib/awscdk/auto-discover.js +5 -5
  194. package/lib/awscdk/awscdk-app-java.js +1 -1
  195. package/lib/awscdk/awscdk-app-py.js +1 -1
  196. package/lib/awscdk/awscdk-app-ts.js +1 -1
  197. package/lib/awscdk/awscdk-construct.js +2 -2
  198. package/lib/awscdk/awscdk-deps-java.js +1 -1
  199. package/lib/awscdk/awscdk-deps-js.js +1 -1
  200. package/lib/awscdk/awscdk-deps-py.js +1 -1
  201. package/lib/awscdk/awscdk-deps.js +1 -1
  202. package/lib/awscdk/cdk-config.js +1 -1
  203. package/lib/awscdk/cdk-tasks.js +1 -1
  204. package/lib/awscdk/integration-test.js +1 -1
  205. package/lib/awscdk/lambda-extension.js +1 -1
  206. package/lib/awscdk/lambda-function.js +2 -2
  207. package/lib/build/build-workflow.js +1 -1
  208. package/lib/cdk/auto-discover-base.js +2 -2
  209. package/lib/cdk/construct-lib.js +1 -1
  210. package/lib/cdk/integration-test-base.js +1 -1
  211. package/lib/cdk/jsii-docgen.js +1 -1
  212. package/lib/cdk/jsii-project.js +8 -5
  213. package/lib/cdk8s/auto-discover.js +2 -2
  214. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  215. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  216. package/lib/cdk8s/cdk8s-construct.js +1 -1
  217. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  218. package/lib/cdk8s/cdk8s-deps.js +1 -1
  219. package/lib/cdk8s/integration-test.js +1 -1
  220. package/lib/cdktf/cdktf-construct.js +1 -1
  221. package/lib/circleci/circleci.js +1 -1
  222. package/lib/cli/index.js +2 -18
  223. package/lib/component.js +1 -1
  224. package/lib/dependencies.js +1 -1
  225. package/lib/dev-env.js +1 -1
  226. package/lib/docker-compose/docker-compose-service.js +1 -1
  227. package/lib/docker-compose/docker-compose.js +1 -1
  228. package/lib/file.js +1 -1
  229. package/lib/gitattributes.js +1 -1
  230. package/lib/github/actions-provider.js +1 -1
  231. package/lib/github/auto-approve.js +1 -1
  232. package/lib/github/auto-merge.js +1 -1
  233. package/lib/github/dependabot.js +1 -1
  234. package/lib/github/github-credentials.js +1 -1
  235. package/lib/github/github-project.js +1 -1
  236. package/lib/github/github.js +1 -1
  237. package/lib/github/mergify.js +1 -1
  238. package/lib/github/pr-template.js +1 -1
  239. package/lib/github/pull-request-lint.js +1 -1
  240. package/lib/github/stale.js +1 -1
  241. package/lib/github/task-workflow.js +1 -1
  242. package/lib/github/workflows.js +1 -1
  243. package/lib/gitlab/configuration.js +1 -1
  244. package/lib/gitlab/gitlab-configuration.js +1 -1
  245. package/lib/gitlab/nested-configuration.js +1 -1
  246. package/lib/gitpod.js +1 -1
  247. package/lib/ignore-file.js +1 -1
  248. package/lib/ini.js +1 -1
  249. package/lib/java/java-project.js +1 -1
  250. package/lib/java/junit.js +1 -1
  251. package/lib/java/maven-compile.js +1 -1
  252. package/lib/java/maven-packaging.js +1 -1
  253. package/lib/java/maven-sample.js +1 -1
  254. package/lib/java/pom.js +1 -1
  255. package/lib/java/projenrc.js +1 -1
  256. package/lib/javascript/bundler.js +1 -1
  257. package/lib/javascript/eslint.js +1 -1
  258. package/lib/javascript/jest.js +4 -4
  259. package/lib/javascript/node-package.js +1 -1
  260. package/lib/javascript/node-project.js +1 -1
  261. package/lib/javascript/npm-config.js +1 -1
  262. package/lib/javascript/prettier.js +1 -1
  263. package/lib/javascript/projenrc.js +1 -1
  264. package/lib/javascript/typescript-config.js +1 -1
  265. package/lib/javascript/upgrade-dependencies.js +2 -2
  266. package/lib/json-patch.js +1 -1
  267. package/lib/json.js +1 -1
  268. package/lib/license.js +1 -1
  269. package/lib/logger.js +1 -1
  270. package/lib/makefile.js +1 -1
  271. package/lib/object-file.js +1 -1
  272. package/lib/project-build.js +1 -1
  273. package/lib/project.js +1 -1
  274. package/lib/projects.js +1 -1
  275. package/lib/projenrc-json.js +2 -2
  276. package/lib/projenrc.js +1 -1
  277. package/lib/python/pip.js +1 -1
  278. package/lib/python/poetry.js +2 -2
  279. package/lib/python/projenrc.js +1 -1
  280. package/lib/python/pytest-sample.js +1 -1
  281. package/lib/python/pytest.js +1 -1
  282. package/lib/python/python-project.js +1 -1
  283. package/lib/python/python-sample.js +1 -1
  284. package/lib/python/requirements-file.js +1 -1
  285. package/lib/python/setuppy.js +1 -1
  286. package/lib/python/setuptools.js +1 -1
  287. package/lib/python/venv.js +1 -1
  288. package/lib/readme.js +1 -1
  289. package/lib/release/publisher.d.ts +7 -0
  290. package/lib/release/publisher.js +9 -2
  291. package/lib/release/release-trigger.js +1 -1
  292. package/lib/release/release.js +3 -2
  293. package/lib/renovatebot.js +1 -1
  294. package/lib/sample-file.js +2 -2
  295. package/lib/semver.js +1 -1
  296. package/lib/source-code.js +1 -1
  297. package/lib/task-runtime.js +1 -1
  298. package/lib/task.js +1 -1
  299. package/lib/tasks.js +1 -1
  300. package/lib/testing.js +1 -1
  301. package/lib/textfile.js +1 -1
  302. package/lib/toml.js +1 -1
  303. package/lib/typescript/projenrc-ts.js +1 -1
  304. package/lib/typescript/projenrc.js +1 -1
  305. package/lib/typescript/typescript-typedoc.js +1 -1
  306. package/lib/typescript/typescript.js +3 -3
  307. package/lib/util.d.ts +19 -0
  308. package/lib/util.js +33 -2
  309. package/lib/version.js +1 -1
  310. package/lib/vscode/devcontainer.js +1 -1
  311. package/lib/vscode/extensions.js +1 -1
  312. package/lib/vscode/launch-config.js +1 -1
  313. package/lib/vscode/settings.js +1 -1
  314. package/lib/vscode/vscode.js +1 -1
  315. package/lib/web/next.js +3 -3
  316. package/lib/web/postcss.js +1 -1
  317. package/lib/web/react.js +4 -4
  318. package/lib/web/tailwind.js +1 -1
  319. package/lib/xmlfile.js +1 -1
  320. package/lib/yaml.js +1 -1
  321. package/package.json +1 -1
@@ -0,0 +1,1031 @@
1
+ export interface CommonJobDefinition {
2
+ /**
3
+ * The name of the job displayed on GitHub.
4
+ */
5
+ readonly name?: string;
6
+ /**
7
+ * Identifies any jobs that must complete successfully before this job will
8
+ * run. It can be a string or array of strings. If a job fails, all jobs
9
+ * that need it are skipped unless the jobs use a conditional expression
10
+ * that causes the job to continue.
11
+ */
12
+ readonly needs?: string[];
13
+ /**
14
+ * You can modify the default permissions granted to the GITHUB_TOKEN, adding
15
+ * or removing access as required, so that you only allow the minimum required
16
+ * access.
17
+ *
18
+ * Use `{ contents: READ }` if your job only needs to clone code.
19
+ *
20
+ * This is intentionally a required field since it is required in order to
21
+ * allow workflows to run in GitHub repositories with restricted default
22
+ * access.
23
+ *
24
+ * @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
25
+ */
26
+ readonly permissions: JobPermissions;
27
+ /**
28
+ * Concurrency ensures that only a single job or workflow using the same
29
+ * concurrency group will run at a time. A concurrency group can be any
30
+ * string or expression. The expression can use any context except for the
31
+ * secrets context.
32
+ *
33
+ * @experimental
34
+ */
35
+ readonly concurrency?: unknown;
36
+ /**
37
+ * You can use the if conditional to prevent a job from running unless a
38
+ * condition is met. You can use any supported context and expression to
39
+ * create a conditional.
40
+ */
41
+ readonly if?: string;
42
+ /**
43
+ * A strategy creates a build matrix for your jobs. You can define different
44
+ * variations to run each job in.
45
+ */
46
+ readonly strategy?: JobStrategy;
47
+ }
48
+ /**
49
+ * A GitHub Workflow Job calling a reusable workflow
50
+ *
51
+ */
52
+ export interface JobCallingReusableWorkflow extends CommonJobDefinition {
53
+ /**
54
+ * The location and version of a reusable workflow file to run as a job.
55
+ */
56
+ readonly uses: string;
57
+ /**
58
+ * When a job is used to call a reusable workflow, you can use with to
59
+ * provide a map of inputs that are passed to the called workflow.
60
+ *
61
+ * Allowed expression contexts: `github`, and `needs`.
62
+ */
63
+ readonly with?: Record<string, string | boolean>;
64
+ /**
65
+ * When a job is used to call a reusable workflow, you can use secrets to
66
+ * provide a map of secrets that are passed to the called workflow.
67
+ *
68
+ * Use the 'inherit' keyword to pass all the calling workflow's secrets to the called workflow
69
+ */
70
+ readonly secrets?: string | Record<string, string>;
71
+ }
72
+ /**
73
+ * A GitHub Workflow job definition.
74
+ */
75
+ export interface Job extends CommonJobDefinition {
76
+ /**
77
+ * The type of machine to run the job on. The machine can be either a
78
+ * GitHub-hosted runner or a self-hosted runner.
79
+ *
80
+ * @example ["ubuntu-latest"]
81
+ */
82
+ readonly runsOn: string[];
83
+ /**
84
+ * A job contains a sequence of tasks called steps. Steps can run commands,
85
+ * run setup tasks, or run an action in your repository, a public repository,
86
+ * or an action published in a Docker registry. Not all steps run actions,
87
+ * but all actions run as a step. Each step runs in its own process in the
88
+ * runner environment and has access to the workspace and filesystem.
89
+ * Because steps run in their own process, changes to environment variables
90
+ * are not preserved between steps. GitHub provides built-in steps to set up
91
+ * and complete a job.
92
+ */
93
+ readonly steps: JobStep[];
94
+ /**
95
+ * The environment that the job references. All environment protection rules
96
+ * must pass before a job referencing the environment is sent to a runner.
97
+ *
98
+ * @see https://docs.github.com/en/actions/reference/environments
99
+ */
100
+ readonly environment?: unknown;
101
+ /**
102
+ * A map of outputs for a job. Job outputs are available to all downstream
103
+ * jobs that depend on this job.
104
+ */
105
+ readonly outputs?: Record<string, JobStepOutput>;
106
+ /**
107
+ * A map of environment variables that are available to all steps in the
108
+ * job. You can also set environment variables for the entire workflow or an
109
+ * individual step.
110
+ */
111
+ readonly env?: Record<string, string>;
112
+ /**
113
+ * A map of default settings that will apply to all steps in the job. You
114
+ * can also set default settings for the entire workflow.
115
+ */
116
+ readonly defaults?: JobDefaults;
117
+ /**
118
+ * The maximum number of minutes to let a job run before GitHub
119
+ * automatically cancels it.
120
+ *
121
+ * @default 360
122
+ */
123
+ readonly timeoutMinutes?: number;
124
+ /**
125
+ * Prevents a workflow run from failing when a job fails. Set to true to
126
+ * allow a workflow run to pass when this job fails.
127
+ */
128
+ readonly continueOnError?: boolean;
129
+ /**
130
+ * A container to run any steps in a job that don't already specify a
131
+ * container. If you have steps that use both script and container actions,
132
+ * the container actions will run as sibling containers on the same network
133
+ * with the same volume mounts.
134
+ */
135
+ readonly container?: ContainerOptions;
136
+ /**
137
+ * Used to host service containers for a job in a workflow. Service
138
+ * containers are useful for creating databases or cache services like Redis.
139
+ * The runner automatically creates a Docker network and manages the life
140
+ * cycle of the service containers.
141
+ */
142
+ readonly services?: Record<string, ContainerOptions>;
143
+ /**
144
+ * Tools required for this job. Translates into `actions/setup-xxx` steps at
145
+ * the beginning of the job.
146
+ */
147
+ readonly tools?: Tools;
148
+ }
149
+ /**
150
+ * Supported tools.
151
+ */
152
+ export interface Tools {
153
+ /**
154
+ * Setup java (temurin distribution).
155
+ * @default - not installed
156
+ */
157
+ readonly java?: ToolRequirement;
158
+ /**
159
+ * Setup python.
160
+ * @default - not installed
161
+ */
162
+ readonly python?: ToolRequirement;
163
+ /**
164
+ * Setup golang.
165
+ * @default - not installed
166
+ */
167
+ readonly go?: ToolRequirement;
168
+ /**
169
+ * Setup node.js
170
+ * @default - not installed
171
+ */
172
+ readonly node?: ToolRequirement;
173
+ /**
174
+ * Setup .NET Core
175
+ * @default - not installed
176
+ */
177
+ readonly dotnet?: ToolRequirement;
178
+ }
179
+ /**
180
+ * Version requirement for tools.
181
+ */
182
+ export interface ToolRequirement {
183
+ readonly version: string;
184
+ }
185
+ /**
186
+ * The available scopes and access values for workflow permissions. If you
187
+ * specify the access for any of these scopes, all those that are not
188
+ * specified are set to `JobPermission.NONE`, instead of the default behavior
189
+ * when none is specified.
190
+ */
191
+ export interface JobPermissions {
192
+ readonly actions?: JobPermission;
193
+ readonly checks?: JobPermission;
194
+ readonly contents?: JobPermission;
195
+ readonly deployments?: JobPermission;
196
+ readonly idToken?: JobPermission;
197
+ readonly issues?: JobPermission;
198
+ readonly discussions?: JobPermission;
199
+ readonly packages?: JobPermission;
200
+ readonly pages?: JobPermission;
201
+ readonly pullRequests?: JobPermission;
202
+ readonly repositoryProjects?: JobPermission;
203
+ readonly securityEvents?: JobPermission;
204
+ readonly statuses?: JobPermission;
205
+ }
206
+ /**
207
+ * The permissions available to a GitHub App.
208
+ *
209
+ * Typically a token for a GitHub App has all the available scopes/permissions available to the app
210
+ * itself; however, a more limited set of permissions can be specified. When permissions are provided,
211
+ * **only** the specified permissions are granted to the token.
212
+ *
213
+ * @see https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app
214
+ */
215
+ export interface AppPermissions {
216
+ readonly actions?: AppPermission;
217
+ readonly administration?: AppPermission;
218
+ readonly checks?: AppPermission;
219
+ readonly contents?: AppPermission;
220
+ readonly deployments?: AppPermission;
221
+ readonly environments?: AppPermission;
222
+ readonly issues?: AppPermission;
223
+ readonly metadata?: AppPermission;
224
+ readonly packages?: AppPermission;
225
+ readonly pages?: AppPermission;
226
+ readonly pullRequests?: AppPermission;
227
+ readonly repositoryAnnouncementBanners?: AppPermission;
228
+ readonly repositoryHooks?: AppPermission;
229
+ readonly repositoryProject?: AppPermission;
230
+ readonly secretScanningAlerts?: AppPermission;
231
+ readonly secrets?: AppPermission;
232
+ readonly securityEvents?: AppPermission;
233
+ readonly singleFile?: AppPermission;
234
+ readonly statuses?: AppPermission;
235
+ readonly vulnerabilityAlerts?: AppPermission;
236
+ readonly workflows?: AppPermission;
237
+ readonly members?: AppPermission;
238
+ readonly organizationAdministration?: AppPermission;
239
+ readonly organizationCustomRoles?: AppPermission;
240
+ readonly organizationAnnouncementBanners?: AppPermission;
241
+ readonly organizationHooks?: AppPermission;
242
+ readonly organizationPlan?: AppPermission;
243
+ readonly organizationProjects?: AppPermission;
244
+ readonly organizationPackages?: AppPermission;
245
+ readonly organizationSecrets?: AppPermission;
246
+ readonly organizationSelfHostedRunners?: AppPermission;
247
+ readonly orgnaizationUserBlocking?: AppPermission;
248
+ readonly teamDiscussions?: AppPermission;
249
+ }
250
+ /**
251
+ * Access level for workflow permission scopes.
252
+ */
253
+ export declare enum JobPermission {
254
+ /** Read-only access */
255
+ READ = "read",
256
+ /** Read-write access */
257
+ WRITE = "write",
258
+ /** No access at all */
259
+ NONE = "none"
260
+ }
261
+ /**
262
+ * The permissions available for an access token for a GitHub App.
263
+ */
264
+ export declare enum AppPermission {
265
+ /** Read-only acccess */
266
+ READ = "read",
267
+ /** Read-write access */
268
+ WRITE = "write",
269
+ /**
270
+ * Read-write and admin access.
271
+ *
272
+ * Not all permissions support `admin`.
273
+ */
274
+ ADMIN = "admin"
275
+ }
276
+ /**
277
+ * An output binding for a job.
278
+ */
279
+ export interface JobStepOutput {
280
+ /**
281
+ * The ID of the step that exposes the output.
282
+ */
283
+ readonly stepId: string;
284
+ /**
285
+ * The name of the job output that is being bound.
286
+ */
287
+ readonly outputName: string;
288
+ }
289
+ /**
290
+ * Default settings for all steps in the job.
291
+ */
292
+ export interface JobDefaults {
293
+ /** Default run settings. */
294
+ readonly run?: RunSettings;
295
+ }
296
+ /**
297
+ * Run settings for a job.
298
+ */
299
+ export interface RunSettings {
300
+ /**
301
+ * Which shell to use for running the step.
302
+ *
303
+ * @example "bash"
304
+ */
305
+ readonly shell?: string;
306
+ /**
307
+ * Working directory to use when running the step.
308
+ */
309
+ readonly workingDirectory?: string;
310
+ }
311
+ /**
312
+ * A generic step
313
+ */
314
+ export interface Step {
315
+ /**
316
+ * A unique identifier for the step. You can use the id to reference the
317
+ * step in contexts.
318
+ */
319
+ readonly id?: string;
320
+ /**
321
+ * You can use the if conditional to prevent a job from running unless a
322
+ * condition is met. You can use any supported context and expression to
323
+ * create a conditional.
324
+ */
325
+ readonly if?: string;
326
+ /**
327
+ * A name for your step to display on GitHub.
328
+ */
329
+ readonly name?: string;
330
+ /**
331
+ * Selects an action to run as part of a step in your job. An action is a
332
+ * reusable unit of code. You can use an action defined in the same
333
+ * repository as the workflow, a public repository, or in a published Docker
334
+ * container image.
335
+ */
336
+ readonly uses?: string;
337
+ /**
338
+ * Runs command-line programs using the operating system's shell. If you do
339
+ * not provide a name, the step name will default to the text specified in
340
+ * the run command.
341
+ */
342
+ readonly run?: string;
343
+ /**
344
+ * A map of the input parameters defined by the action. Each input parameter
345
+ * is a key/value pair. Input parameters are set as environment variables.
346
+ * The variable is prefixed with INPUT_ and converted to upper case.
347
+ */
348
+ readonly with?: Record<string, any>;
349
+ /**
350
+ * Sets environment variables for steps to use in the runner environment.
351
+ * You can also set environment variables for the entire workflow or a job.
352
+ */
353
+ readonly env?: Record<string, string>;
354
+ /**
355
+ * Specifies a working directory for a step.
356
+ * Overrides a job's working directory.
357
+ */
358
+ readonly workingDirectory?: string;
359
+ }
360
+ /**
361
+ * A job step
362
+ */
363
+ export interface JobStep extends Step {
364
+ /**
365
+ * Prevents a job from failing when a step fails. Set to true to allow a job
366
+ * to pass when this step fails.
367
+ */
368
+ readonly continueOnError?: boolean;
369
+ /**
370
+ * The maximum number of minutes to run the step before killing the process.
371
+ */
372
+ readonly timeoutMinutes?: number;
373
+ }
374
+ /**
375
+ * A strategy creates a build matrix for your jobs. You can define different
376
+ * variations to run each job in.
377
+ */
378
+ export interface JobStrategy {
379
+ /**
380
+ * You can define a matrix of different job configurations. A matrix allows
381
+ * you to create multiple jobs by performing variable substitution in a
382
+ * single job definition. For example, you can use a matrix to create jobs
383
+ * for more than one supported version of a programming language, operating
384
+ * system, or tool. A matrix reuses the job's configuration and creates a
385
+ * job for each matrix you configure.
386
+ *
387
+ * A job matrix can generate a maximum of 256 jobs per workflow run. This
388
+ * limit also applies to self-hosted runners.
389
+ */
390
+ readonly matrix?: JobMatrix;
391
+ /**
392
+ * When set to true, GitHub cancels all in-progress jobs if any matrix job
393
+ * fails. Default: true
394
+ */
395
+ readonly failFast?: boolean;
396
+ /**
397
+ * The maximum number of jobs that can run simultaneously when using a
398
+ * matrix job strategy. By default, GitHub will maximize the number of jobs
399
+ * run in parallel depending on the available runners on GitHub-hosted
400
+ * virtual machines.
401
+ */
402
+ readonly maxParallel?: number;
403
+ }
404
+ type JobMatrixValue = string | boolean | number;
405
+ /**
406
+ * A job matrix.
407
+ */
408
+ export interface JobMatrix {
409
+ /**
410
+ * Each option you define in the matrix has a key and value. The keys you
411
+ * define become properties in the matrix context and you can reference the
412
+ * property in other areas of your workflow file. For example, if you define
413
+ * the key os that contains an array of operating systems, you can use the
414
+ * matrix.os property as the value of the runs-on keyword to create a job
415
+ * for each operating system.
416
+ */
417
+ readonly domain?: Record<string, JobMatrixValue[]>;
418
+ /**
419
+ * You can add additional configuration options to a build matrix job that
420
+ * already exists. For example, if you want to use a specific version of npm
421
+ * when the job that uses windows-latest and version 8 of node runs, you can
422
+ * use include to specify that additional option.
423
+ */
424
+ readonly include?: Array<Record<string, JobMatrixValue>>;
425
+ /**
426
+ * You can remove a specific configurations defined in the build matrix
427
+ * using the exclude option. Using exclude removes a job defined by the
428
+ * build matrix.
429
+ */
430
+ readonly exclude?: Array<Record<string, JobMatrixValue>>;
431
+ }
432
+ /**
433
+ * Options pertaining to container environments.
434
+ */
435
+ export interface ContainerOptions {
436
+ /**
437
+ * The Docker image to use as the container to run the action. The value can
438
+ * be the Docker Hub image name or a registry name.
439
+ */
440
+ readonly image: string;
441
+ /**
442
+ * f the image's container registry requires authentication to pull the
443
+ * image, you can use credentials to set a map of the username and password.
444
+ * The credentials are the same values that you would provide to the docker
445
+ * login command.
446
+ */
447
+ readonly credentials?: ContainerCredentials;
448
+ /**
449
+ * Sets a map of environment variables in the container.
450
+ */
451
+ readonly env?: Record<string, string>;
452
+ /**
453
+ * Sets an array of ports to expose on the container.
454
+ */
455
+ readonly ports?: number[];
456
+ /**
457
+ * Sets an array of volumes for the container to use. You can use volumes to
458
+ * share data between services or other steps in a job. You can specify
459
+ * named Docker volumes, anonymous Docker volumes, or bind mounts on the
460
+ * host.
461
+ *
462
+ * To specify a volume, you specify the source and destination path:
463
+ * `<source>:<destinationPath>`.
464
+ */
465
+ readonly volumes?: string[];
466
+ /**
467
+ * Additional Docker container resource options.
468
+ *
469
+ * @see https://docs.docker.com/engine/reference/commandline/create/#options
470
+ */
471
+ readonly options?: string[];
472
+ }
473
+ /**
474
+ * Credentials to use to authenticate to Docker registries.
475
+ */
476
+ export interface ContainerCredentials {
477
+ /** The username. */
478
+ readonly username: string;
479
+ /** The password. */
480
+ readonly password: string;
481
+ }
482
+ /**
483
+ * The set of available triggers for GitHub Workflows.
484
+ *
485
+ * @see https://docs.github.com/en/actions/reference/events-that-trigger-workflows
486
+ */
487
+ export interface Triggers {
488
+ /**
489
+ * You can schedule a workflow to run at specific UTC times using POSIX cron
490
+ * syntax. Scheduled workflows run on the latest commit on the default or
491
+ * base branch. The shortest interval you can run scheduled workflows is
492
+ * once every 5 minutes.
493
+ *
494
+ * @see https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
495
+ */
496
+ readonly schedule?: CronScheduleOptions[];
497
+ /**
498
+ * You can configure custom-defined input properties, default input values,
499
+ * and required inputs for the event directly in your workflow. When the
500
+ * workflow runs, you can access the input values in the github.event.inputs
501
+ * context.
502
+ */
503
+ readonly workflowDispatch?: WorkflowDispatchOptions;
504
+ /**
505
+ * You can use the GitHub API to trigger a webhook event called
506
+ * repository_dispatch when you want to trigger a workflow for activity that
507
+ * happens outside of GitHub.
508
+ */
509
+ readonly repositoryDispatch?: RepositoryDispatchOptions;
510
+ /**
511
+ * Can be called from another workflow
512
+ * @see https://docs.github.com/en/actions/learn-github-actions/reusing-workflows
513
+ */
514
+ readonly workflowCall?: WorkflowCallOptions;
515
+ /**
516
+ * Runs your workflow anytime the branch_protection_rule event occurs.
517
+ */
518
+ readonly branchProtectionRule?: BranchProtectionRuleOptions;
519
+ /**
520
+ * Runs your workflow anytime the check_run event occurs.
521
+ */
522
+ readonly checkRun?: CheckRunOptions;
523
+ /**
524
+ * Runs your workflow anytime the check_suite event occurs.
525
+ */
526
+ readonly checkSuite?: CheckSuiteOptions;
527
+ /**
528
+ * Runs your workflow anytime someone creates a branch or tag, which
529
+ * triggers the create event.
530
+ */
531
+ readonly create?: CreateOptions;
532
+ /**
533
+ * Runs your workflow anytime someone deletes a branch or tag, which
534
+ * triggers the delete event.
535
+ */
536
+ readonly delete?: DeleteOptions;
537
+ /**
538
+ * Runs your workflow anytime someone creates a deployment, which triggers
539
+ * the deployment event. Deployments created with a commit SHA may not have
540
+ * a Git ref.
541
+ */
542
+ readonly deployment?: DeploymentOptions;
543
+ /**
544
+ * Runs your workflow anytime a third party provides a deployment status,
545
+ * which triggers the deployment_status event. Deployments created with a
546
+ * commit SHA may not have a Git ref.
547
+ */
548
+ readonly deploymentStatus?: DeploymentStatusOptions;
549
+ /**
550
+ * Runs your workflow anytime the discussion event occurs. More than one activity type triggers this event.
551
+ * @see https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions
552
+ */
553
+ readonly discussion?: DiscussionOptions;
554
+ /**
555
+ * Runs your workflow anytime the discussion_comment event occurs. More than one activity type triggers this event.
556
+ * @see https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions
557
+ */
558
+ readonly discussionComment?: DiscussionCommentOptions;
559
+ /**
560
+ * Runs your workflow anytime when someone forks a repository, which
561
+ * triggers the fork event.
562
+ */
563
+ readonly fork?: ForkOptions;
564
+ /**
565
+ * Runs your workflow when someone creates or updates a Wiki page, which
566
+ * triggers the gollum event.
567
+ */
568
+ readonly gollum?: GollumOptions;
569
+ /**
570
+ * Runs your workflow anytime the issue_comment event occurs.
571
+ */
572
+ readonly issueComment?: IssueCommentOptions;
573
+ /**
574
+ * Runs your workflow anytime the issues event occurs.
575
+ */
576
+ readonly issues?: IssuesOptions;
577
+ /**
578
+ * Runs your workflow anytime the label event occurs.
579
+ */
580
+ readonly label?: LabelOptions;
581
+ /**
582
+ * Runs your workflow when a pull request is added to a merge queue, which
583
+ * adds the pull request to a merge group.
584
+ *
585
+ * @stability experimental
586
+ */
587
+ readonly mergeGroup?: MergeGroupOptions;
588
+ /**
589
+ * Runs your workflow anytime the milestone event occurs.
590
+ */
591
+ readonly milestone?: MilestoneOptions;
592
+ /**
593
+ * Runs your workflow anytime someone pushes to a GitHub Pages-enabled
594
+ * branch, which triggers the page_build event.
595
+ */
596
+ readonly pageBuild?: PageBuildOptions;
597
+ /**
598
+ * Runs your workflow anytime the project event occurs.
599
+ */
600
+ readonly project?: ProjectOptions;
601
+ /**
602
+ * Runs your workflow anytime the project_card event occurs.
603
+ */
604
+ readonly projectCard?: ProjectCardOptions;
605
+ /**
606
+ * Runs your workflow anytime the project_column event occurs.
607
+ */
608
+ readonly projectColumn?: ProjectColumnOptions;
609
+ /**
610
+ * Runs your workflow anytime someone makes a private repository public,
611
+ * which triggers the public event.
612
+ */
613
+ readonly public?: PublicOptions;
614
+ /**
615
+ * Runs your workflow anytime the pull_request event occurs.
616
+ */
617
+ readonly pullRequest?: PullRequestOptions;
618
+ /**
619
+ * Runs your workflow anytime the pull_request_review event occurs.
620
+ */
621
+ readonly pullRequestReview?: PullRequestReviewOptions;
622
+ /**
623
+ * Runs your workflow anytime a comment on a pull request's unified diff is
624
+ * modified, which triggers the pull_request_review_comment event.
625
+ */
626
+ readonly pullRequestReviewComment?: PullRequestReviewCommentOptions;
627
+ /**
628
+ * This event runs in the context of the base of the pull request, rather
629
+ * than in the merge commit as the pull_request event does. This prevents
630
+ * executing unsafe workflow code from the head of the pull request that
631
+ * could alter your repository or steal any secrets you use in your workflow.
632
+ * This event allows you to do things like create workflows that label and
633
+ * comment on pull requests based on the contents of the event payload.
634
+ *
635
+ * WARNING: The `pull_request_target` event is granted read/write repository
636
+ * token and can access secrets, even when it is triggered from a fork.
637
+ * Although the workflow runs in the context of the base of the pull request,
638
+ * you should make sure that you do not check out, build, or run untrusted
639
+ * code from the pull request with this event. Additionally, any caches
640
+ * share the same scope as the base branch, and to help prevent cache
641
+ * poisoning, you should not save the cache if there is a possibility that
642
+ * the cache contents were altered.
643
+ *
644
+ * @see https://securitylab.github.com/research/github-actions-preventing-pwn-requests
645
+ */
646
+ readonly pullRequestTarget?: PullRequestTargetOptions;
647
+ /**
648
+ * Runs your workflow when someone pushes to a repository branch, which
649
+ * triggers the push event.
650
+ */
651
+ readonly push?: PushOptions;
652
+ /**
653
+ * Runs your workflow anytime a package is published or updated.
654
+ */
655
+ readonly registryPackage?: RegistryPackageOptions;
656
+ /**
657
+ * Runs your workflow anytime the release event occurs.
658
+ */
659
+ readonly release?: ReleaseOptions;
660
+ /**
661
+ * Runs your workflow anytime the status of a Git commit changes, which
662
+ * triggers the status event.
663
+ */
664
+ readonly status?: StatusOptions;
665
+ /**
666
+ * Runs your workflow anytime the watch event occurs.
667
+ */
668
+ readonly watch?: WatchOptions;
669
+ /**
670
+ * This event occurs when a workflow run is requested or completed, and
671
+ * allows you to execute a workflow based on the finished result of another
672
+ * workflow. A workflow run is triggered regardless of the result of the
673
+ * previous workflow.
674
+ */
675
+ readonly workflowRun?: WorkflowRunOptions;
676
+ }
677
+ /**
678
+ * CRON schedule options.
679
+ */
680
+ export interface CronScheduleOptions {
681
+ /**
682
+ * @see https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
683
+ */
684
+ readonly cron: string;
685
+ }
686
+ /**
687
+ * Repository dispatch options.
688
+ */
689
+ export interface RepositoryDispatchOptions {
690
+ /**
691
+ * Which activity types to trigger on.
692
+ *
693
+ * @defaults - all activity types
694
+ */
695
+ readonly types?: string[];
696
+ }
697
+ /**
698
+ * Branch Protection Rule options
699
+ */
700
+ export interface BranchProtectionRuleOptions {
701
+ /**
702
+ * Which activity types to trigger on.
703
+ *
704
+ * @defaults - all activity types
705
+ */
706
+ readonly types?: Array<"created" | "edited" | "deleted">;
707
+ }
708
+ /**
709
+ * Check run options.
710
+ */
711
+ export interface CheckRunOptions {
712
+ /**
713
+ * Which activity types to trigger on.
714
+ *
715
+ * @defaults - all activity types
716
+ */
717
+ readonly types?: Array<"create" | "rerequested" | "completed" | "requested_action">;
718
+ }
719
+ /**
720
+ * Check suite options
721
+ */
722
+ export interface CheckSuiteOptions {
723
+ /**
724
+ * Which activity types to trigger on.
725
+ *
726
+ * @defaults - all activity types
727
+ */
728
+ readonly types?: Array<"completed" | "requested" | "rerequested">;
729
+ }
730
+ /**
731
+ * Discussion options
732
+ */
733
+ export interface DiscussionOptions {
734
+ /**
735
+ * Which activity types to trigger on.
736
+ *
737
+ * @defaults - all activity types
738
+ */
739
+ readonly types?: Array<"created" | "edited" | "transferred" | "pinned" | "unpinned" | "labeled" | "unlabeled" | "locked" | "unlocked" | "category_changed" | "answered" | "unanswered">;
740
+ }
741
+ /**
742
+ * Discussion comment options
743
+ */
744
+ export interface DiscussionCommentOptions {
745
+ /**
746
+ * Which activity types to trigger on.
747
+ *
748
+ * @defaults - all activity types
749
+ */
750
+ readonly types?: Array<"created" | "edited" | "deleted">;
751
+ }
752
+ /**
753
+ * Issue comment options
754
+ */
755
+ export interface IssueCommentOptions {
756
+ /**
757
+ * Which activity types to trigger on.
758
+ *
759
+ * @defaults - all activity types
760
+ */
761
+ readonly types?: Array<"created" | "edited" | "deleted">;
762
+ }
763
+ /**
764
+ * Issues options
765
+ */
766
+ export interface IssuesOptions {
767
+ /**
768
+ * Which activity types to trigger on.
769
+ *
770
+ * @defaults - all activity types
771
+ */
772
+ readonly types?: Array<"opened" | "edited" | "deleted" | "transferred" | "pinned" | "unpinned" | "closed" | "reopened" | "assigned" | "unassigned" | "labeled" | "unlabeled" | "locked" | "unlocked" | "milestoned" | "demilestoned">;
773
+ }
774
+ /**
775
+ * Label options
776
+ */
777
+ export interface LabelOptions {
778
+ /**
779
+ * Which activity types to trigger on.
780
+ *
781
+ * @defaults - all activity types
782
+ */
783
+ readonly types?: Array<"created" | "edited" | "deleted">;
784
+ }
785
+ /**
786
+ * Merge group options.
787
+ *
788
+ * @stability experimental
789
+ */
790
+ export interface MergeGroupOptions {
791
+ /**
792
+ * When using the merge_group events, you can configure a workflow
793
+ * to run on specific base branches. If not specified, all branches will
794
+ * trigger the workflow.
795
+ */
796
+ readonly branches?: string[];
797
+ }
798
+ /**
799
+ * Milestone options
800
+ */
801
+ export interface MilestoneOptions {
802
+ /**
803
+ * Which activity types to trigger on.
804
+ *
805
+ * @defaults - all activity types
806
+ */
807
+ readonly types?: Array<"created" | "closed" | "opened" | "edited" | "deleted">;
808
+ }
809
+ /**
810
+ * Project options
811
+ */
812
+ export interface ProjectOptions {
813
+ /**
814
+ * Which activity types to trigger on.
815
+ *
816
+ * @defaults - all activity types
817
+ */
818
+ readonly types?: Array<"created" | "updated" | "closed" | "reopened" | "edited" | "deleted">;
819
+ }
820
+ /**
821
+ * Project card options
822
+ */
823
+ export interface ProjectCardOptions {
824
+ /**
825
+ * Which activity types to trigger on.
826
+ *
827
+ * @defaults - all activity types
828
+ */
829
+ readonly types?: Array<"created" | "moved" | "converted" | "edited" | "deleted">;
830
+ }
831
+ /**
832
+ * Probject column options
833
+ */
834
+ export interface ProjectColumnOptions {
835
+ /**
836
+ * Which activity types to trigger on.
837
+ *
838
+ * @defaults - all activity types
839
+ */
840
+ readonly types?: Array<"created" | "updated" | "moved" | "deleted">;
841
+ }
842
+ /**
843
+ * Pull request options
844
+ */
845
+ export interface PullRequestOptions extends PushOptions {
846
+ /**
847
+ * Which activity types to trigger on.
848
+ *
849
+ * @defaults - all activity types
850
+ */
851
+ readonly types?: Array<"assigned" | "unassigned" | "labeled" | "unlabeled" | "opened" | "edited" | "closed" | "reopened" | "synchronize" | "ready_for_review" | "locked" | "unlocked" | "review_requested" | "review_request_removed">;
852
+ }
853
+ /**
854
+ * Pull request review options
855
+ */
856
+ export interface PullRequestReviewOptions {
857
+ /**
858
+ * Which activity types to trigger on.
859
+ *
860
+ * @defaults - all activity types
861
+ */
862
+ readonly types?: Array<"submitted" | "edited" | "dismissed">;
863
+ }
864
+ /**
865
+ * Pull request review comment options
866
+ */
867
+ export interface PullRequestReviewCommentOptions {
868
+ /**
869
+ * Which activity types to trigger on.
870
+ *
871
+ * @defaults - all activity types
872
+ */
873
+ readonly types?: Array<"created" | "edited" | "deleted">;
874
+ }
875
+ /**
876
+ * Pull request target options.
877
+ */
878
+ export interface PullRequestTargetOptions extends PushOptions {
879
+ /**
880
+ * Which activity types to trigger on.
881
+ *
882
+ * @defaults - all activity types
883
+ */
884
+ readonly types?: Array<"assigned" | "unassigned" | "labeled" | "unlabeled" | "opened" | "edited" | "closed" | "reopened" | "synchronize" | "ready_for_review" | "locked" | "unlocked" | "review_requested" | "review_request_removed">;
885
+ }
886
+ /**
887
+ * Options for push-like events.
888
+ */
889
+ export interface PushOptions {
890
+ /**
891
+ * When using the push, pull_request and pull_request_target events, you can configure a workflow
892
+ * to run on specific branches or tags. For a pull_request event, only
893
+ * branches and tags on the base are evaluated. If you define only tags or
894
+ * only branches, the workflow won't run for events affecting the undefined
895
+ * Git ref.
896
+ *
897
+ * @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
898
+ */
899
+ readonly branches?: string[];
900
+ /**
901
+ * When using the push, pull_request and pull_request_target events, you can configure a workflow
902
+ * to run on specific branches or tags. For a pull_request event, only
903
+ * branches and tags on the base are evaluated. If you define only tags or
904
+ * only branches, the workflow won't run for events affecting the undefined
905
+ * Git ref.
906
+ *
907
+ * @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
908
+ */
909
+ readonly tags?: string[];
910
+ /**
911
+ * When using the push, pull_request and pull_request_target events, you can configure a workflow
912
+ * to run when at least one file does not match paths-ignore or at least one
913
+ * modified file matches the configured paths. Path filters are not
914
+ * evaluated for pushes to tags.
915
+ *
916
+ * @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
917
+ */
918
+ readonly paths?: string[];
919
+ }
920
+ /**
921
+ * Registry package options
922
+ */
923
+ export interface RegistryPackageOptions {
924
+ /**
925
+ * Which activity types to trigger on.
926
+ *
927
+ * @defaults - all activity types
928
+ */
929
+ readonly types?: Array<"published" | "updated">;
930
+ }
931
+ /**
932
+ * Release options
933
+ */
934
+ export interface ReleaseOptions {
935
+ /**
936
+ * Which activity types to trigger on.
937
+ *
938
+ * @defaults - all activity types
939
+ */
940
+ readonly types?: Array<"published" | "unpublished" | "created" | "edited" | "deleted" | "prereleased" | "released">;
941
+ }
942
+ /**
943
+ * Watch options
944
+ */
945
+ export interface WatchOptions {
946
+ /**
947
+ * Which activity types to trigger on.
948
+ *
949
+ * @defaults - all activity types
950
+ */
951
+ readonly types?: Array<"started">;
952
+ }
953
+ /**
954
+ * Workflow run options
955
+ */
956
+ export interface WorkflowRunOptions {
957
+ /**
958
+ * Which workflow to trigger on.
959
+ *
960
+ * @defaults - any workflows
961
+ */
962
+ readonly workflows?: Array<string>;
963
+ /**
964
+ * Which activity types to trigger on.
965
+ *
966
+ * @defaults - all activity types
967
+ */
968
+ readonly types?: Array<"completed" | "requested">;
969
+ /**
970
+ * Which branches or branch-ignore to limit the trigger to.
971
+ *
972
+ * @defaults - no branch limits
973
+ */
974
+ readonly branches?: Array<string>;
975
+ }
976
+ /**
977
+ * The Workflow dispatch event accepts no options.
978
+ */
979
+ export interface WorkflowDispatchOptions {
980
+ }
981
+ /**
982
+ * The Workflow Call event accepts no options.
983
+ */
984
+ export interface WorkflowCallOptions {
985
+ }
986
+ /**
987
+ * The Create event accepts no options.
988
+ */
989
+ export interface CreateOptions {
990
+ }
991
+ /**
992
+ * The Delete event accepts no options.
993
+ */
994
+ export interface DeleteOptions {
995
+ }
996
+ /**
997
+ * The Deployment event accepts no options.
998
+ */
999
+ export interface DeploymentOptions {
1000
+ }
1001
+ /**
1002
+ * The Deployment status event accepts no options.
1003
+ */
1004
+ export interface DeploymentStatusOptions {
1005
+ }
1006
+ /**
1007
+ * The Fork event accepts no options.
1008
+ */
1009
+ export interface ForkOptions {
1010
+ }
1011
+ /**
1012
+ * The Gollum event accepts no options.
1013
+ */
1014
+ export interface GollumOptions {
1015
+ }
1016
+ /**
1017
+ * The Page build event accepts no options.
1018
+ */
1019
+ export interface PageBuildOptions {
1020
+ }
1021
+ /**
1022
+ * The Public event accepts no options.
1023
+ */
1024
+ export interface PublicOptions {
1025
+ }
1026
+ /**
1027
+ * The Status event accepts no options.
1028
+ */
1029
+ export interface StatusOptions {
1030
+ }
1031
+ export {};