Skip to content

Comments

Filter terraform keyword in documentation#93

Merged
sergenyalcin merged 3 commits intocrossplane:mainfrom
sergenyalcin:remove-terraform-keyword
Sep 12, 2022
Merged

Filter terraform keyword in documentation#93
sergenyalcin merged 3 commits intocrossplane:mainfrom
sergenyalcin:remove-terraform-keyword

Conversation

@sergenyalcin
Copy link
Member

Description of your changes

Fixes #567

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested validating the results of make generate for provider-aws.

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
pkg/common.go Outdated
// sentence.
func FilterDescription(description, keyword string) string {
var result []string
sentences := strings.Split(description, DescriptionSeparator)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We assume the description string will contain . only at the end of a sentence. Can you validate this across current providers?

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sergenyalcin, lgtm.

…ion.

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
@sergenyalcin sergenyalcin merged commit d28e750 into crossplane:main Sep 12, 2022
@sergenyalcin sergenyalcin deleted the remove-terraform-keyword branch September 12, 2022 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants