Skip to content

refactor: move gitConfig logic to parent and call it in child using super.gitConfig()#590

Merged
maxprilutskiy merged 7 commits intolingodotdev:mainfrom
SXsid:main
Apr 9, 2025
Merged

refactor: move gitConfig logic to parent and call it in child using super.gitConfig()#590
maxprilutskiy merged 7 commits intolingodotdev:mainfrom
SXsid:main

Conversation

@SXsid
Copy link
Copy Markdown
Contributor

@SXsid SXsid commented Mar 27, 2025

#581 move gitConfig logic to parent and execute in child using super.gitConfig()

@SXsid SXsid changed the title some changes in gitConfig refactor: move gitConfig logic to parent and call it in child using super.gitConfig() Mar 27, 2025
@mathio mathio force-pushed the main branch 2 times, most recently from e40c985 to a4617e0 Compare April 2, 2025 10:05
@maxprilutskiy maxprilutskiy requested a review from Copilot April 4, 2025 19:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

action/src/platforms/_base.ts:27

  • [nitpick] Consider specifying an explicit return type (e.g., void) for gitConfig in the base class to ensure consistency and clarity with its usage in the child classes.
gitConfig(token?: string, repoUrl?: string) {

action/src/platforms/gitlab.ts:96

  • [nitpick] Ensure that the token and URL being passed to super.gitConfig are always valid; if there's any possibility of them being empty or null, additional validation might be needed.
super.gitConfig(glToken, url);

@maxprilutskiy maxprilutskiy merged commit 730968a into lingodotdev:main Apr 9, 2025
2 checks passed
@maxprilutskiy
Copy link
Copy Markdown
Contributor

fantastic job @SXsid !

mainstar123 pushed a commit to mainstar123/lingo.dev that referenced this pull request Jul 7, 2025
…uper.gitConfig() (lingodotdev#590)

* fix(git): add more robust error handling for Git operation

* revert: multi-platform refactoring to align with issue changes requested

* fix(action): refactor gitConfig to reduce redundancy for GitHub, GitLab, and BitBucket

* refactor: remove unnecessary imports

---------

Co-authored-by: Max Prilutskiy <5614659+maxprilutskiy@users.noreply.github.com>
17prateek12 pushed a commit to 17prateek12/lingo.dev that referenced this pull request Jan 23, 2026
…uper.gitConfig() (lingodotdev#590)

* fix(git): add more robust error handling for Git operation

* revert: multi-platform refactoring to align with issue changes requested

* fix(action): refactor gitConfig to reduce redundancy for GitHub, GitLab, and BitBucket

* refactor: remove unnecessary imports

---------

Co-authored-by: Max Prilutskiy <5614659+maxprilutskiy@users.noreply.github.com>
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