Skip to content

Commit 69fb8e1

Browse files
authored
Add test to assert CHANGELOG format (#1582)
1 parent c669405 commit 69fb8e1

File tree

25 files changed

+430
-159
lines changed

25 files changed

+430
-159
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ jobs:
148148

149149
- name: Checkout code
150150
uses: actions/checkout@v3
151+
with:
152+
fetch-depth: 0
151153

152154
- name: Initialize tests
153155
run: make initialize -j 4

src/Core/CHANGELOG.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165

166166
## 1.7.2
167167

168+
### Changed
169+
168170
- Make sure we can get credentials even if the cache storage fails
169171
- Clear `realpath` cache to make sure we get the latest credentials token
170172

@@ -236,15 +238,15 @@
236238
- Support for CloudFront in `AwsClientFactory`
237239
- Support for RdsDataService in `AwsClientFactory`
238240

239-
### Fixed
240-
241-
- Allows non-AWS regions when using custom endpoints
242-
243241
### Changed
244242

245243
- Add more context to error logs
246244
- Log level for 404 responses changed to "info".
247245

246+
### Fixed
247+
248+
- Allows non-AWS regions when using custom endpoints
249+
248250
## 1.2.0
249251

250252
### Added
@@ -256,7 +258,7 @@
256258
- Support for global and regional endpoints
257259
- Add a `Configuration::optionExists` to allow third parties to check if an option is available (needed by libraries supporting several versions of core)
258260

259-
### Deprecation
261+
### Deprecated
260262

261263
- Clients extending `AbstractApi` should override `getEndpointMetata`. The method will be abstract in 2.0
262264
- Custom endpoints should not contain `%region%` and `%service` placeholder. They won't be replaced anymore in 2.0
@@ -321,6 +323,13 @@
321323

322324
## 0.5.0
323325

326+
### Removed
327+
328+
- The input's `validate()` function was merged with the `request()` function.
329+
- `Configuration::isDefault()`.
330+
- Protected property `AbstractApi::$logger`.
331+
- `AsyncAws\Core\StreamableBody` in favor of `AsyncAws\Core\Stream\ResponseBodyStream`.
332+
324333
### Added
325334

326335
- Add support for multiregion via `@region` input parameter.
@@ -334,13 +343,6 @@
334343
- Internal `AsyncAws\Core\RequestContext`.
335344
- Internal `AsyncAws\Core\Stream\RewindableStream`.
336345

337-
### Removed
338-
339-
- The input's `validate()` function was merged with the `request()` function.
340-
- `Configuration::isDefault()`.
341-
- Protected property `AbstractApi::$logger`.
342-
- `AsyncAws\Core\StreamableBody` in favor of `AsyncAws\Core\Stream\ResponseBodyStream`.
343-
344346
### Changed
345347

346348
- Exceptions will contain more information from the HTTP response.
@@ -360,6 +362,11 @@
360362

361363
## 0.4.0
362364

365+
### Removed
366+
367+
- Public `AbstractApi::request()` was removed.
368+
- Protected function `AbstractApi::getEndpoint()` was made private.
369+
363370
### Added
364371

365372
- Test class `AsyncAws\Core\Test\SimpleStreamableBody`
@@ -372,11 +379,6 @@
372379
- Class `AsyncAws\Core\Stream\StreamFactory` is not internal anymore.
373380
- Removed `requestBody()`, `requestHeaders()`, `requestQuery()` and `requestUri()` input classes. They are replaced with `request()`.
374381

375-
### Removed
376-
377-
- Public `AbstractApi::request()` was removed.
378-
- Protected function `AbstractApi::getEndpoint()` was made private.
379-
380382
### Fixed
381383

382384
- Fix Instance Provider Role fetching

src/Integration/Aws/DynamoDbSession/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
## 1.0.1
1212

13-
### Updated
13+
### Changed
1414

1515
- Fix deprecations triggered by php 8.1
1616

1717
## 1.0.0
1818

19-
### Updated
19+
### Changed
2020

2121
- Use async-aws/dynamo-db: ^1.0
2222

src/Integration/Aws/SimpleS3/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 2.0.0
66

7-
### BC Break
7+
### BC-BREAK
88

99
- Upgrade to `async-aws/s3` 2.0
1010

@@ -22,7 +22,7 @@
2222

2323
## 1.0.0
2424

25-
No changes since 0.1.2.
25+
- Empty release
2626

2727
## 0.1.2
2828

src/Integration/Monolog/CloudWatch/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
## 1.0.1
1212

13-
### Updated
13+
### Changed
1414

1515
- Remove unnecessary sequenceToken from log events
1616

1717
## 1.0.0
1818

19-
### Updated
19+
### Changed
2020

2121
- Use async-aws/cloud-watch-logs: ^1.0
2222

@@ -32,7 +32,7 @@
3232

3333
## 0.2.0
3434

35-
### Deprecation
35+
### Deprecated
3636

3737
- `CloudWatchLogsHandler` constructor arguments changed
3838

src/Service/Athena/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## NOT RELEASED
44

5-
### Changed
6-
7-
- Allow passing explicit null values for optional fields of input objects
8-
95
### Added
106

117
- Added `il-central-1` region
128

9+
### Changed
10+
11+
- Allow passing explicit null values for optional fields of input objects
12+
1313
## 2.0.0
1414

1515
### BC-BREAK

src/Service/CloudFormation/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@
8484

8585
## 0.4.0
8686

87+
### Removed
88+
89+
- Dependency on `symfony/http-client-contracts`
90+
- All `validate()` methods on the inputs. They are merged with `request()`.
91+
8792
### Changed
8893

8994
- Moved value objects to a dedicated namespace.
9095
- Results' `populateResult()` has only one argument. It takes a `AsyncAws\Core\Response`.
9196
- Using `DateTimeImmutable` instead of `DateTimeInterface`
9297
- The `AsyncAws\CloudFormation\Enum\*`, `AsyncAws\CloudFormation\Input\*` and `AsyncAws\CloudFormation\ValueObject*` classes are marked final.
9398

94-
### Removed
95-
96-
- Dependency on `symfony/http-client-contracts`
97-
- All `validate()` methods on the inputs. They are merged with `request()`.
98-
9999
## 0.3.0
100100

101101
### Added

src/Service/CloudWatchLogs/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151

5252
## 1.2.0
5353

54-
### Fixed
55-
56-
- Assert the provided Input can be json-encoded.
57-
5854
### Added
5955

6056
- AWS api-change: Update documentation
6157
- Added operation `createLogGroup`
6258

59+
### Fixed
60+
61+
- Assert the provided Input can be json-encoded.
62+
6363
## 1.1.0
6464

6565
### Added

src/Service/DynamoDb/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@
106106

107107
## 0.3.0
108108

109-
### Added
110-
111-
- Added operation `UpdateTimeToLiveInput`
112-
113109
### Removed
114110

115111
- Removes methods `getServiceCode`, `getSignatureVersion` and `getSignatureScopeName` from Client.
116112

113+
### Added
114+
115+
- Added operation `UpdateTimeToLiveInput`
116+
117117
### Fixed
118118

119119
- Add return typehint for `listTables`, `query` and `scan`

src/Service/Ecr/CHANGELOG.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010

1111
### Added
1212

13+
- AWS api-change: Add support for the `il-central-1` region
1314
- Avoid overriding the exception message with the raw message
1415

1516
### Changed
1617

1718
- Improve parameter type and return type in phpdoc
1819

19-
### Added
20-
21-
- AWS api-change: Add support for the `il-central-1` region
22-
2320
## 1.4.0
2421

2522
### Added
@@ -48,15 +45,15 @@
4845

4946
## 1.0.0
5047

51-
### Fixed
52-
53-
- Assert the provided Input can be json-encoded.
54-
5548
### Added
5649

5750
- AWS api-change: Added `ap-northeast-3` region
5851
- AWS enhancement: Documentation updates
5952

53+
### Fixed
54+
55+
- Assert the provided Input can be json-encoded.
56+
6057
## 0.1.2
6158

6259
### Added
@@ -66,14 +63,14 @@
6663

6764
## 0.1.1
6865

69-
### Fixed
70-
71-
- AWS api-change: Added us-isob-east-1 region
72-
7366
### Deprecated
7467

7568
- AWS api-change: `GetAuthorizationTokenRequest::$registryIds` has been deprecated
7669

70+
### Fixed
71+
72+
- AWS api-change: Added us-isob-east-1 region
73+
7774
## 0.1.0
7875

7976
First version

src/Service/EventBridge/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040

4141
## 1.2.0
4242

43-
### Fixed
44-
45-
- Assert the provided Input can be json-encoded.
46-
4743
### Added
4844

4945
- AWS api-change: Adds TraceHeader to PutEventsRequestEntry to support AWS X-Ray trace-ids on events generated using the PutEvents operation.
5046
- AWS enhancement: Documentation updates
5147

48+
### Fixed
49+
50+
- Assert the provided Input can be json-encoded.
51+
5252
## 1.1.0
5353

5454
### Added

src/Service/Lambda/CHANGELOG.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@
7979

8080
## 1.5.0
8181

82-
### Fixed
82+
### Added
8383

84-
- Assert the provided Input can be json-encoded.
84+
- AWS api-change: Lambda Python 3.9 runtime launch
85+
- AWS api-change: Adds support for Lambda functions powered by AWS Graviton2 processors. Customers can now select the CPU architecture for their functions.
8586

8687
### Changed
8788

8889
- AWS enhancement: Documentation updates for Amazon Lambda.
8990

90-
### Added
91+
### Fixed
9192

92-
- AWS api-change: Lambda Python 3.9 runtime launch
93-
- AWS api-change: Adds support for Lambda functions powered by AWS Graviton2 processors. Customers can now select the CPU architecture for their functions.
93+
- Assert the provided Input can be json-encoded.
9494

9595
## 1.4.0
9696

@@ -154,18 +154,18 @@
154154

155155
## 0.4.0
156156

157+
### Removed
158+
159+
- Dependency on `symfony/http-client-contracts`
160+
- All `validate()` methods on the inputs. They are merged with `request()`.
161+
157162
### Changed
158163

159164
- Moved value objects to a dedicated namespace.
160165
- Results' `populateResult()` has only one argument. It takes a `AsyncAws\Core\Response`.
161166
- Using `DateTimeImmutable` instead of `DateTimeInterface`
162167
- The `AsyncAws\Lambda\Enum\*`, `AsyncAws\Lambda\Input\*` and `AsyncAws\Lambda\ValueObject*` classes are marked final.
163168

164-
### Removed
165-
166-
- Dependency on `symfony/http-client-contracts`
167-
- All `validate()` methods on the inputs. They are merged with `request()`.
168-
169169
## 0.3.0
170170

171171
### Added

src/Service/LocationService/CHANGELOG.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,25 @@
22

33
## NOT RELEASED
44

5-
### Changed
6-
7-
- Allow passing explicit null values for optional fields of input objects
8-
95
### Added
106

117
- AWS api-change: Added `fips-us-gov-west-1` region
128

9+
### Changed
10+
11+
- Allow passing explicit null values for optional fields of input objects
12+
1313
## 0.1.1
1414

1515
### Added
1616

1717
- Avoid overriding the exception message with the raw message
18+
- AWS api-change: This release adds support for authenticating with Amazon Location Service's Places & Routes APIs with an API Key. Also, with this release developers can publish tracked device position updates to Amazon EventBridge.
1819

1920
### Changed
2021

2122
- Improve parameter type and return type in phpdoc
2223

23-
### Added
24-
25-
- AWS api-change: This release adds support for authenticating with Amazon Location Service's Places & Routes APIs with an API Key. Also, with this release developers can publish tracked device position updates to Amazon EventBridge.
26-
2724
## 0.1.0
2825

2926
First version

0 commit comments

Comments
 (0)