Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "--extensions" command-line option to the metadata scraper #145

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Dec 7, 2022

Description of your changes

This PR adds a --extensions command-line option to the metadata scraper to be able to specify the file extensions to scrape and improves the error given when no markdown nodes match the prelude conditions. It also makes page_title in the preludes optional so that if a scraped markdown file does not have it, the scraper will not complain.

These changes were required to get the scraper compatible with the terraform-provider-azuread repository. Also we need to specify //text()[contains(., "subcategory")] as the prelude xpath when scraping that repository.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Check against the upbound/provider-{aws,gcp,azure} repositories so that no diffs are expected in repo config/provider-metadata.yaml files
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested by scraping the terraform-provider-azuread repository to generate the config/provider-metadata.yaml file for that repository.

- Improve the error given when no markdown nodes match the prelude conditions
- Make page_title in preludes optional

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
Copy link
Member

@turkenh turkenh left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar!

@ulucinar ulucinar merged commit 02307da into crossplane:main Dec 8, 2022
@ulucinar ulucinar deleted the fix-e-64 branch December 8, 2022 10:21
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