-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
✅ Deploy Preview for govuk-frontend-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e402571
to
3e9eed3
Compare
8c49706
to
5f66c52
Compare
5f66c52
to
b4f799b
Compare
@@ -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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
fc6b28c
to
9dc0847
Compare
1feafbc
to
acfaaf9
Compare
Co-authored-by: Romaric Pascal <romaric.pascal@digital.cabinet-office.gov.uk>
9dc0847
to
6dfd665
Compare
This PR updates the GitHub URL helper for GOV.UK Frontend v5
For now, I've maintained backwards compatibility with v4