-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Make scriv create
prompt for the category
#92
Comments
Hi, @agateau-gg, As another Scriv user, I would like to give you some feedback for your idea. I agree with you that the selection of a particular category is very useful if Scriv is invoked by a human user. I would like to suggest to make this prompt and / or the current behaviour of Does your prototype allow for the selection of multiple categories? It would be great to be able to select more than one! I experienced multiple cases in which just one category did not suffice as an introduced feature has fixed a known bug, for example. Although there are Scriv fragment policies which enforce the decision for exactly one section of the generated fragment, a more detailed description of what happened should be supported, anyway, because the completeness of the resulting CHANGELOG would benefit from it. What do you think about these two points, @agateau-gg? |
I would expect the non-interactive mode can be kept.
Multi-selection can probably be done, but it would be better to use a real TUI library like Textual to do so than my
|
Thank you for answer! During the last days, I have been working on a workaround for the fragment creation Action such that its users can become independent of the actual behaviour of For the second point, I agree with you that your suggestions are the best solution options for the selection of multiple categories. These options perfectly answer my question. So, from my point of view, the new interactive mode can come! 👍 |
Note that I am not a scriv developer, just a happy user 😅, so no idea if this idea is going to be accepted. |
I like this idea, because I am not enjoying editing out commented sections in the template. To accommodate different workflows, I think I would add an option to
or:
The Interactive use is a bit far afield for me, but perhaps |
In order to address the categories being commented out and empty by default, one option might be to harvest a given amount of commits beginning with HEAD in order to extract the fragment entries from the commits' messages. Many projects have certain commit message policies and usually, one particular category is assigned to the commit. The commit summary thus can be assumed to have the following structure: What do you think about this idea? |
Using commit messages (or other sources) as a starting point for the content of a fragment is the subject of issue #13. |
I think if the categories have been explicitly provided then they should not be commented out. After all, the user asked for them :)
That would be fine, but I think it would be nicer to have a |
One simplification I made to my templates is to make it so there is just one comment block that I can delete with a single It does mean I have to type the category name in directly though, increasing the risk of running into #111 |
Instead of generating a fragment with many commented entries, it would be nice if
scriv create
would prompt the user for the fragment category and create a fragment with only the relevant content.Doing it this way would make the tool easier to use: no need to comment-out sections, just write the fragment text. It also would make it less error prone: we recently merged a PR where the changelog fragment was filled, but the author forgot to remove the comments.
I put together a proof-of-concept if you want to get a feel of how it could behave. You can find it in this gist. Here are some screenshots of it:
I'd be happy to look into adding this to scriv itself if you think this is a good idea.
The text was updated successfully, but these errors were encountered: