Skip to content

Conversation

@TobiTenno
Copy link
Member

No description provided.

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
@TobiTenno TobiTenno self-assigned this Oct 3, 2017
@TobiTenno TobiTenno added the Status: In Progress Work has Begun label Oct 3, 2017
return res[0].map(build => ({
id: build.build_id,
owner: this.bot.client.users.get(build.owner_id) || build.owner_id,
title: build.title

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)

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 => {

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)

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}`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing error: Unexpected token )

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}`;

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)

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}`;

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)

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}`;

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)

@TobiTenno TobiTenno merged commit 9d2b002 into master Oct 5, 2017
@TobiTenno TobiTenno removed the Status: In Progress Work has Begun label Oct 5, 2017
@TobiTenno TobiTenno deleted the builds branch October 5, 2017 17:53
@wfcd-bot-boi
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants