Skip to content

refactor: gitLab callback to improve type handling#4396

Open
watercubz wants to merge 1 commit into
Dokploy:canaryfrom
watercubz:fix-issue-4362
Open

refactor: gitLab callback to improve type handling#4396
watercubz wants to merge 1 commit into
Dokploy:canaryfrom
watercubz:fix-issue-4362

Conversation

@watercubz
Copy link
Copy Markdown

@watercubz watercubz commented May 13, 2026

What is this PR about?

The type assertion was removed; the findGitlabById function only accepts the string type, so making an assertion causes type redundancy and reduces type safety; typescript infers about the type without issue.

similarly, the case is being handled where result.expires_in for some reason comes out empty, null or undefined or any other type that is not the expected one, and an exception is called in the case that an unexpected value arrives.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Issues related (if applicable)

closes #4362

Screenshots (if applicable)

the type assertion was removed; the `findGitlabById` function only accepts string type, so making an assertion causes type redundancy and reduces type safety.

similarly, the case is being handled where `result.expires_in` for some reason comes out empty, null or undefined or any other type that is not the expected one, and an exception is called in the case that an unexpected value arrives.
@watercubz watercubz requested a review from Siumauricio as a code owner May 13, 2026 01:00
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gitlab intigretion 500 error

1 participant