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

[Feature] allow an alternative license #85

Closed
fauust opened this issue Apr 30, 2021 · 3 comments
Closed

[Feature] allow an alternative license #85

fauust opened this issue Apr 30, 2021 · 3 comments
Assignees
Labels

Comments

@fauust
Copy link

fauust commented Apr 30, 2021

Is your feature request related to a problem? Please describe.
The actual CLA-Assistant permits to ask the contributor to use an alternative license by using a specific metadata gist file:

For instance, we currently use something like:

{
    "name": {
        "title": "Full Name",
        "type": "string",
        "githubKey": "name"
    },
    "email": {
        "title": "E-Mail",
        "type": "string",
        "githubKey": "email",
        "required": true
    },
    "license": {
        "title": "License selection",
        "type": {
            "enum": [
                "I agree that my contributions are made using the Company Contributor Agreement (text above)",
                "I agree that my contributions are made using the New BSD License (3-clause)"
            ]
        },
        "required": true
    }
}

Describe the solution you'd like
Is there an option to handle this case with CLA-assistant-lite?

@fauust fauust added the feature label Apr 30, 2021
@github-actions github-actions bot added this to To do in project-board Apr 30, 2021
@ibakshay
Copy link
Member

ibakshay commented Jun 6, 2021

Hi @oganexon, Can you check If this feature can be implemented from our side ?
If yes, what will be the effort required ?

CC: @michael-spengler

@SteelAlloy SteelAlloy self-assigned this Jun 6, 2021
@SteelAlloy
Copy link

SteelAlloy commented Jun 7, 2021

Regarding the pre-filled information, we can retrieve it during the execution of the action with a call to the API.

However, filling in the form without an interface is not an easy task. Radio buttons or text boxes with content validation will not be possible with comments.

Solution 1

An alternative solution would be to put a hyperlink with some pre-filled information in parameters that would redirect to a static website with an interface similar to this one:

image

When validating the form, the site would generate a json snippet that you would simply copy and paste into a comment. And then this content would be stored in a json file just like the signatures.

Solution 2

Since having a static site is not in the scope of the CLA Assistant lite, here is another solution.

Instead of using a link, we write a pre-filled yaml snippet (more user-friendly than json) directly in the comment. The user must then copy and paste the snippet and modify the required information.


These solutions are obviously less convenient than with the classic CLA, but it is still possible.

@michael-spengler
Copy link
Collaborator

We'll call the corresponding frontend component License Configurator (form...). The whole contributor assistant frontend will be served via GitHub Pages. We won't need any server and still can provide a UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

4 participants