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

fix: repo info for Gitlab does not support group nesting #140

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

faymard
Copy link

@faymard faymard commented Jan 8, 2025

What does this PR do?

🛑 Please open an issue first to discuss any significant work and flesh out details/direction - we would hate for your time to be wasted.
Consult the CONTRIBUTING guide for submitting pull-requests.

  • Modify git-util.ts to support hosting Harmonix reference repositories in a nested Gitlab group
  • Remove places where groups were hardcoded
  • Fixes in GitlabApi::getFileContents (parse base 64) and GitlabApi::commitContent (redundant json() call)

Motivation

We are working on integrating Harmonix in an existing Backstage and GitLab environment. Everything went surprisingly fine with installing/integrating the plugins and hosting Harmonix templates, but we are encountering an issue when deleting resources from Backstage.

It seems that it comes from the way repository name and group are computed. This PR aims to correct it to support different nesting levels in GitLab.

GitHub is not impacted because deep nesting is not possible (it is always organization/repo) but I thought it would be better to unify how these informations are queried.

For Moderators

  • Compile, build, tests successful before merge?

Additional Notes

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.

1 participant