-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(datasource): Add Unity3D #27971
feat(datasource): Add Unity3D #27971
Conversation
This adds 41k lines to the repo. Can the fixtures be reduced? |
Should be possible! I've only copied the responses directly from Unity's official feeds, to keep the tests as close to real life as possible, but I'll see how much I can remove while keeping all tests intact to get the size down. |
…sions required to pass tests
Addressed it in b6aabde:
|
Co-authored-by: Sebastian Poxhofer <[email protected]>
Co-authored-by: Sebastian Poxhofer <[email protected]>
fix: Resolves issue where a double slash is added (`https://unity.com//releases` -> `https://unity.com/releases`)
🎉 This PR is included in version 37.270.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
some small code smells 😏
|
||
export class Unity3dDatasource extends Datasource { | ||
static readonly homepage = 'https://unity.com/'; | ||
static readonly streams: { [key: string]: string } = { |
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.
should use Record<string,string>
instead
registryUrl: string | undefined, | ||
withHash: boolean, | ||
): Promise<ReleaseResult | null> { | ||
let channel = null; |
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.
Missing type
Changes
Adds a datasource for updating the runtime of a project using the Unity game engine.
Context
See #27219, implements part of #27295.
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: