You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 368594c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/core/tools/all.js
+144Lines changed: 144 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7169,6 +7169,150 @@ export default [
7169
7169
],
7170
7170
"group": "hosting"
7171
7171
},
7172
+
{
7173
+
"name": "hosting_git_deploy-website-repository",
7174
+
"title": "Deploy website Git repository",
7175
+
"annotations": {
7176
+
"title": "Deploy website Git repository",
7177
+
"readOnlyHint": false,
7178
+
"destructiveHint": true
7179
+
},
7180
+
"description": "Clones a Git repository into a directory of the website, or pulls it again. An empty or missing\ndirectory gets a clone of the branch. A directory that already holds this repository and branch is\nreset to its last commit and pulled: changes made on the server to files the repository tracks are\ndiscarded, files it does not track stay. A directory that holds other files, including another\nrepository or another branch of this one, is rejected. `composer install` runs after the clone or\npull when the repository has a `composer.json`.\n\nThe call waits for the deployment and returns its log. `is_success` false means Git or composer\nfailed and the log says why. A second call for the same directory is rejected while the first is\nstill waiting for the server. If the request times out, the deployment may still finish on the\nserver; calling again later with the same repository and branch pulls.\n\nPrivate repositories need an SSH URL and the account's Git SSH key from `Generate Git SSH key`,\nadded to the repository as a deploy key.",
"description": "Clone URL of the repository on any Git host, SSH or HTTPS. Private repositories need an SSH URL\nand the account's Git SSH key added to the repository as a deploy key. An HTTP or HTTPS URL with\na username or token, or any URL with a password, is rejected."
7197
+
},
7198
+
"branch": {
7199
+
"type": "string",
7200
+
"description": "Branch to clone and pull"
7201
+
},
7202
+
"directory": {
7203
+
"type": "string",
7204
+
"description": "Directory under the website document root, exactly as `List website Git repositories` returns\nit for an existing repository. Empty, null or omitted means the document root."
7205
+
}
7206
+
},
7207
+
"required": [
7208
+
"username",
7209
+
"domain",
7210
+
"repository_url",
7211
+
"branch"
7212
+
]
7213
+
},
7214
+
"security": [
7215
+
{
7216
+
"apiToken": []
7217
+
}
7218
+
],
7219
+
"group": "hosting"
7220
+
},
7221
+
{
7222
+
"name": "hosting_git_list-website-repositories",
7223
+
"title": "List website Git repositories",
7224
+
"annotations": {
7225
+
"title": "List website Git repositories",
7226
+
"readOnlyHint": true,
7227
+
"destructiveHint": false
7228
+
},
7229
+
"description": "Lists the Git repositories linked to directories of the website, with\n`Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of\neach one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub\nand GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.",
"description": "Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to\nclone and pull over SSH, so a private repository works once the key is added to it as a deploy key\non the Git host. `public_key` is null when the account has no key yet.",
"description": "Creates the SSH key pair of the hosting account and returns the public key. When the account already\nhas a key, returns that key unchanged. One key serves every website of the account; add the public\nkey to a private repository as a deploy key before deploying it.",
0 commit comments