projen-modules 3.2.1__tar.gz → 3.2.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: projen_modules
3
- Version: 3.2.1
3
+ Version: 3.2.3
4
4
  Summary: A collection of projen modules
5
5
  Home-page: https://github.com/daveshepherd/projen-modules.git
6
6
  Author: Dave Shepherd<dave.shepherd@endor.me.uk>
@@ -57,7 +57,7 @@ Types of testing:
57
57
 
58
58
  ## GitHub Configuration
59
59
 
60
- All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request's checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
60
+ All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request is approved, or is opened by `daveshepherd`, and its checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
61
61
 
62
62
  The repository must be configured as below so that nothing can be merged without going through the queue.
63
63
 
@@ -73,6 +73,10 @@ In **Settings → General → Pull Requests**:
73
73
  * Untick **Allow auto-merge**, because GitHub's own auto-merge merges outside the queue.
74
74
  * Tick **Automatically delete head branches**.
75
75
 
76
+ ### Actions settings
77
+
78
+ In **Settings → Actions → General**, set **Approval for running fork pull request workflows from contributors** to **Require approval for all external contributors**. A pull request from a fork runs its own copy of the workflows, so it can change how the required checks pass.
79
+
76
80
  ### Code scanning
77
81
 
78
82
  CodeQL runs from `.github/workflows/codeql.yml`, which is managed by projen. In **Settings → Advanced Security**, leave CodeQL **Default setup** off, because it cannot run alongside this workflow. Under **Protection rules**, keep the **Check run failure threshold** at **High or higher** for security alerts and **Errors** for other alerts, as this decides whether the `CodeQL` check fails. Private repositories also need GitHub Code Security enabled there for code scanning results to be uploaded.
@@ -84,7 +88,7 @@ In **Settings → Rules → Rulesets**, create a branch ruleset with enforcement
84
88
  * **Bypass list**: the **Mergify** app only, in **Exempt** mode. Do not add admins or other roles, as anyone on this list can merge without the queue.
85
89
  * **Restrict updates**: only bypass actors can update the branch, so pull requests cannot be merged from the GitHub UI or CLI and commits cannot be pushed directly.
86
90
  * **Restrict deletions** and **Block force pushes**.
87
- * **Require a pull request before merging**, with 0 required approvals.
91
+ * **Require a pull request before merging**, with 0 required approvals, because Mergify requires approvals itself for authors other than `daveshepherd` and is exempt from this rule. Tick **Dismiss stale pull request approvals when new commits are pushed**, so that commits pushed after an approval need approving again before the queue merges them.
88
92
  * **Require status checks to pass**, listing the checks that `.mergify.yml` waits for: `build`, `package-js`, `package-python`. Leave **Require branches to be up to date before merging** unticked, as the queue already updates and retests each pull request.
89
93
  * **Require code scanning results**, with the tool **CodeQL**, security alerts set to **High or higher** and alerts set to **Errors**. Mergify is exempt from this rule, so `.mergify.yml` also waits for the `CodeQL` check instead.
90
94
 
@@ -29,7 +29,7 @@ Types of testing:
29
29
 
30
30
  ## GitHub Configuration
31
31
 
32
- All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request's checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
32
+ All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request is approved, or is opened by `daveshepherd`, and its checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
33
33
 
34
34
  The repository must be configured as below so that nothing can be merged without going through the queue.
35
35
 
@@ -45,6 +45,10 @@ In **Settings → General → Pull Requests**:
45
45
  * Untick **Allow auto-merge**, because GitHub's own auto-merge merges outside the queue.
46
46
  * Tick **Automatically delete head branches**.
47
47
 
48
+ ### Actions settings
49
+
50
+ In **Settings → Actions → General**, set **Approval for running fork pull request workflows from contributors** to **Require approval for all external contributors**. A pull request from a fork runs its own copy of the workflows, so it can change how the required checks pass.
51
+
48
52
  ### Code scanning
49
53
 
50
54
  CodeQL runs from `.github/workflows/codeql.yml`, which is managed by projen. In **Settings → Advanced Security**, leave CodeQL **Default setup** off, because it cannot run alongside this workflow. Under **Protection rules**, keep the **Check run failure threshold** at **High or higher** for security alerts and **Errors** for other alerts, as this decides whether the `CodeQL` check fails. Private repositories also need GitHub Code Security enabled there for code scanning results to be uploaded.
@@ -56,7 +60,7 @@ In **Settings → Rules → Rulesets**, create a branch ruleset with enforcement
56
60
  * **Bypass list**: the **Mergify** app only, in **Exempt** mode. Do not add admins or other roles, as anyone on this list can merge without the queue.
57
61
  * **Restrict updates**: only bypass actors can update the branch, so pull requests cannot be merged from the GitHub UI or CLI and commits cannot be pushed directly.
58
62
  * **Restrict deletions** and **Block force pushes**.
