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

feat(datasource): Add Unity3D #27971

Merged
merged 17 commits into from Mar 25, 2024

Conversation

ViMaSter
Copy link
Contributor

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])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

@rarkins
Copy link
Collaborator

rarkins commented Mar 17, 2024

This adds 41k lines to the repo. Can the fixtures be reduced?

@ViMaSter
Copy link
Contributor Author

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.

@ViMaSter
Copy link
Contributor Author

Addressed it in b6aabde:

  • replaced the <description> tag with a stub
  • limited stream versions:
    • 1 for beta and LTS
    • 2 for stable, as a test asserts that the stable stream has all LTS versions, but not vice-versa

lib/modules/datasource/unity3d/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.ts Outdated Show resolved Hide resolved
@ViMaSter ViMaSter requested a review from secustor March 17, 2024 23:02
lib/modules/datasource/unity3d/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/unity3d/index.spec.ts Outdated Show resolved Hide resolved
@ViMaSter ViMaSter requested a review from secustor March 24, 2024 21:34
@secustor secustor enabled auto-merge March 25, 2024 19:32
@secustor secustor added this pull request to the merge queue Mar 25, 2024
Merged via the queue into renovatebot:main with commit 0b73d68 Mar 25, 2024
37 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.270.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Member

@viceice viceice left a 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 } = {
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

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

Missing type

ViMaSter added a commit to ViMaSter/renovate that referenced this pull request Mar 30, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants