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 7ba3e64 commit 1970e54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3988,6 +3988,7 @@ function run() {
core.debug(`channel: ${channel}`);
core.debug(`custom_payload: ${custom_payload}`);
core.debug(`payload: ${payload}`);
core.debug(`fields: ${fields}`);
const client = new client_1.Client({
status,
mention,
Expand Down Expand Up @@ -10447,6 +10448,8 @@ const groupMention = ['here', 'channel'];
class Client {
constructor(props, token, webhookUrl) {
this.with = props;
if (this.with.fields === '')
this.with.fields = 'repo,commit';
if (token !== undefined) {
this.github = new github.GitHub(token);
}
Expand Down Expand Up @@ -10559,7 +10562,7 @@ class Client {
const { owner, repo } = github.context.repo;
return {
title: 'commit',
value: `<https://github.com/${owner}/${repo}/commit/${sha}|${sha}>`,
value: `<https://github.com/${owner}/${repo}/commit/${sha}|${sha.slice(0, 8)}>`,
short: true,
};
}
Expand Down

0 comments on commit 1970e54

Please sign in to comment.