Set repository open source
set_repository_open_sourceMark a repository already connected to a project as the project's open source repository, or take the mark off. Marking asks its host, without a token, whether anybody can read it and under which licence, and is refused for a private one. Taking the mark off the last marked repository of a public project closes the project to readers outside at once, as the screen does — confirm with the person first. Only the project's lead, a board administrator or a company admin may; both are written to the company's journal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectKey": "<projectKey>",
"repository": "<repository>",
"openSource": "<openSource>"
},
"name": "set_repository_open_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| openSource | Yes | true to mark it open source, false to take the mark off. | |
| projectKey | Yes | Key of the project, e.g. 'LIB'. | |
| repository | Yes | The repository: its id from list_repositories, or its path, e.g. 'owner/repo'. |