Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ec17d7835e | |||
cb072d0f6a | |||
1240505227 | |||
09c0bc4e6f |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/slack",
|
"name": "@mojoio/slack",
|
||||||
"version": "2.0.10",
|
"version": "2.0.12",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/slack",
|
"name": "@mojoio/slack",
|
||||||
"version": "2.0.10",
|
"version": "2.0.12",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "slack api abstraction for the mojo.io ecosystem",
|
"description": "slack api abstraction for the mojo.io ecosystem",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -57,7 +57,7 @@ tap.test('should send a message to Slack by directly calling the message', async
|
|||||||
testSlackme
|
testSlackme
|
||||||
);
|
);
|
||||||
await testSlackMessage.sendToRoom('random');
|
await testSlackMessage.sendToRoom('random');
|
||||||
await tools.delayFor(5000);
|
await tools.delayFor(1000);
|
||||||
await testSlackMessage.updateAndSend({
|
await testSlackMessage.updateAndSend({
|
||||||
author_name: 'GitLab CI',
|
author_name: 'GitLab CI',
|
||||||
author_link: 'https://gitlab.com/',
|
author_link: 'https://gitlab.com/',
|
||||||
|
@ -22,14 +22,12 @@ export class Slackme {
|
|||||||
}
|
}
|
||||||
postUrl = this.updateUrl;
|
postUrl = this.updateUrl;
|
||||||
}
|
}
|
||||||
console.log(requestBody);
|
|
||||||
const response = await plugins.smartrequest.postJson(postUrl, {
|
const response = await plugins.smartrequest.postJson(postUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${this.slackToken}`
|
'Authorization': `Bearer ${this.slackToken}`
|
||||||
},
|
},
|
||||||
requestBody
|
requestBody
|
||||||
});
|
});
|
||||||
console.log(response.body);
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user