Skip to content

Commit 217f16d

Browse files
committed
feat: icon url and cat images
1 parent 898697b commit 217f16d

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37661,7 +37661,7 @@ var core = __nccwpck_require__(2186);
3766137661
// EXTERNAL MODULE: ./node_modules/@actions/github/lib/github.js
3766237662
var github = __nccwpck_require__(5438);
3766337663
;// CONCATENATED MODULE: ./package.json
37664-
const package_namespaceObject = JSON.parse('{"u2":"@krauters/github-notifier","i8":"0.11.0","Xh":"https://github.com/krauters/github-notifier"}');
37664+
const package_namespaceObject = JSON.parse('{"u2":"@krauters/github-notifier","i8":"0.12.0","Xh":"https://github.com/krauters/github-notifier"}');
3766537665
;// CONCATENATED MODULE: ./src/defaults.ts
3766637666
const scmUrl = 'https://github.com';
3766737667
const prBaseUrl = `${scmUrl}/pulls?q=is%3Aopen+is%3Apr+archived%3Afalse+draft%3Afalse+user%3A`;
@@ -42182,13 +42182,15 @@ class SlackClient {
4218242182
const payload = {
4218342183
blocks: batch,
4218442184
channel,
42185-
icon_emoji: ':github_octocat:',
42185+
icon_url: 'https://github.com/krauters/github-notifier/blob/images/images/teddy-cat-square.png?raw=true',
42186+
// icon_emoji: ':github_octocat:',
4218642187
text,
4218742188
unfurl_links: false,
4218842189
unfurl_media: false,
4218942190
username: 'GitHub Notifier',
4219042191
};
4219142192
const response = await this.client.chat.postMessage(payload);
42193+
console.dir(response, { depth: null });
4219242194
console.log(`Posted batch [${batchNumber++}] to Slack channel [${channel}] with success [${response.ok}]`);
4219342195
}
4219442196
}

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

images/teddy-cat-square.png

111 KB
Loading

images/teddy-cat.jpg

139 KB
Loading

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@krauters/github-notifier",
33
"description": "GitHub Notifier by Krauters – Post Open Pull Requests to Slack",
4-
"version": "0.11.0",
4+
"version": "0.12.0",
55
"author": "Colten Krauter",
66
"type": "module",
77
"homepage": "https://github.com/krauters/github-notifier",

src/utils/slack/slack-client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,18 @@ export class SlackClient {
146146
const payload = {
147147
blocks: batch,
148148
channel,
149-
icon_emoji: ':github_octocat:',
149+
icon_url:
150+
'https://github.com/krauters/github-notifier/blob/images/images/teddy-cat-square.png?raw=true',
151+
152+
// icon_emoji: ':github_octocat:',
150153
text,
151154
unfurl_links: false,
152155
unfurl_media: false,
153156
username: 'GitHub Notifier',
154157
}
155158

156159
const response = await this.client.chat.postMessage(payload)
160+
console.dir(response, { depth: null })
157161
console.log(
158162
`Posted batch [${batchNumber++}] to Slack channel [${channel}] with success [${response.ok}]`,
159163
)

0 commit comments

Comments
 (0)