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: Added 'slugify' sprig function #15188

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

Aym3nTN
Copy link
Contributor

@Aym3nTN Aym3nTN commented Aug 23, 2023

Closes #10622

@Aym3nTN Aym3nTN changed the title Added 'slugify' sprig function feat: Added 'slugify' sprig function Aug 23, 2023
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (c9aa373) 49.68% compared to head (0e5bc0d) 49.73%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #15188      +/-   ##
==========================================
+ Coverage   49.68%   49.73%   +0.04%     
==========================================
  Files         267      267              
  Lines       46362    46390      +28     
==========================================
+ Hits        23036    23072      +36     
+ Misses      21065    21057       -8     
  Partials     2261     2261              
Files Coverage Δ
applicationset/utils/utils.go 80.71% <92.85%> (+1.01%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

applicationset/utils/utils.go Show resolved Hide resolved
applicationset/utils/utils_test.go Show resolved Hide resolved
applicationset/utils/utils.go Show resolved Hide resolved
@Aym3nTN Aym3nTN force-pushed the slugify-sprig-function branch from 6e77137 to bfb80e0 Compare August 24, 2023 16:50
@Aym3nTN
Copy link
Contributor Author

Aym3nTN commented Aug 24, 2023

Just documented the function and wrote the tests, please have a look 👀

@crenshaw-dev
Copy link
Member

Looks like the unit test failure is Real

@Aym3nTN Aym3nTN force-pushed the slugify-sprig-function branch from 8e2d60d to b4c5e14 Compare October 2, 2023 16:41
@Aym3nTN
Copy link
Contributor Author

Aym3nTN commented Oct 2, 2023

Looks like the unit test failure is Real

A bad test case from some another MR was added to TestGenerateAppsUsingPullRequestGenerator by mistake, I have removed it.

@Aym3nTN
Copy link
Contributor Author

Aym3nTN commented Oct 3, 2023

@crenshaw-dev All checks have passed 🎉

@Aym3nTN Aym3nTN force-pushed the slugify-sprig-function branch 2 times, most recently from d034619 to 1b528cc Compare October 12, 2023 08:37
Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
@Aym3nTN Aym3nTN force-pushed the slugify-sprig-function branch from 1b528cc to ed2cf7b Compare October 12, 2023 08:43
Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
@Aym3nTN
Copy link
Contributor Author

Aym3nTN commented Oct 12, 2023

@crenshaw-dev I've re-resolved the conflicts, would you please merge it this time?

@Aym3nTN
Copy link
Contributor Author

Aym3nTN commented Oct 30, 2023

@crenshaw-dev in case you've missed my previous comment

@crenshaw-dev I've re-resolved the conflicts, would you please merge it this time?

@crenshaw-dev crenshaw-dev merged commit ebb8649 into argoproj:master Nov 15, 2023
22 checks passed
GilUpstream pushed a commit to GilUpstream/argo-cd that referenced this pull request Nov 15, 2023
* Added 'slugify' sprig function

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

* Retrigger CI

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

---------

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
Signed-off-by: Gilad Salmon <gilad.salmon@gmail.com>
vladfr pushed a commit to vladfr/argo-cd that referenced this pull request Dec 13, 2023
* Added 'slugify' sprig function

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

* Retrigger CI

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

---------

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
tesla59 pushed a commit to tesla59/argo-cd that referenced this pull request Dec 16, 2023
* Added 'slugify' sprig function

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

* Retrigger CI

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

---------

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
lyda pushed a commit to lyda/argo-cd that referenced this pull request Mar 28, 2024
* Added 'slugify' sprig function

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

* Retrigger CI

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

---------

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
Signed-off-by: Kevin Lyda <kevin@lyda.ie>
Hariharasuthan99 pushed a commit to AmadeusITGroup/argo-cd that referenced this pull request Jun 16, 2024
* Added 'slugify' sprig function

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

* Retrigger CI

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>

---------

Signed-off-by: Aymen Ben Tanfous <aymen.bentanfous@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fix: Sticking to DNS label standard in branch_slug (Gitlab PR Generators)
3 participants