Skip to content

Commit

Permalink
[#3] [command] npm run release
Browse files Browse the repository at this point in the history
  • Loading branch information
8398a7 committed Apr 5, 2020
1 parent 47627d9 commit bff3747
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10458,8 +10458,7 @@ class Client {
const template = yield this.payloadTemplate();
template.attachments[0].color = 'good';
template.text += this.mentionText(this.with.mention, exports.Success);
template.text += ':white_check_mark: Succeeded GitHub Actions\n';
template.text += text;
template.text += this.insertText(':white_check_mark: Succeeded GitHub Actions\n', text);
return template;
});
}
Expand All @@ -10468,8 +10467,7 @@ class Client {
const template = yield this.payloadTemplate();
template.attachments[0].color = 'danger';
template.text += this.mentionText(this.with.mention, exports.Failure);
template.text += ':no_entry: Failed GitHub Actions\n';
template.text += text;
template.text += this.insertText(':no_entry: Failed GitHub Actions\n', text);
return template;
});
}
Expand All @@ -10478,8 +10476,7 @@ class Client {
const template = yield this.payloadTemplate();
template.attachments[0].color = 'warning';
template.text += this.mentionText(this.with.mention, exports.Cancelled);
template.text += ':warning: Canceled GitHub Actions\n';
template.text += text;
template.text += this.insertText(':warning: Canceled GitHub Actions\n', text);
return template;
});
}
Expand Down Expand Up @@ -10606,6 +10603,9 @@ class Client {
filterField(array, diff) {
return array.filter(item => item !== diff);
}
insertText(defaultText, text) {
return text === '' ? defaultText : text;
}
}
exports.Client = Client;

Expand Down

0 comments on commit bff3747

Please sign in to comment.