mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-05 07:28:40 +00:00
Add branch protection (#31)
This commit is contained in:
@@ -188,6 +188,16 @@
|
||||
"$ref": "#/definitions/SerialisedPushMirror"
|
||||
}
|
||||
]
|
||||
},
|
||||
"protectedBranches": {
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
],
|
||||
"description": "Protected branch configuration",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SerialisedProtectedBranch"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -195,12 +205,28 @@
|
||||
"type": "object",
|
||||
"description": "Information about a repo that is to be created on Gitea without syncing from GitHub.",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"gitHubAddress"
|
||||
],
|
||||
"properties": {
|
||||
"gitHubAddress": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SerialisedProtectedBranch": {
|
||||
"type": "object",
|
||||
"description": "Information about a repo that is to be created on Gitea without syncing from GitHub.",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"branchName"
|
||||
],
|
||||
"properties": {
|
||||
"branchName": {
|
||||
"type": "string"
|
||||
},
|
||||
"blockOnOutdatedBranch": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user