Skip to content
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

Merged
merged 15 commits into from
Oct 5, 2017
Merged

Builds #130

merged 15 commits into from
Oct 5, 2017

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.

3 participants