Skip to content

Conversation

@marvin-roesch
Copy link
Contributor

This is a follow-up to #501 as requested by @stefanprodan. I have so far only added slugs for GitLab branches, tags, and merge requests since I've realized that none of the providers actually expose a "slug" for these particular types in their APIs.

GitLab at least has CI/CD variables like CI_COMMIT_REF_SLUG where they provide these to users. AFAICT, neither Azure DevOps nor GitHub have a "standard" definition of how to slugify their data.

I have introduced a dedicated slugification function that matches GitLab's behavior, as slug.Make is configured globally and changing the defaults would mean a breaking change.

Let me know if you'd rather use a different approach or if this should also be expanded to GitHub and Azure DevOps (maybe with slug.Make there).

Copy link
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@marvin-roesch
Copy link
Contributor Author

Having trouble with KinD on my local machine right now, so sorry for playing whack-a-mole with the tests 😅

@stefanprodan stefanprodan added the area/resourceset ResourceSet related issues and PRs label Dec 10, 2025
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @marvin-roesch

@stefanprodan stefanprodan merged commit 3969476 into controlplaneio-fluxcd:main Dec 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/resourceset ResourceSet related issues and PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants