Support prompting on any commands that now fail due to no project name being provided #526
-
I used to be able to script the changie workflow to minimize effort. For example: #!/usr/bin/env bash
gum format "🚀 _changie bump and release_"
changie batch auto && # 👈👈👈👈👈👈👈 won't work now in mix of project + nonproject repos
changie merge && # 👈👈👈👈👈👈👈 won't work now in mix of project + nonproject repos
trunk fmt &&
git add '.changes/*' &&
git add CHANGELOG.md
gum confirm "Create Commit?" && git commit -m"$(gum write --value="feat: 🚀 release $(changie latest)")"
gum confirm "Tag?" && git tag -a $(changie latest) -F .changes/$(changie latest).md && gum format "🚀 _changie tagged to $(changie latest)_"
gum confirm "Sync Changes?" && git town sync
So here's what I'm running into now. 👉 When project is required then provide a prompt. I thought about asking for a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yea, I wasn't quite sure if this was going to cause problems or not. Batch and merge currently do not have any prompts. I did not add any prompts to them as they have always been fully automated actions. Your workflow definitely works great but yea won't work well with projects enabled. It looks like it could run great as a GitHub action as well but that won't work with prompts either way. Note that projects will also have a different release notes path so your script will fail later as well. I think having a gum select to first ask the project would be what I would do, then pass that into batch, merge and the release notes path. I think a |
Beta Was this translation helpful? Give feedback.
Yea, I wasn't quite sure if this was going to cause problems or not. Batch and merge currently do not have any prompts. I did not add any prompts to them as they have always been fully automated actions.
Your workflow definitely works great but yea won't work well with projects enabled. It looks like it could run great as a GitHub action as well but that won't work with prompts either way.
Note that projects will also have a different release notes path so your script will fail later as well.
I think having a gum select to first ask the project would be what I would do, then pass that into batch, merge and the release notes path.
I think a
changie config ...
command might be useful to sea…