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

Preview v5: Update application paths for govuk-frontend@5 #336

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

colinrotherham
Copy link
Contributor

This PR updates the GitHub URL helper for GOV.UK Frontend v5

For now, I've maintained backwards compatibility with v4

@netlify
Copy link

netlify bot commented Jul 28, 2023

Deploy Preview for govuk-frontend-docs-preview ready!

Name Link
🔨 Latest commit 6dfd665
🔍 Latest deploy log https://app.netlify.com/sites/govuk-frontend-docs-preview/deploys/64ca123c9e552b00088299d5
😎 Deploy Preview https://deploy-preview-336--govuk-frontend-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -337,14 +337,14 @@ class Test
})
url = @helper.github_url(fixture)

expect(url).to eq("https://github.com/alphagov/govuk-frontend/tree/v1.0.0/src/govuk/helpers/_clearfix.scss#L9-L15")
expect(url).to eq("https://github.com/alphagov/govuk-frontend/tree/v5.0.0/packages/govuk-frontend/src/govuk/helpers/_clearfix.scss#L9-L15")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add another test for the other part of the ternary?

So expect that when package starts with 4 it returns the old path structure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, would you mind lending a hand?

I'm guessing my way through Ruby

Copy link
Contributor Author

Choose a reason for hiding this comment

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

✅ Updated with help from @romaricpascal

colinrotherham and others added 2 commits August 2, 2023 09:21
Co-authored-by: Romaric Pascal <romaric.pascal@digital.cabinet-office.gov.uk>
@colinrotherham colinrotherham merged commit 095ad64 into release/5.0 Aug 3, 2023
5 checks passed
@colinrotherham colinrotherham deleted the v5-package-resolution branch August 3, 2023 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.

3 participants