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

Integrations update #1315

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Conversation

pascal-brand38
Copy link
Contributor

Browser Test Checklist

I have tested this PR on at least three of the following browsers:

  • Chrome / Chromium
  • Firefox
  • Android Firefox
  • Safari
  • iOS Safari

Serie of 4 commits to fix close #1313.
It consists of an update of scripts/update-integrations.mjs:

  • use of yargs to manage command-line options of the script
  • optimization of safeUpdateExistingIntegrations()
  • adding the option fix-homepageurl to update wrong homepage url of integrations
  • fix src/content/integration/**/*.md files using the result of the script npm run update:integrations -- --fix-homepageurl

Because #1313 is still in discussion, and as this script is used in nightly and weekly builds, I think special attention has to be paid. This is why this pull-request is open as a draft.

Thanks for your help!

Copy link

netlify bot commented Nov 2, 2024

👷 Deploy request for astro-www-2 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5050c57

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Thanks @pascal-brand38! Left a couple of preliminary notes regarding the added dependencies. (These are also breaking the Netlify build due to the lock file being out of date, but I think we may not need them anyway.)

scripts/update-integrations.mjs Outdated Show resolved Hide resolved
scripts/update-integrations.mjs Outdated Show resolved Hide resolved
When running the script
    npm run update:integrations -- --unsafe
homepage urls that return 404 status code are replaced
by the link to the package on npm

Closes withastro#1313

Signed-off-by: Pascal Brand <[email protected]>
Signed-off-by: Pascal Brand <[email protected]>
@pascal-brand38 pascal-brand38 marked this pull request as ready for review November 5, 2024 11:26
Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Left one small note, but looks good to me — thanks @pascal-brand38!

scripts/update-integrations.mjs Outdated Show resolved Hide resolved
A homepage url is considered as wrong when:
- the response is greater than 400
- or it does not respond

Signed-off-by: Pascal Brand <[email protected]>
Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Thanks again for taking care to add this @pascal-brand38! I’ll merge this and run the “unsafe” script now to test it out 🚀

@delucis delucis merged commit c971373 into withastro:main Nov 6, 2024
2 checks passed
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.

Integration: some homepage urls are wrong
3 participants