Skip to content

Commit d9dc882

Browse files
Merge pull request #23167 from Yoast/remove-slack-webhook-dependency
chore: remove @slack/webhook dependency
2 parents 5195bae + 074d011 commit d9dc882

8 files changed

Lines changed: 5 additions & 134 deletions

File tree

.env.example

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ GITHUB_ACCESS_TOKEN=
66
// Enter the GitHub repository this is located in (e.g. yoast/wordpress-seo):
77
GITHUB_REPOSITORY=
88

9-
// Enter your Slack test channel token:
10-
SLACK_TEST_CHANNEL_TOKEN=
11-
12-
// Enter your Slack beta channel token:
13-
SLACK_BETA_CHANNEL_TOKEN=
14-
15-
// Enter the Slack dev-plugin channel token:
16-
SLACK_DEV_PLUGIN_CHANNEL_TOKEN=
17-
189
// Set an editor:
1910
EDITOR=
2011
# Examples

Gruntfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ module.exports = function( grunt ) {
142142
"set-version": "@yoast/grunt-plugin-tasks",
143143
"update-changelog-to-latest": "@yoast/grunt-plugin-tasks",
144144
"register-prompt": "grunt-prompt",
145-
"notify-slack": "notify-slack",
146145
},
147146
customTasksDir: "config/grunt/custom-tasks",
148147
},

config/grunt/custom-tasks/notify-slack.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

config/grunt/task-config/aliases.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ clean:build-assets:
7070
- 'sync-gutenberg-version'
7171
- 'artifact'
7272
- 'github-pre-release'
73-
- 'notify-slack:beta'
7473
- 'sync-readme-stable-tag'
7574
- 'check-deploy-allowed'
7675
- 'wp_deploy:trunk'
@@ -87,7 +86,6 @@ clean:build-assets:
8786
- 'sync-gutenberg-version'
8887
- 'artifact'
8988
- 'github-pre-release'
90-
- 'notify-slack:rc'
9189
- 'sync-readme-stable-tag'
9290
- 'check-deploy-allowed'
9391
- 'wp_deploy:trunk'

config/grunt/task-config/notify-slack.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

config/grunt/task-config/prompt.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const colors = require( "colors/safe" );
2-
31
// See https://github.com/dylang/grunt-prompt
42
/**
53
* Provides the settings for prompts within a Grunt task.
@@ -31,34 +29,4 @@ module.exports = {
3129
},
3230
},
3331
},
34-
slackEnvMissing: {
35-
options: {
36-
questions: [
37-
{
38-
config: "config.envMissing.promptInput",
39-
type: "input",
40-
message: colors.bgWhite( colors.inverse( colors.red(
41-
"Missing or incorrect .env variables. See .env.example for hints about the required values.\r\n" +
42-
`Not sending a notification to the Yoast Slack. ${
43-
colors.green( " For now, notify the appropriate channel yourself." )
44-
} Press enter to continue...`
45-
) ) ),
46-
},
47-
],
48-
},
49-
},
50-
slackMessageError: {
51-
options: {
52-
questions: [
53-
{
54-
config: "config.slackMessageError.promptInput",
55-
type: "input",
56-
message: colors.bgWhite( colors.inverse( colors.red(
57-
"There was an error trying to send a notification to the Yoast Slack. " +
58-
`${ colors.green( " For now, notify the appropriate channel yourself." ) } Press enter to continue...`
59-
) ) ),
60-
},
61-
],
62-
},
63-
},
6432
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"dependencies": {},
3939
"devDependencies": {
4040
"@babel/core": "^7.18.5",
41-
"@slack/webhook": "^5.0.2",
4241
"@tailwindcss/container-queries": "^0.1.1",
4342
"@tailwindcss/forms": "^0.5.9",
4443
"@wordpress/dependency-extraction-webpack-plugin": "^6.6.0",

yarn.lock

Lines changed: 5 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6466,20 +6466,6 @@
64666466
dependencies:
64676467
"@sinonjs/commons" "^1.7.0"
64686468

6469-
"@slack/types@^1.2.1":
6470-
version "1.10.0"
6471-
resolved "https://registry.yarnpkg.com/@slack/types/-/types-1.10.0.tgz#cbf7d83e1027f4cbfd13d6b429f120c7fb09127a"
6472-
integrity sha512-tA7GG7Tj479vojfV3AoxbckalA48aK6giGjNtgH6ihpLwTyHE3fIgRrvt8TWfLwW8X8dyu7vgmAsGLRG7hWWOg==
6473-
6474-
"@slack/webhook@^5.0.2":
6475-
version "5.0.4"
6476-
resolved "https://registry.yarnpkg.com/@slack/webhook/-/webhook-5.0.4.tgz#5d3e947387c1d0ccb176a153cec68c594edb7060"
6477-
integrity sha512-IC1dpVSc2F/pmwCxOb0QzH2xnGKmyT7MofPGhNkeaoiMrLMU+Oc7xV/AxGnz40mURtCtaDchZSM3tDo9c9x6BA==
6478-
dependencies:
6479-
"@slack/types" "^1.2.1"
6480-
"@types/node" ">=8.9.0"
6481-
axios "^0.21.1"
6482-
64836469
"@storybook/addon-a11y@^7.6.17":
64846470
version "7.6.17"
64856471
resolved "https://registry.yarnpkg.com/@storybook/addon-a11y/-/addon-a11y-7.6.17.tgz#77209c23b6908d52dc470a3318d76a0ffe9d47cb"
@@ -8438,7 +8424,7 @@
84388424
dependencies:
84398425
"@types/node" "*"
84408426

8441-
"@types/node@*", "@types/node@>=8.9.0":
8427+
"@types/node@*":
84428428
version "14.14.35"
84438429
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.35.tgz#42c953a4e2b18ab931f72477e7012172f4ffa313"
84448430
integrity sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag==
@@ -12646,13 +12632,6 @@ axe-core@^4.2.0, axe-core@^4.3.5:
1264612632
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.1.tgz#7dbdc25989298f9ad006645cd396782443757413"
1264712633
integrity sha512-gd1kmb21kwNuWr6BQz8fv6GNECPBnUasepcoLbekws23NVBLODdsClRZ+bQ8+9Uomf3Sm3+Vwn0oYG9NvwnJCw==
1264812634

12649-
axios@^0.21.1:
12650-
version "0.21.4"
12651-
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"
12652-
integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==
12653-
dependencies:
12654-
follow-redirects "^1.14.0"
12655-
1265612635
axios@^0.25.0:
1265712636
version "0.25.0"
1265812637
resolved "https://registry.yarnpkg.com/axios/-/axios-0.25.0.tgz#349cfbb31331a9b4453190791760a8d35b093e0a"
@@ -19084,7 +19063,7 @@ flow-parser@0.*:
1908419063
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.230.0.tgz#f0e54bdac58a20553bb81ef26bdc8a616360f1cd"
1908519064
integrity sha512-ZAfKaarESYYcP/RoLdM91vX0u/1RR7jI5TJaFLnxwRlC2mp0o+Rw7ipIY7J6qpIpQYtAobWb/J6S0XPeu0gO8g==
1908619065

19087-
follow-redirects@^1.0.0, follow-redirects@^1.14.0:
19066+
follow-redirects@^1.0.0:
1908819067
version "1.14.5"
1908919068
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.5.tgz#f09a5848981d3c772b5392309778523f8d85c381"
1909019069
integrity sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==
@@ -31496,7 +31475,7 @@ string-template@~0.2.1:
3149631475
resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add"
3149731476
integrity sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=
3149831477

31499-
"string-width-cjs@npm:string-width@^4.2.0":
31478+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.2.3:
3150031479
version "4.2.3"
3150131480
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
3150231481
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -31514,15 +31493,6 @@ string-width@^1.0.1:
3151431493
is-fullwidth-code-point "^1.0.0"
3151531494
strip-ansi "^3.0.0"
3151631495

31517-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.2.3:
31518-
version "4.2.3"
31519-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
31520-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
31521-
dependencies:
31522-
emoji-regex "^8.0.0"
31523-
is-fullwidth-code-point "^3.0.0"
31524-
strip-ansi "^6.0.1"
31525-
3152631496
string-width@^2.1.0:
3152731497
version "2.1.1"
3152831498
resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
@@ -31760,7 +31730,7 @@ string_decoder@~1.1.1:
3176031730
dependencies:
3176131731
safe-buffer "~5.1.0"
3176231732

31763-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
31733+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
3176431734
version "6.0.1"
3176531735
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
3176631736
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -31788,13 +31758,6 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
3178831758
dependencies:
3178931759
ansi-regex "^4.1.0"
3179031760

31791-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
31792-
version "6.0.1"
31793-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
31794-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
31795-
dependencies:
31796-
ansi-regex "^5.0.1"
31797-
3179831761
strip-ansi@^7.0.1:
3179931762
version "7.1.0"
3180031763
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -34279,7 +34242,7 @@ wordwrap@^1.0.0:
3427934242
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
3428034243
integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=
3428134244

34282-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
34245+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
3428334246
version "7.0.0"
3428434247
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
3428534248
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -34306,15 +34269,6 @@ wrap-ansi@^6.2.0:
3430634269
string-width "^4.1.0"
3430734270
strip-ansi "^6.0.0"
3430834271

34309-
wrap-ansi@^7.0.0:
34310-
version "7.0.0"
34311-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
34312-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
34313-
dependencies:
34314-
ansi-styles "^4.0.0"
34315-
string-width "^4.1.0"
34316-
strip-ansi "^6.0.0"
34317-
3431834272
wrap-ansi@^8.1.0:
3431934273
version "8.1.0"
3432034274
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)