Skip to content

Commit 17c6098

Browse files
authored
refactor: change design pattern (#1)
1 parent c1a1078 commit 17c6098

22 files changed

Lines changed: 10167 additions & 4298 deletions

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ trim_trailing_whitespace = true
1212
insert_final_newline = false
1313
trim_trailing_whitespace = false
1414

15-
[*.{yml, yaml}]
16-
indent_style = space
15+
[*.{yml,yaml}]
1716
indent_size = 2

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"plugins": ["@typescript-eslint", "prettier"],
3-
"extends": ["plugin:github/recommended"],
3+
"extends": [],
44
"parser": "@typescript-eslint/parser",
55
"parserOptions": {
66
"ecmaVersion": 9,
File renamed without changes.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
## Description
1+
## Summary
22

33
[Type here]
44

55
## Type
6-
7-
[Delete options that are not relevant (including this line)]
8-
6+
<!-- Delete options that are not relevant -->
97
- Enhancement
108
- Bugfix
119
- Refactoring

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '14'
18+
node-version: '18'
1919
cache: 'yarn'
2020

2121
- name: Install Dependencies

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
discord-url:
77
description: 'Discord Webhook URL'
88
required: false
9-
teams-url:
10-
description: 'Teams Webhook URL'
11-
required: false
129
slack-url:
1310
description: 'Slack Webhook URL'
1411
required: false
12+
teams-url:
13+
description: 'Teams Webhook URL'
14+
required: false
1515

1616
jobs:
1717
test:

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
A GitHub Action to concurrently send the same message to multiple different webhooks.
44

5-
(Currently supports the following platforms: Discord, Slack and Microsoft Teams)
5+
Currently supports the following platforms:
6+
7+
- Discord
8+
- Slack
9+
- Microsoft Teams
610

711
## Getting Started
812

@@ -41,7 +45,7 @@ The action has any of the follow inputs
4145
4246
| Name | Description | Default | Notes |
4347
| - | - | - | - |
44-
| `discord-url` | Discord Webhook URL | N/A | Discord does not support buttons in incoming webhooks yet |
48+
| `discord-url` | Discord Webhook URL | N/A | Discord does not support buttons in incoming webhooks, yet... |
4549
| `teams-url` | Teams Webhook URL | N/A | |
4650
| `slack-url` | Slack Webhook URL | N/A | |
4751
| `color` | Color of the message in hexadecimal or title of predefined | `success` | |

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 'Webhook Notifier'
22
author: 'Netail'
3-
description: 'GitHub Action to send messages to different webhooks'
3+
description: 'Send a message to a single or to multiple webhooks at once'
44

55
inputs:
66
discord-url:
@@ -31,7 +31,7 @@ inputs:
3131
required: false
3232

3333
runs:
34-
using: 'node12'
34+
using: 'node16'
3535
main: 'dist/index.js'
3636

3737
branding:

0 commit comments

Comments
 (0)