59
- * **Require a pull request before merging**, with 0 required approvals.
63
+ * **Require a pull request before merging**, with 0 required approvals, because Mergify requires approvals itself for authors other than `daveshepherd` and is exempt from this rule. Tick **Dismiss stale pull request approvals when new commits are pushed**, so that commits pushed after an approval need approving again before the queue merges them.
60
64
  * **Require status checks to pass**, listing the checks that `.mergify.yml` waits for: `build`, `package-js`, `package-python`. Leave **Require branches to be up to date before merging** unticked, as the queue already updates and retests each pull request.
61
65
  * **Require code scanning results**, with the tool **CodeQL**, security alerts set to **High or higher** and alerts set to **Errors**. Mergify is exempt from this rule, so `.mergify.yml` also waits for the `CodeQL` check instead.
62
66
 
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "projen_modules",
8
- "version": "3.2.1",
8
+ "version": "3.2.3",
9
9
  "description": "A collection of projen modules",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/daveshepherd/projen-modules.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "projen_modules._jsii": [
29
- "projen-modules@3.2.1.jsii.tgz"
29
+ "projen-modules@3.2.3.jsii.tgz"
30
30
  ],
31
31
  "projen_modules": [
32
32
  "py.typed"
@@ -30,7 +30,7 @@ Types of testing:
30
30
 
31
31
  ## GitHub Configuration
32
32
 
33
- All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request's checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
33
+ All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request is approved, or is opened by `daveshepherd`, and its checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
34
34
 
35
35
  The repository must be configured as below so that nothing can be merged without going through the queue.
36
36
 
@@ -46,6 +46,10 @@ In **Settings → General → Pull Requests**:
46
46
  * Untick **Allow auto-merge**, because GitHub's own auto-merge merges outside the queue.
47
47
  * Tick **Automatically delete head branches**.
48
48
 
49
+ ### Actions settings
50
+
51
+ In **Settings → Actions → General**, set **Approval for running fork pull request workflows from contributors** to **Require approval for all external contributors**. A pull request from a fork runs its own copy of the workflows, so it can change how the required checks pass.
52
+
49
53
  ### Code scanning
50
54
 
51
55
  CodeQL runs from `.github/workflows/codeql.yml`, which is managed by projen. In **Settings → Advanced Security**, leave CodeQL **Default setup** off, because it cannot run alongside this workflow. Under **Protection rules**, keep the **Check run failure threshold** at **High or higher** for security alerts and **Errors** for other alerts, as this decides whether the `CodeQL` check fails. Private repositories also need GitHub Code Security enabled there for code scanning results to be uploaded.
@@ -57,7 +61,7 @@ In **Settings → Rules → Rulesets**, create a branch ruleset with enforcement
57
61
  * **Bypass list**: the **Mergify** app only, in **Exempt** mode. Do not add admins or other roles, as anyone on this list can merge without the queue.
58
62
  * **Restrict updates**: only bypass actors can update the branch, so pull requests cannot be merged from the GitHub UI or CLI and commits cannot be pushed directly.
59
63
  * **Restrict deletions** and **Block force pushes**.
60
- * **Require a pull request before merging**, with 0 required approvals.
64
+ * **Require a pull request before merging**, with 0 required approvals, because Mergify requires approvals itself for authors other than `daveshepherd` and is exempt from this rule. Tick **Dismiss stale pull request approvals when new commits are pushed**, so that commits pushed after an approval need approving again before the queue merges them.
61
65
  * **Require status checks to pass**, listing the checks that `.mergify.yml` waits for: `build`, `package-js`, `package-python`. Leave **Require branches to be up to date before merging** unticked, as the queue already updates and retests each pull request.
62
66
  * **Require code scanning results**, with the tool **CodeQL**, security alerts set to **High or higher** and alerts set to **Errors**. Mergify is exempt from this rule, so `.mergify.yml` also waits for the `CodeQL` check instead.
63
67
 
@@ -317,6 +321,7 @@ class CdkTypeScriptApp(
317
321
  stale: typing.Optional[builtins.bool] = None,
318
322
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
319
323
  testdir: typing.Optional[builtins.str] = None,
324
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
320
325
  tsconfig: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
321
326
  tsconfig_dev: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
322
327
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -495,6 +500,7 @@ class CdkTypeScriptApp(
495
500
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
496
501
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
497
502
  :param testdir: (experimental) Jest tests directory. Tests files should be named ``xxx.test.ts``. If this directory is under ``srcdir`` (e.g. ``src/test``, ``src/__tests__``), then tests are going to be compiled into ``lib/`` and executed as javascript. If the test directory is outside of ``src``, then we configure jest to compile the code in-memory. Default: "test"
503
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
498
504
  :param tsconfig: (experimental) Custom TSConfig. Default: - default options
499
505
  :param tsconfig_dev: (experimental) Custom tsconfig options for the development tsconfig.json file (used for testing). Default: - use the production tsconfig options
500
506
  :param tsconfig_dev_file: (experimental) The name (and path) of the development tsconfig file. By default this lives inside the test directory (e.g. ``test/tsconfig.json``) so that the TypeScript language service resolves it as the nearest config for test files. Default: - "{testdir}/tsconfig.json"
@@ -673,6 +679,7 @@ class CdkTypeScriptApp(
673
679
  stale=stale,
674
680
  stale_options=stale_options,
675
681
  testdir=testdir,
682
+ trusted_authors=trusted_authors,
676
683
  tsconfig=tsconfig,
677
684
  tsconfig_dev=tsconfig_dev,
678
685
  tsconfig_dev_file=tsconfig_dev_file,
@@ -870,6 +877,7 @@ class CdkTypeScriptApp(
870
877
  "stale": "stale",
871
878
  "stale_options": "staleOptions",
872
879
  "testdir": "testdir",
880
+ "trusted_authors": "trustedAuthors",
873
881
  "tsconfig": "tsconfig",
874
882
  "tsconfig_dev": "tsconfigDev",
875
883
  "tsconfig_dev_file": "tsconfigDevFile",
@@ -1052,6 +1060,7 @@ class CdkTypeScriptAppOptions:
1052
1060
  stale: typing.Optional[builtins.bool] = None,
1053
1061
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
1054
1062
  testdir: typing.Optional[builtins.str] = None,
1063
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
1055
1064
  tsconfig: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
1056
1065
  tsconfig_dev: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
1057
1066
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -1231,6 +1240,7 @@ class CdkTypeScriptAppOptions:
1231
1240
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
1232
1241
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
1233
1242
  :param testdir: (experimental) Jest tests directory. Tests files should be named ``xxx.test.ts``. If this directory is under ``srcdir`` (e.g. ``src/test``, ``src/__tests__``), then tests are going to be compiled into ``lib/`` and executed as javascript. If the test directory is outside of ``src``, then we configure jest to compile the code in-memory. Default: "test"
1243
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
1234
1244
  :param tsconfig: (experimental) Custom TSConfig. Default: - default options
1235
1245
  :param tsconfig_dev: (experimental) Custom tsconfig options for the development tsconfig.json file (used for testing). Default: - use the production tsconfig options
1236
1246
  :param tsconfig_dev_file: (experimental) The name (and path) of the development tsconfig file. By default this lives inside the test directory (e.g. ``test/tsconfig.json``) so that the TypeScript language service resolves it as the nearest config for test files. Default: - "{testdir}/tsconfig.json"
@@ -1478,6 +1488,7 @@ class CdkTypeScriptAppOptions:
1478
1488
  check_type(argname="argument stale", value=stale, expected_type=type_hints["stale"])
1479
1489
  check_type(argname="argument stale_options", value=stale_options, expected_type=type_hints["stale_options"])
1480
1490
  check_type(argname="argument testdir", value=testdir, expected_type=type_hints["testdir"])
1491
+ check_type(argname="argument trusted_authors", value=trusted_authors, expected_type=type_hints["trusted_authors"])
1481
1492
  check_type(argname="argument tsconfig", value=tsconfig, expected_type=type_hints["tsconfig"])
1482
1493
  check_type(argname="argument tsconfig_dev", value=tsconfig_dev, expected_type=type_hints["tsconfig_dev"])
1483
1494
  check_type(argname="argument tsconfig_dev_file", value=tsconfig_dev_file, expected_type=type_hints["tsconfig_dev_file"])
@@ -1811,6 +1822,8 @@ class CdkTypeScriptAppOptions:
1811
1822
  self._values["stale_options"] = stale_options
1812
1823
  if testdir is not None:
1813
1824
  self._values["testdir"] = testdir
1825
+ if trusted_authors is not None:
1826
+ self._values["trusted_authors"] = trusted_authors
1814
1827
  if tsconfig is not None:
1815
1828
  self._values["tsconfig"] = tsconfig
1816
1829
  if tsconfig_dev is not None:
@@ -3871,6 +3884,15 @@ class CdkTypeScriptAppOptions:
3871
3884
  result = self._values.get("testdir")
3872
3885
  return typing.cast(typing.Optional[builtins.str], result)
3873
3886
 
3887
+ @builtins.property
3888
+ def trusted_authors(self) -> typing.Optional[typing.List[builtins.str]]:
3889
+ '''Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests.
3890
+
3891
+ :default: []
3892
+ '''
3893
+ result = self._values.get("trusted_authors")
3894
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
3895
+
3874
3896
  @builtins.property
3875
3897
  def tsconfig(
3876
3898
  self,
@@ -4335,6 +4357,7 @@ class JsiiProject(
4335
4357
  stale: typing.Optional[builtins.bool] = None,
4336
4358
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
4337
4359
  testdir: typing.Optional[builtins.str] = None,
4360
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
4338
4361
  tsconfig: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
4339
4362
  tsconfig_dev: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
4340
4363
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -4508,6 +4531,7 @@ class JsiiProject(
4508
4531
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
4509
4532
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
4510
4533
  :param testdir: (experimental) Jest tests directory. Tests files should be named ``xxx.test.ts``. If this directory is under ``srcdir`` (e.g. ``src/test``, ``src/__tests__``), then tests are going to be compiled into ``lib/`` and executed as javascript. If the test directory is outside of ``src``, then we configure jest to compile the code in-memory. Default: "test"
4534
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
4511
4535
  :param tsconfig: (experimental) Custom TSConfig. Default: - default options
4512
4536
  :param tsconfig_dev: (experimental) Custom tsconfig options for the development tsconfig.json file (used for testing). Default: - use the production tsconfig options
4513
4537
  :param tsconfig_dev_file: (experimental) The name (and path) of the development tsconfig file. By default this lives inside the test directory (e.g. ``test/tsconfig.json``) so that the TypeScript language service resolves it as the nearest config for test files. Default: - "{testdir}/tsconfig.json"
@@ -4681,6 +4705,7 @@ class JsiiProject(
4681
4705
  stale=stale,
4682
4706
  stale_options=stale_options,
4683
4707
  testdir=testdir,
4708
+ trusted_authors=trusted_authors,
4684
4709
  tsconfig=tsconfig,
4685
4710
  tsconfig_dev=tsconfig_dev,
4686
4711
  tsconfig_dev_file=tsconfig_dev_file,
@@ -4873,6 +4898,7 @@ class JsiiProject(
4873
4898
  "stale": "stale",
4874
4899
  "stale_options": "staleOptions",
4875
4900
  "testdir": "testdir",
4901
+ "trusted_authors": "trustedAuthors",
4876
4902
  "tsconfig": "tsconfig",
4877
4903
  "tsconfig_dev": "tsconfigDev",
4878
4904
  "tsconfig_dev_file": "tsconfigDevFile",
@@ -5050,6 +5076,7 @@ class JsiiProjectOptions:
5050
5076
  stale: typing.Optional[builtins.bool] = None,
5051
5077
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
5052
5078
  testdir: typing.Optional[builtins.str] = None,
5079
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
5053
5080
  tsconfig: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
5054
5081
  tsconfig_dev: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
5055
5082
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -5224,6 +5251,7 @@ class JsiiProjectOptions:
5224
5251
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
5225
5252
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
5226
5253
  :param testdir: (experimental) Jest tests directory. Tests files should be named ``xxx.test.ts``. If this directory is under ``srcdir`` (e.g. ``src/test``, ``src/__tests__``), then tests are going to be compiled into ``lib/`` and executed as javascript. If the test directory is outside of ``src``, then we configure jest to compile the code in-memory. Default: "test"
5254
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
5227
5255
  :param tsconfig: (experimental) Custom TSConfig. Default: - default options
5228
5256
  :param tsconfig_dev: (experimental) Custom tsconfig options for the development tsconfig.json file (used for testing). Default: - use the production tsconfig options
5229
5257
  :param tsconfig_dev_file: (experimental) The name (and path) of the development tsconfig file. By default this lives inside the test directory (e.g. ``test/tsconfig.json``) so that the TypeScript language service resolves it as the nearest config for test files. Default: - "{testdir}/tsconfig.json"
@@ -5472,6 +5500,7 @@ class JsiiProjectOptions:
5472
5500
  check_type(argname="argument stale", value=stale, expected_type=type_hints["stale"])
5473
5501
  check_type(argname="argument stale_options", value=stale_options, expected_type=type_hints["stale_options"])
5474
5502
  check_type(argname="argument testdir", value=testdir, expected_type=type_hints["testdir"])
5503
+ check_type(argname="argument trusted_authors", value=trusted_authors, expected_type=type_hints["trusted_authors"])
5475
5504
  check_type(argname="argument tsconfig", value=tsconfig, expected_type=type_hints["tsconfig"])
5476
5505
  check_type(argname="argument tsconfig_dev", value=tsconfig_dev, expected_type=type_hints["tsconfig_dev"])
5477
5506
  check_type(argname="argument tsconfig_dev_file", value=tsconfig_dev_file, expected_type=type_hints["tsconfig_dev_file"])
@@ -5794,6 +5823,8 @@ class JsiiProjectOptions:
5794
5823
  self._values["stale_options"] = stale_options
5795
5824
  if testdir is not None:
5796
5825
  self._values["testdir"] = testdir
5826
+ if trusted_authors is not None:
5827
+ self._values["trusted_authors"] = trusted_authors
5797
5828
  if tsconfig is not None:
5798
5829
  self._values["tsconfig"] = tsconfig
5799
5830
  if tsconfig_dev is not None:
@@ -7807,6 +7838,15 @@ class JsiiProjectOptions:
7807
7838
  result = self._values.get("testdir")
7808
7839
  return typing.cast(typing.Optional[builtins.str], result)
7809
7840
 
7841
+ @builtins.property
7842
+ def trusted_authors(self) -> typing.Optional[typing.List[builtins.str]]:
7843
+ '''Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests.
7844
+
7845
+ :default: []
7846
+ '''
7847
+ result = self._values.get("trusted_authors")
7848
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
7849
+
7810
7850
  @builtins.property
7811
7851
  def tsconfig(
7812
7852
  self,
@@ -8198,6 +8238,7 @@ class NpmPackage(
8198
8238
  stale: typing.Optional[builtins.bool] = None,
8199
8239
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
8200
8240
  testdir: typing.Optional[builtins.str] = None,
8241
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
8201
8242
  tsconfig: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
8202
8243
  tsconfig_dev: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
8203
8244
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -8355,6 +8396,7 @@ class NpmPackage(
8355
8396
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
8356
8397
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
8357
8398
  :param testdir: (experimental) Jest tests directory. Tests files should be named ``xxx.test.ts``. If this directory is under ``srcdir`` (e.g. ``src/test``, ``src/__tests__``), then tests are going to be compiled into ``lib/`` and executed as javascript. If the test directory is outside of ``src``, then we configure jest to compile the code in-memory. Default: "test"
8399
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
8358
8400
  :param tsconfig: (experimental) Custom TSConfig. Default: - default options
8359
8401
  :param tsconfig_dev: (experimental) Custom tsconfig options for the development tsconfig.json file (used for testing). Default: - use the production tsconfig options
8360
8402
  :param tsconfig_dev_file: (experimental) The name (and path) of the development tsconfig file. By default this lives inside the test directory (e.g. ``test/tsconfig.json``) so that the TypeScript language service resolves it as the nearest config for test files. Default: - "{testdir}/tsconfig.json"
@@ -8512,6 +8554,7 @@ class NpmPackage(
8512
8554
  stale=stale,
8513
8555
  stale_options=stale_options,
8514
8556
  testdir=testdir,
8557
+ trusted_authors=trusted_authors,
8515
8558
  tsconfig=tsconfig,
8516
8559
  tsconfig_dev=tsconfig_dev,
8517
8560
  tsconfig_dev_file=tsconfig_dev_file,
@@ -8688,6 +8731,7 @@ class NpmPackage(
8688
8731
  "stale": "stale",
8689
8732
  "stale_options": "staleOptions",
8690
8733
  "testdir": "testdir",
8734
+ "trusted_authors": "trustedAuthors",
8691
8735
  "tsconfig": "tsconfig",
8692
8736
  "tsconfig_dev": "tsconfigDev",
8693
8737
  "tsconfig_dev_file": "tsconfigDevFile",
@@ -8849,6 +8893,7 @@ class NpmPackageOptions:
8849
8893
  stale: typing.Optional[builtins.bool] = None,
8850
8894
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
8851
8895
  testdir: typing.Optional[builtins.str] = None,
8896
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
8852
8897
  tsconfig: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
8853
8898
  tsconfig_dev: typing.Optional[typing.Union["_projen_javascript_04054675.TypescriptConfigOptions", typing.Dict[builtins.str, typing.Any]]] = None,
8854
8899
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -9007,6 +9052,7 @@ class NpmPackageOptions:
9007
9052
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
9008
9053
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
9009
9054
  :param testdir: (experimental) Jest tests directory. Tests files should be named ``xxx.test.ts``. If this directory is under ``srcdir`` (e.g. ``src/test``, ``src/__tests__``), then tests are going to be compiled into ``lib/`` and executed as javascript. If the test directory is outside of ``src``, then we configure jest to compile the code in-memory. Default: "test"
9055
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
9010
9056
  :param tsconfig: (experimental) Custom TSConfig. Default: - default options
9011
9057
  :param tsconfig_dev: (experimental) Custom tsconfig options for the development tsconfig.json file (used for testing). Default: - use the production tsconfig options
9012
9058
  :param tsconfig_dev_file: (experimental) The name (and path) of the development tsconfig file. By default this lives inside the test directory (e.g. ``test/tsconfig.json``) so that the TypeScript language service resolves it as the nearest config for test files. Default: - "{testdir}/tsconfig.json"
@@ -9231,6 +9277,7 @@ class NpmPackageOptions:
9231
9277
  check_type(argname="argument stale", value=stale, expected_type=type_hints["stale"])
9232
9278
  check_type(argname="argument stale_options", value=stale_options, expected_type=type_hints["stale_options"])
9233
9279
  check_type(argname="argument testdir", value=testdir, expected_type=type_hints["testdir"])
9280
+ check_type(argname="argument trusted_authors", value=trusted_authors, expected_type=type_hints["trusted_authors"])
9234
9281
  check_type(argname="argument tsconfig", value=tsconfig, expected_type=type_hints["tsconfig"])
9235
9282
  check_type(argname="argument tsconfig_dev", value=tsconfig_dev, expected_type=type_hints["tsconfig_dev"])
9236
9283
  check_type(argname="argument tsconfig_dev_file", value=tsconfig_dev_file, expected_type=type_hints["tsconfig_dev_file"])
@@ -9525,6 +9572,8 @@ class NpmPackageOptions:
9525
9572
  self._values["stale_options"] = stale_options
9526
9573
  if testdir is not None:
9527
9574
  self._values["testdir"] = testdir
9575
+ if trusted_authors is not None:
9576
+ self._values["trusted_authors"] = trusted_authors
9528
9577
  if tsconfig is not None:
9529
9578
  self._values["tsconfig"] = tsconfig
9530
9579
  if tsconfig_dev is not None:
@@ -11352,6 +11401,15 @@ class NpmPackageOptions:
11352
11401
  result = self._values.get("testdir")
11353
11402
  return typing.cast(typing.Optional[builtins.str], result)
11354
11403
 
11404
+ @builtins.property
11405
+ def trusted_authors(self) -> typing.Optional[typing.List[builtins.str]]:
11406
+ '''Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests.
11407
+
11408
+ :default: []
11409
+ '''
11410
+ result = self._values.get("trusted_authors")
11411
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
11412
+
11355
11413
  @builtins.property
11356
11414
  def tsconfig(
11357
11415
  self,
@@ -11644,6 +11702,7 @@ class PythonPackage(
11644
11702
  setuptools: typing.Optional[builtins.bool] = None,
11645
11703
  stale: typing.Optional[builtins.bool] = None,
11646
11704
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
11705
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
11647
11706
  uv: typing.Optional[builtins.bool] = None,
11648
11707
  uv_options: typing.Optional[typing.Union["_projen_python_04054675.UvOptions", typing.Dict[builtins.str, typing.Any]]] = None,
11649
11708
  venv: typing.Optional[builtins.bool] = None,
@@ -11707,6 +11766,7 @@ class PythonPackage(
11707
11766
  :param setuptools: (experimental) Use setuptools with a setup.py script for packaging and publishing. Default: - true, unless poetry is true, then false
11708
11767
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
11709
11768
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
11769
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
11710
11770
  :param uv: (experimental) Use uv to manage your project dependencies, virtual environment, and (optional) packaging/publishing. Default: false
11711
11771
  :param uv_options: (experimental) Additional options to set for uv if using uv.
11712
11772
  :param venv: (experimental) Use venv to manage a virtual environment for installing dependencies inside. Default: - true, unless poetry is true, then false
@@ -11770,6 +11830,7 @@ class PythonPackage(
11770
11830
  setuptools=setuptools,
11771
11831
  stale=stale,
11772
11832
  stale_options=stale_options,
11833
+ trusted_authors=trusted_authors,
11773
11834
  uv=uv,
11774
11835
  uv_options=uv_options,
11775
11836
  venv=venv,
@@ -11857,6 +11918,7 @@ class PythonPackage(
11857
11918
  "setuptools": "setuptools",
11858
11919
  "stale": "stale",
11859
11920
  "stale_options": "staleOptions",
11921
+ "trusted_authors": "trustedAuthors",
11860
11922
  "uv": "uv",
11861
11923
  "uv_options": "uvOptions",
11862
11924
  "venv": "venv",
@@ -11924,6 +11986,7 @@ class PythonPackageOptions:
11924
11986
  setuptools: typing.Optional[builtins.bool] = None,
11925
11987
  stale: typing.Optional[builtins.bool] = None,
11926
11988
  stale_options: typing.Optional[typing.Union["_projen_github_04054675.StaleOptions", typing.Dict[builtins.str, typing.Any]]] = None,
11989
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
11927
11990
  uv: typing.Optional[builtins.bool] = None,
11928
11991
  uv_options: typing.Optional[typing.Union["_projen_python_04054675.UvOptions", typing.Dict[builtins.str, typing.Any]]] = None,
11929
11992
  venv: typing.Optional[builtins.bool] = None,
@@ -11988,6 +12051,7 @@ class PythonPackageOptions:
11988
12051
  :param setuptools: (experimental) Use setuptools with a setup.py script for packaging and publishing. Default: - true, unless poetry is true, then false
11989
12052
  :param stale: (experimental) Auto-close of stale issues and pull request. See ``staleOptions`` for options. Default: false
11990
12053
  :param stale_options: (experimental) Auto-close stale issues and pull requests. To disable set ``stale`` to ``false``. Default: - see defaults in ``StaleOptions``
12054
+ :param trusted_authors: Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests. Default: []
11991
12055
  :param uv: (experimental) Use uv to manage your project dependencies, virtual environment, and (optional) packaging/publishing. Default: false
11992
12056
  :param uv_options: (experimental) Additional options to set for uv if using uv.
11993
12057
  :param venv: (experimental) Use venv to manage a virtual environment for installing dependencies inside. Default: - true, unless poetry is true, then false
@@ -12086,6 +12150,7 @@ class PythonPackageOptions:
12086
12150
  check_type(argname="argument setuptools", value=setuptools, expected_type=type_hints["setuptools"])
12087
12151
  check_type(argname="argument stale", value=stale, expected_type=type_hints["stale"])
12088
12152
  check_type(argname="argument stale_options", value=stale_options, expected_type=type_hints["stale_options"])
12153
+ check_type(argname="argument trusted_authors", value=trusted_authors, expected_type=type_hints["trusted_authors"])
12089
12154
  check_type(argname="argument uv", value=uv, expected_type=type_hints["uv"])
12090
12155
  check_type(argname="argument uv_options", value=uv_options, expected_type=type_hints["uv_options"])
12091
12156
  check_type(argname="argument venv", value=venv, expected_type=type_hints["venv"])
@@ -12199,6 +12264,8 @@ class PythonPackageOptions:
12199
12264
  self._values["stale"] = stale
12200
12265
  if stale_options is not None:
12201
12266
  self._values["stale_options"] = stale_options
12267
+ if trusted_authors is not None:
12268
+ self._values["trusted_authors"] = trusted_authors
12202
12269
  if uv is not None:
12203
12270
  self._values["uv"] = uv
12204
12271
  if uv_options is not None:
@@ -12873,6 +12940,15 @@ class PythonPackageOptions:
12873
12940
  result = self._values.get("stale_options")
12874
12941
  return typing.cast(typing.Optional["_projen_github_04054675.StaleOptions"], result)
12875
12942
 
12943
+ @builtins.property
12944
+ def trusted_authors(self) -> typing.Optional[typing.List[builtins.str]]:
12945
+ '''Authors whose pull requests the merge queue merges without an approval, such as the single maintainer of a repository, who cannot approve their own pull requests.
12946
+
12947
+ :default: []
12948
+ '''
12949
+ result = self._values.get("trusted_authors")
12950
+ return typing.cast(typing.Optional[typing.List[builtins.str]], result)
12951
+
12876
12952
  @builtins.property
12877
12953
  def uv(self) -> typing.Optional[builtins.bool]:
12878
12954
  '''(experimental) Use uv to manage your project dependencies, virtual environment, and (optional) packaging/publishing.
@@ -13253,6 +13329,7 @@ def _typecheckingstub__3a6354f4c0532263f309ca59025d89b070b95588f76bd5815340cc71a
13253
13329
  stale: typing.Optional[builtins.bool] = None,
13254
13330
  stale_options: typing.Optional[typing.Union[_projen_github_04054675.StaleOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13255
13331
  testdir: typing.Optional[builtins.str] = None,
13332
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
13256
13333
  tsconfig: typing.Optional[typing.Union[_projen_javascript_04054675.TypescriptConfigOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13257
13334
  tsconfig_dev: typing.Optional[typing.Union[_projen_javascript_04054675.TypescriptConfigOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13258
13335
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -13449,6 +13526,7 @@ def _typecheckingstub__bcc0f0f3d874afabc142961b7ca192083fcad906385166f2e47f7e739
13449
13526
  stale: typing.Optional[builtins.bool] = None,
13450
13527
  stale_options: typing.Optional[typing.Union[_projen_github_04054675.StaleOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13451
13528
  testdir: typing.Optional[builtins.str] = None,
13529
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
13452
13530
  tsconfig: typing.Optional[typing.Union[_projen_javascript_04054675.TypescriptConfigOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13453
13531
  tsconfig_dev: typing.Optional[typing.Union[_projen_javascript_04054675.TypescriptConfigOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13454
13532
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -13617,6 +13695,7 @@ def _typecheckingstub__b17dce6f2f04ceb519c781a818d66bcf4fef528d5b613028b126fd373
13617
13695
  stale: typing.Optional[builtins.bool] = None,
13618
13696
  stale_options: typing.Optional[typing.Union[_projen_github_04054675.StaleOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13619
13697
  testdir: typing.Optional[builtins.str] = None,
13698
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
13620
13699
  tsconfig: typing.Optional[typing.Union[_projen_javascript_04054675.TypescriptConfigOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13621
13700
  tsconfig_dev: typing.Optional[typing.Union[_projen_javascript_04054675.TypescriptConfigOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13622
13701
  tsconfig_dev_file: typing.Optional[builtins.str] = None,
@@ -13701,6 +13780,7 @@ def _typecheckingstub__882525f8fb69251a060fbbe97c2383313ea4b9c0269874cb1d13172a5
13701
13780
  setuptools: typing.Optional[builtins.bool] = None,
13702
13781
  stale: typing.Optional[builtins.bool] = None,
13703
13782
  stale_options: typing.Optional[typing.Union[_projen_github_04054675.StaleOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13783
+ trusted_authors: typing.Optional[typing.Sequence[builtins.str]] = None,
13704
13784
  uv: typing.Optional[builtins.bool] = None,
13705
13785
  uv_options: typing.Optional[typing.Union[_projen_python_04054675.UvOptions, typing.Dict[builtins.str, typing.Any]]] = None,
13706
13786
  venv: typing.Optional[builtins.bool] = None,
@@ -18,7 +18,7 @@ import constructs._jsii
18
18
  import projen._jsii
19
19
 
20
20
  __jsii_assembly__ = jsii.JSIIAssembly.load(
21
- "projen-modules", "3.2.1", __name__[0:-6], "projen-modules@3.2.1.jsii.tgz"
21
+ "projen-modules", "3.2.3", __name__[0:-6], "projen-modules@3.2.3.jsii.tgz"
22
22
  )
23
23
 
24
24
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: projen_modules
3
- Version: 3.2.1
3
+ Version: 3.2.3
4
4
  Summary: A collection of projen modules
5
5
  Home-page: https://github.com/daveshepherd/projen-modules.git
6
6
  Author: Dave Shepherd<dave.shepherd@endor.me.uk>
@@ -57,7 +57,7 @@ Types of testing:
57
57
 
58
58
  ## GitHub Configuration
59
59
 
60
- All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request's checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
60
+ All pull requests are merged by the [Mergify](https://mergify.com) merge queue, configured in `.mergify.yml`. Once a pull request is approved, or is opened by `daveshepherd`, and its checks pass, Mergify queues it, brings it up to date with the default branch, waits for the checks again and squash merges it. Draft pull requests and those labelled `do-not-merge` are not merged.
61
61
 
62
62
  The repository must be configured as below so that nothing can be merged without going through the queue.
63
63
 
@@ -73,6 +73,10 @@ In **Settings → General → Pull Requests**:
73
73
  * Untick **Allow auto-merge**, because GitHub's own auto-merge merges outside the queue.
74
74
  * Tick **Automatically delete head branches**.
75
75
 
76
+ ### Actions settings
77
+
78
+ In **Settings → Actions → General**, set **Approval for running fork pull request workflows from contributors** to **Require approval for all external contributors**. A pull request from a fork runs its own copy of the workflows, so it can change how the required checks pass.
79
+
76
80
  ### Code scanning
77
81
 
78
82
  CodeQL runs from `.github/workflows/codeql.yml`, which is managed by projen. In **Settings → Advanced Security**, leave CodeQL **Default setup** off, because it cannot run alongside this workflow. Under **Protection rules**, keep the **Check run failure threshold** at **High or higher** for security alerts and **Errors** for other alerts, as this decides whether the `CodeQL` check fails. Private repositories also need GitHub Code Security enabled there for code scanning results to be uploaded.
@@ -84,7 +88,7 @@ In **Settings → Rules → Rulesets**, create a branch ruleset with enforcement
84
88
  * **Bypass list**: the **Mergify** app only, in **Exempt** mode. Do not add admins or other roles, as anyone on this list can merge without the queue.
85
89
  * **Restrict updates**: only bypass actors can update the branch, so pull requests cannot be merged from the GitHub UI or CLI and commits cannot be pushed directly.
86
90
  * **Restrict deletions** and **Block force pushes**.
87
- * **Require a pull request before merging**, with 0 required approvals.
91
+ * **Require a pull request before merging**, with 0 required approvals, because Mergify requires approvals itself for authors other than `daveshepherd` and is exempt from this rule. Tick **Dismiss stale pull request approvals when new commits are pushed**, so that commits pushed after an approval need approving again before the queue merges them.
88
92
  * **Require status checks to pass**, listing the checks that `.mergify.yml` waits for: `build`, `package-js`, `package-python`. Leave **Require branches to be up to date before merging** unticked, as the queue already updates and retests each pull request.
89
93
  * **Require code scanning results**, with the tool **CodeQL**, security alerts set to **High or higher** and alerts set to **Errors**. Mergify is exempt from this rule, so `.mergify.yml` also waits for the `CodeQL` check instead.
90
94
 
@@ -11,4 +11,4 @@ src/projen_modules.egg-info/dependency_links.txt
11
11
  src/projen_modules.egg-info/requires.txt
12
12
  src/projen_modules.egg-info/top_level.txt
13
13
  src/projen_modules/_jsii/__init__.py
14
- src/projen_modules/_jsii/projen-modules@3.2.1.jsii.tgz
14
+ src/projen_modules/_jsii/projen-modules@3.2.3.jsii.tgz
File without changes
File without changes