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: add support for dynamic choices #1804

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

sisp
Copy link
Member

@sisp sisp commented Oct 8, 2024

I've added support for dynamic choices by allowing a templated string value for the choices key that renders as valid YAML. All choice styles are supported. See also https://github.com/orgs/copier-org/discussions/1193#discussioncomment-10040365.

Resolves #1193 #1212 #1359 #1746.

@sisp sisp mentioned this pull request Oct 8, 2024
@sisp sisp force-pushed the feat/dynamic-choices branch from bbd6b59 to e0e2275 Compare October 8, 2024 09:35
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.61%. Comparing base (5e57bbf) to head (e0e2275).
Report is 80 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1804      +/-   ##
==========================================
- Coverage   97.78%   97.61%   -0.17%     
==========================================
  Files          49       49              
  Lines        5108     5126      +18     
==========================================
+ Hits         4995     5004       +9     
- Misses        113      122       +9     
Flag Coverage Δ
unittests 97.61% <100.00%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

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

Beautiful.

@yajo yajo enabled auto-merge (rebase) October 18, 2024 18:31
@sisp
Copy link
Member Author

sisp commented Oct 18, 2024

Codecov is hanging for some reason 🤔.

@yajo
Copy link
Member

yajo commented Oct 18, 2024

Ah, codecov... using superpowers then.

@yajo yajo disabled auto-merge October 18, 2024 18:41
@yajo yajo merged commit b5ef194 into copier-org:master Oct 18, 2024
21 of 22 checks passed
@sisp sisp deleted the feat/dynamic-choices branch October 18, 2024 18:47
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.

2 participants