Skip to content

Commit 2542c52

Browse files
committed
added default_branch functionality to repo update call
1 parent fc319f2 commit 2542c52

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

api/v3.0.0/repos.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ var repos = module.exports = {
307307
* - has_issues (Boolean): Optional. True to enable issues for this repository, false to disable them. Default is true.
308308
* - has_wiki (Boolean): Optional. True to enable the wiki for this repository, false to disable it. Default is true.
309309
* - has_downloads (Boolean): Optional. True to enable downloads for this repository, false to disable them. Default is true.
310+
* - default_branch (String): Optional. Updates the default branch for this repository.
310311
**/
311312
this.update = function(msg, block, callback) {
312313
var self = this;

api/v3.0.0/routes.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,13 @@
232232
"invalidmsg": "",
233233
"description": "True to enable downloads for this repository, false to disable them. Default is true."
234234
},
235+
"default_branch": {
236+
"type": "String",
237+
"required": false,
238+
"validation": "",
239+
"invalidmsg": "",
240+
"description": "Updates the default branch for this repository."
241+
},
235242
"collabuser": {
236243
"type": "String",
237244
"required": true,
@@ -1898,7 +1905,8 @@
18981905
"$private": null,
18991906
"$has_issues": null,
19001907
"$has_wiki": null,
1901-
"$has_downloads": null
1908+
"$has_downloads": null,
1909+
"$default_branch": null
19021910
}
19031911
},
19041912

0 commit comments

Comments
 (0)