![]() |
dopel opened 9 months ago
|
||||
![]() |
dopel changed title 9 months ago
|
||||
![]() |
Thanks for your feedback and the great implementation suggestion. |
||||
![]() |
It would also be good if this is added to the create new repository page as well, it will create and initialise the repository with the license chosen in the drop down. If not the suggestion above could be used. Both would compliment each other well :) |
||||
![]() |
@polarian that's a good approach as well.
Maybe while creating the project if Code Management is enabled, we could have the following options:
|
||||
![]() |
Yeah that was the general idea... I guess lets wait and see what Robin comes up with? |
Type |
New Feature
|
Priority |
Normal
|
Assignee |
Issue Votes (0)
Currently, when a new project is created, it gets initialized with an empty code base with suggestions as below:
However, along with the suggested actions (adding files, setting up build spec, or pushing an existing repository), another suggestion can be added to add a LICENSE file with the appropriate license which could be selected from a dropdown menu:
Another alternative approach to the above can be similar to how build configuration files are detected when creating a file with name .onedev-buildspec.yml. In case of licenses, whenever a file with name which matches the regex pattern
is being created, the bottom section of the interface would be populated with the available licenses:
Upon selecting the associated license option from the dropdown menu, a new license file would be created with the contents containing the associated license terms.
The following can be referred to for implementing the above:
PS: Something similar can be done for .gitignore file templates as well (but that might be out of scope of this issue).