-
Previous Value Current Value Support for initializing projects with LICENSE & readme files
Support for initializing projects with LICENSE files
-
Thanks for your feedback and the great implementation suggestion.
-
@polarian that's a good approach as well. Maybe while creating the project if Code Management is enabled, we could have the following options:
...similar to the work flow from GitHub:

-
Previous Value Current Value Open
Closed
-
Previous Value Current Value Closed
Open
-
Hi @robin I have updated my OneDev server instance to the latest version(9.5.0). However, it seems like the above requested feature isn't visible. I also looked into the docs but couldn't find any mentions of the same. Is this a bug? Or has the feature request been dismissed/abandoned? Reopening the ticket for the time being.
-
I am closing this as this feature is not very useful. User can simply add desired LICENSE file from add files menu.
| 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).