Add customizations.codespaces.repositories.permissions (#150555)

This commit is contained in:
Josh Spicer
2022-05-30 11:55:18 -04:00
committed by GitHub
parent 6fcdf8e540
commit b6a8f9fc7f
2 changed files with 723 additions and 0 deletions

View File

@@ -331,6 +331,124 @@
"description": "The port VS Code can use to connect to its backend."
}
}
},
"codespaces": {
"type": "object",
"properties": {
"repositories": {
"type": "object",
"description": "Configuration relative to a GitHub repository",
"pattern": "^[a-zA-Z0-9-_.]+[.]*\/[a-zA-Z0-9-_*]+[.]*$",
"errorMessage": "Expected format: 'owner/repo' (eg: 'microsoft/vscode'). A wildcard (*) is permitted for the repo name. (eg: 'microsoft/*').",
"oneOf": [
{
"properties": {
"permissions": {
"type": "object",
"description": "Addional repository permissions. See https://aka.ms/ghcs/multi-repo-auth for more info.",
"anyOf": [
{
"actions": {
"type": "string",
"enum": [
"read",
"write"
]
},
"checks": {
"type": "string",
"enum": [
"read",
"write"
]
},
"contents": {
"type": "string",
"enum": [
"read",
"write"
]
},
"deployments": {
"type": "string",
"enum": [
"read",
"write"
]
},
"discussions": {
"type": "string",
"enum": [
"read",
"write"
]
},
"issues": {
"type": "string",
"enum": [
"read",
"write"
]
},
"packages": {
"type": "string",
"enum": [
"read"
]
},
"pages": {
"type": "string",
"enum": [
"read",
"write"
]
},
"pull_requests": {
"type": "string",
"enum": [
"read",
"write"
]
},
"repository_projects": {
"type": "string",
"enum": [
"read",
"write"
]
},
"statuses": {
"type": "string",
"enum": [
"read",
"write"
]
},
"workflows": {
"type": "string",
"enum": [
"write"
]
}
}
]
}
}
},
{
"properties": {
"permissions": {
"type": "string",
"enum": [
"read-all",
"write-all"
]
}
}
}
]
}
}
}
},
"additionalProperties": {