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
Copy file name to clipboardExpand all lines: api/v3.0.0/repos.js
+182Lines changed: 182 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2998,4 +2998,186 @@ var repos = module.exports = {
2998
2998
});
2999
2999
};
3000
3000
3001
+
/** section: github
3002
+
* repos#getDeployments(msg, callback) -> null
3003
+
* - msg (Object): Object that contains the parameters and their values to be sent to the server.
3004
+
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument.
3005
+
*
3006
+
* ##### Params on the `msg` object:
3007
+
*
3008
+
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'.
3009
+
* - sha (String): Optional. The short or long sha that was recorded at creation time. Default: none.
3010
+
* - ref (String): Optional. The name of the ref. This can be a branch, tag, or sha. Default: none.
3011
+
* - task (String): Optional. The name of the task for the deployment. e.g. deploy or deploy:migrations. Default: none.
3012
+
* - environment (String): Optional. The name of the environment that was deployed to. e.g. staging or production. Default: none.
3013
+
* - user (String): Required.
3014
+
* - repo (String): Required.
3015
+
* - page (Number): Optional. Page number of the results to fetch. Validation rule: ` ^[0-9]+$ `.
3016
+
* - per_page (Number): Optional. A custom page size up to 100. Default is 30. Validation rule: ` ^[0-9]+$ `.
* - msg (Object): Object that contains the parameters and their values to be sent to the server.
3051
+
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument.
3052
+
*
3053
+
* ##### Params on the `msg` object:
3054
+
*
3055
+
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'.
3056
+
* - ref (String): Required. The ref to deploy. This can be a branch, tag, or sha.
3057
+
* - task (String): Required. The named task to execute. e.g. deploy or deploy:migrations. Default: deploy
3058
+
* - auto_merge (Boolean): Optional. Optional parameter to merge the default branch into the requested ref if it is behind the default branch. Default: true
3059
+
* - required_contexts (Array): Optional. Optional array of status contexts verified against commit status checks. If this parameter is omitted from the parameters then all unique contexts will be verified before a deployment is created. To bypass checking entirely pass an empty array. Defaults to all unique contexts.
3060
+
* - payload (String): Optional. Optional JSON payload with extra information about the deployment. Default: ''
3061
+
* - environment (String): Optional. The name of the environment that was deployed to. e.g. staging or production. Default: none.
3062
+
* - description (String): Optional. Optional short description. Default: ''
* - msg (Object): Object that contains the parameters and their values to be sent to the server.
3099
+
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument.
3100
+
*
3101
+
* ##### Params on the `msg` object:
3102
+
*
3103
+
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'.
* - msg (Object): Object that contains the parameters and their values to be sent to the server.
3141
+
* - callback (Function): function to call when the request is finished with an error as first argument and result data as second argument.
3142
+
*
3143
+
* ##### Params on the `msg` object:
3144
+
*
3145
+
* - headers (Object): Optional. Key/ value pair of request headers to pass along with the HTTP request. Valid headers are: 'If-Modified-Since', 'If-None-Match', 'Cookie', 'User-Agent', 'Accept', 'X-GitHub-OTP'.
3146
+
* - state (String): Optional. The state of the status. Can be one of pending, success, error, or failure.
3147
+
* - target_url (String): Optional. The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. Default: ''
3148
+
* - description (String): Optional. A short description of the status. Default: ''
Copy file name to clipboardExpand all lines: api/v3.0.0/routes.json
+138Lines changed: 138 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2936,6 +2936,144 @@
2936
2936
"$user": null,
2937
2937
"$repo": null
2938
2938
}
2939
+
},
2940
+
2941
+
"get-deployments": {
2942
+
"url": "/repos/:user/:repo/deployments",
2943
+
"method": "GET",
2944
+
"params": {
2945
+
"sha": {
2946
+
"type": "String",
2947
+
"required": false,
2948
+
"validation": "",
2949
+
"invalidmsg": "",
2950
+
"description": "The short or long sha that was recorded at creation time. Default: none."
2951
+
},
2952
+
"ref": {
2953
+
"type": "String",
2954
+
"required": false,
2955
+
"validation": "",
2956
+
"invalidmsg": "",
2957
+
"description": "The name of the ref. This can be a branch, tag, or sha. Default: none."
2958
+
},
2959
+
"task": {
2960
+
"type": "String",
2961
+
"required": false,
2962
+
"validation": "",
2963
+
"invalidmsg": "",
2964
+
"description": "The name of the task for the deployment. e.g. deploy or deploy:migrations. Default: none."
2965
+
},
2966
+
"environment": {
2967
+
"type": "String",
2968
+
"required": false,
2969
+
"validation": "",
2970
+
"invalidmsg": "",
2971
+
"description": "The name of the environment that was deployed to. e.g. staging or production. Default: none."
2972
+
},
2973
+
"$user": null,
2974
+
"$repo": null,
2975
+
"$page": null,
2976
+
"$per_page": null
2977
+
}
2978
+
},
2979
+
2980
+
"create-deployment": {
2981
+
"url": "/repos/:user/:repo/deployments",
2982
+
"method": "POST",
2983
+
"params": {
2984
+
"ref": {
2985
+
"type": "String",
2986
+
"required": true,
2987
+
"validation": "",
2988
+
"invalidmsg": "",
2989
+
"description": "The ref to deploy. This can be a branch, tag, or sha."
2990
+
},
2991
+
"task": {
2992
+
"type": "String",
2993
+
"required": true,
2994
+
"validation": "",
2995
+
"invalidmsg": "",
2996
+
"description": "The named task to execute. e.g. deploy or deploy:migrations. Default: deploy"
2997
+
},
2998
+
"auto_merge": {
2999
+
"type": "Boolean",
3000
+
"required": false,
3001
+
"validation": "",
3002
+
"invalidmsg": "",
3003
+
"description": "Optional parameter to merge the default branch into the requested ref if it is behind the default branch. Default: true"
3004
+
},
3005
+
"required_contexts": {
3006
+
"type": "Array",
3007
+
"required": false,
3008
+
"validation": "",
3009
+
"invalidmsg": "",
3010
+
"description": "Optional array of status contexts verified against commit status checks. If this parameter is omitted from the parameters then all unique contexts will be verified before a deployment is created. To bypass checking entirely pass an empty array. Defaults to all unique contexts."
3011
+
},
3012
+
"payload": {
3013
+
"type": "String",
3014
+
"required": false,
3015
+
"validation": "",
3016
+
"invalidmsg": "",
3017
+
"description": "Optional JSON payload with extra information about the deployment. Default: ''"
3018
+
},
3019
+
"environment": {
3020
+
"type": "String",
3021
+
"required": false,
3022
+
"validation": "",
3023
+
"invalidmsg": "",
3024
+
"description": "The name of the environment that was deployed to. e.g. staging or production. Default: none."
3025
+
},
3026
+
"description": {
3027
+
"type": "String",
3028
+
"required": false,
3029
+
"validation": "",
3030
+
"invalidmsg": "",
3031
+
"description": "Optional short description. Default: ''"
"description": "The state of the status. Can be one of pending, success, error, or failure."
3058
+
},
3059
+
"target_url": {
3060
+
"type": "String",
3061
+
"required": false,
3062
+
"validation": "",
3063
+
"invalidmsg": "",
3064
+
"description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. Default: ''"
3065
+
},
3066
+
"description": {
3067
+
"type": "String",
3068
+
"required": false,
3069
+
"validation": "",
3070
+
"invalidmsg": "",
3071
+
"description": "A short description of the status. Default: ''"
0 commit comments