Skip to content

Commit

Permalink
Change from GitHub Action to Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Nov 9, 2021
1 parent 46098c7 commit 8192960
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -101,3 +101,5 @@ lib/**/*
# IDE files
.idea
.vs
.vscode

2 changes: 1 addition & 1 deletion __tests__/job_status.test.ts
Expand Up @@ -90,7 +90,7 @@ test('push event to slack', async () => {
await expect(res).toStrictEqual({text: {status: 'ok'}})

expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Action',
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '#github-ci',
attachments: [
Expand Down
2 changes: 1 addition & 1 deletion __tests__/pull_request.test.ts
Expand Up @@ -57,7 +57,7 @@ test('pull request event to slack', async () => {
await expect(res).toStrictEqual({text: {status: 'ok'}})

expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Action',
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
attachments: [
Expand Down
2 changes: 1 addition & 1 deletion __tests__/push.test.ts
Expand Up @@ -57,7 +57,7 @@ test('push event to slack', async () => {
await expect(res).toStrictEqual({text: {status: 'ok'}})

expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Action',
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
attachments: [
Expand Down
2 changes: 1 addition & 1 deletion __tests__/release.test.ts
Expand Up @@ -60,7 +60,7 @@ test('release event to slack', async () => {
await expect(res).toStrictEqual({text: {status: 'ok'}})

expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Action',
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
attachments: [
Expand Down
2 changes: 1 addition & 1 deletion __tests__/schedule.test.ts
Expand Up @@ -53,7 +53,7 @@ test('schedule event to slack', async () => {
await expect(res).toStrictEqual({text: {status: 'ok'}})

expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Action',
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
attachments: [
Expand Down
2 changes: 1 addition & 1 deletion __tests__/workflow_dispatch.test.ts
Expand Up @@ -58,7 +58,7 @@ test('workflow_dispatch event to slack', async () => {
await expect(res).toStrictEqual({text: {status: 'ok'}})

expect(JSON.parse(mockAxios.history.post[0].data)).toStrictEqual({
username: 'GitHub Action',
username: 'GitHub Actions',
icon_url: 'https://octodex.github.com/images/original.png',
channel: '@override',
attachments: [
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/slack.ts
Expand Up @@ -232,7 +232,7 @@ export async function send(
const footer = footerTemplate(data)

const postMessage = {
username: opts?.username || 'GitHub Action',
username: opts?.username || 'GitHub Actions',
icon_url: opts?.icon_url || 'https://octodex.github.com/images/original.png',
channel,
attachments: [
Expand Down

0 comments on commit 8192960

Please sign in to comment.