-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builds #130
Conversation
more progress on builds: list, delete added delete doesn't work yet trying to track down builds issue for delete fix delete, add list builds for user (or all for owner, allows auditing) allow bot owner to delete builds change default build image to a smaller version add and fetch builds next up: - [ ] editing individual fields - [ ] private builds? - [ ] deleting builds more progress on builds: list, delete added delete doesn't work yet trying to track down builds issue for delete fix delete, add list builds for user (or all for owner, allows auditing) allow bot owner to delete builds change default build image to a smaller version Merge remote-tracking branch 'origin/builds' into builds
src/settings/Database.js
Outdated
return res[0].map(build => ({ | ||
id: build.build_id, | ||
owner: this.bot.client.users.get(build.owner_id) || build.owner_id, | ||
title: build.title |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing comma. (comma-dangle)
src/commands/Builds/ListBuilds.js
Outdated
const buildGroups = createGroupedArray(builds, 20); | ||
const tokens = buildGroups.map(buildGroup => ({ name: '_ _', value: buildGroup.map(build => `\`${build.id} | ${build.title} | Owned by ${typeof build.owner === 'object' ? build.owner.tag : build.owner}\``).join('\n') })); | ||
const tokenGroups = createGroupedArray(tokens, 6); | ||
await Promise.all(tokenGroups.map(tokenGroup => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected parentheses around arrow function argument having a body with curly braces. (arrow-parens)
src/commands/Builds/ListBuilds.js
Outdated
const tokens = buildGroups.map(buildGroup => ({ name: '_ _', value: buildGroup.map(build => `\`${build.id} | ${build.title} | Owned by ${typeof build.owner === 'object' ? build.owner.tag : build.owner}\``).join('\n') })); | ||
const tokenGroups = createGroupedArray(tokens, 6); | ||
await Promise.all(tokenGroups.map(tokenGroup => { | ||
tokenGroup[0].fields.value = `\`Build ID | Title | Owner\`\n${tokenGroup[0].fields.value}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token )
src/commands/Builds/ListBuilds.js
Outdated
const tokens = buildGroups.map(buildGroup => ({ name: '_ _', value: buildGroup.map(build => `\`${build.id} | ${build.title} | Owned by ${typeof build.owner === 'object' ? build.owner.tag : build.owner}\``).join('\n') })); | ||
const tokenGroups = createGroupedArray(tokens, 6); | ||
await Promise.all(tokenGroups.map(tokenGroup => { | ||
tokenGroup[0].fields.value = `\`Build ID | Title | Owner\`\n${tokenGroup[0].fields.value}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assignment to property of function parameter 'tokenGroup'. (no-param-reassign)
src/commands/Builds/ListBuilds.js
Outdated
const tokens = buildGroups.map(buildGroup => ({ name: '_ _', value: buildGroup.map(build => `\`${build.id} | ${build.title} | Owned by ${typeof build.owner === 'object' ? build.owner.tag : build.owner}\``).join('\n') })); | ||
const tokenGroups = createGroupedArray(tokens, 6); | ||
await Promise.all(tokenGroups.map(tokenGroup => { | ||
tokenGroup[0].value = `\`Build ID | Title | Owner\`\n${tokenGroup[0].fields.value}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assignment to property of function parameter 'tokenGroup'. (no-param-reassign)
src/commands/Builds/ListBuilds.js
Outdated
const tokens = buildGroups.map(buildGroup => ({ name: '_ _', value: buildGroup.map(build => `\`${build.id} | ${build.title} | Owned by ${typeof build.owner === 'object' ? build.owner.tag : build.owner}\``).join('\n') })); | ||
const tokenGroups = createGroupedArray(tokens, 6); | ||
await Promise.all(tokenGroups.map(tokenGroup => { | ||
tokenGroup[0].value = `\`Build ID | Title | Owner\`\n${tokenGroup[0].value}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assignment to property of function parameter 'tokenGroup'. (no-param-reassign)
🎉 This PR is included in version 1.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
No description provided.