Skip to content

Commit

Permalink
fix(discord: commands): include private repos in initorg
Browse files Browse the repository at this point in the history
will only work if @datitisev on GitLab has access
  • Loading branch information
David Sevilla Martín authored Mar 24, 2018
1 parent e85d845 commit a1c2bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Discord/Commands/GitlabInitOrg.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class GitlabInitOrgCommand extends Command {

return Gitlab.getGroupProjects(orgName).then(async data => {
const conf = ChannelConfig.get(channelid) || await ChannelConfig.add(msg.channel);
const repos = data.body.filter(e => !e.private && !conf.repos.includes(e.name_with_namespace.toLowerCase())).map(e => e.name_with_namespace);
const repos = data.body.filter(!conf.repos.includes(e.name_with_namespace.toLowerCase())).map(e => e.name_with_namespace);

return Promise.all(repos.map(repo => ChannelConfig.addRepoToChannel(channelid, repo))).then(() => repos);
})
Expand Down

0 comments on commit a1c2bcb

Please sign in to comment.