Skip to content

Commit

Permalink
[smithy-rs] Add crate versions in CHANGELOG (#2348)
Browse files Browse the repository at this point in the history
* Move rendering external contributors to a function

This commit moves the code for rendering external contributors to its own
function, in line with other render_* functions.

* Add type alias `CrateVersionMetadataMap`

This commit adds a type alias `CrateVersionMetadataMap` for a field in
`VersionsManifest`. In a subsequent commit, the `changelogger` crate
will refer to this field, and it's better for that crate to not use the
field's bare type `BTreeMap<String, CrateVersion>`.

* Render crate versions in CHANGELOG

This commit addresses a pain point brought up in #731.
A binary `changelogger` now has a new command line option
`--current-release-versions-manifest` that points to the latest
`versions.toml` in the `aws-sdk-rust` repository. The program
will generate a markdown table showing crate versions from that
manifest and include it in an expand/collapse section.

* Add a leading pipe when rendering markdown table

This commit addresses smithy-lang/smithy-rs#2348 (comment)

---------

Co-authored-by: Yuki Saito <awsaito@amazon.com>
Co-authored-by: Zelda Hessler <zhessler@amazon.com>
  • Loading branch information
3 people authored and aws-sdk-rust-ci committed Mar 28, 2023
1 parent 5743095 commit d6237c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions sdk/kinesis/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ impl DeregisterStreamConsumerInput {
.set_use_fips(_config.use_fips)
.set_endpoint(_config.endpoint_url.clone())
.set_operation_type(Some("control".to_string()))
.set_consumer_arn(self.consumer_arn.clone())
.set_stream_arn(self.stream_arn.clone())
.set_consumer_arn(self.consumer_arn.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -923,8 +923,8 @@ impl DescribeStreamConsumerInput {
.set_use_fips(_config.use_fips)
.set_endpoint(_config.endpoint_url.clone())
.set_operation_type(Some("control".to_string()))
.set_stream_arn(self.stream_arn.clone())
.set_consumer_arn(self.consumer_arn.clone())
.set_stream_arn(self.stream_arn.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down
24 changes: 12 additions & 12 deletions sdk/s3control/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ impl CreateAccessPointInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -766,8 +766,8 @@ impl DeleteAccessPointInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -1041,8 +1041,8 @@ impl DeleteAccessPointPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -1453,8 +1453,8 @@ impl DeleteBucketLifecycleConfigurationInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -2836,8 +2836,8 @@ impl GetAccessPointInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -3249,8 +3249,8 @@ impl GetAccessPointPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -3804,8 +3804,8 @@ impl GetBucketInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -5630,8 +5630,8 @@ impl ListAccessPointsInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -6611,8 +6611,8 @@ impl PutAccessPointPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_account_id(self.account_id.clone())
.set_access_point_name(self.name.clone())
.set_account_id(self.account_id.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -6918,8 +6918,8 @@ impl PutBucketLifecycleConfigurationInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -7089,8 +7089,8 @@ impl PutBucketPolicyInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down Expand Up @@ -7252,8 +7252,8 @@ impl PutBucketTaggingInput {
.set_endpoint(_config.endpoint_url.clone())
.set_use_arn_region(_config.use_arn_region)
.set_requires_account_id(Some(true))
.set_bucket(self.bucket.clone())
.set_account_id(self.account_id.clone())
.set_bucket(self.bucket.clone())
.build()
.map_err(|err| {
aws_smithy_http::endpoint::ResolveEndpointError::from_source(
Expand Down
6 changes: 3 additions & 3 deletions versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
smithy_rs_revision = '5183ccbd6c8874a7379f5f535762b4fddbc49478'
smithy_rs_revision = 'dbafd684710a29a4f2a1840a2adf588df9ad0beb'
aws_doc_sdk_examples_revision = '97a177aab8c3d2fef97416cb66e4b4d0da840138'

[manual_interventions]
Expand Down Expand Up @@ -1057,7 +1057,7 @@ model_hash = '9ec8a92782fbef7e2cf07fc9b5e656aa37b59668baff33acae10f270cfff4193'
[crates.aws-sdk-kinesis]
category = 'AwsSdk'
version = '0.54.0'
source_hash = '3aea79a90ad32553d21c5e636dcc3af351d7f8fe81b2c1f5be31517957b7d950'
source_hash = 'c67e5d679a98faa46d4857c525e63e6dfb059edf96a630e6d1d20c8e73bbd5c7'
model_hash = '5eaef8321cea414140d87258e714988d88f3e41d9cdf4b83a1417027cb702cb9'

[crates.aws-sdk-kinesisanalytics]
Expand Down Expand Up @@ -1669,7 +1669,7 @@ model_hash = 'fb47cfd49cf2d9250063914599f703ed365b51be373988dc3f2cd64321c9583b'
[crates.aws-sdk-s3control]
category = 'AwsSdk'
version = '0.54.0'
source_hash = '1488a66859dfc151e178db759c219aeb0bb4fceaee4116961187237d94ae97ed'
source_hash = '98fb44fe5f1d27a59c2d5978d1d29bf684efdbbda40ab19814a66d76cdd6d780'
model_hash = '930bd33c05c393293591ae01cbdb6637fb5062ed3a3ad5e2dadddd8108cc8478'

[crates.aws-sdk-s3outposts]
Expand Down

0 comments on commit d6237c6

Please sign in to comment.