We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 337c287 commit 8a8268aCopy full SHA for 8a8268a
lib/webapp.js
@@ -30,6 +30,8 @@ module.exports = {
30
api.get(config, 'projects', function (err, repos) {
31
if (err) return done(err);
32
33
+ repos = JSON.parse(repos);
34
+
35
// Parse and filter only git repos
36
done(null, repos.map(api.parseRepo).filter(function (repo) {
37
return repo.config.scm === 'git';
@@ -54,6 +56,9 @@ module.exports = {
54
56
var uri = util.format('projects/%d/repository/branches', repo_id);
55
57
58
api.get(account, uri, function (err, branches) {
59
60
+ branches = JSON.parse(branches);
61
62
done(err, _.map(branches || [], function (branch) {
63
return branch.name
64
}));
0 commit comments