@ckeditor/ckeditor5-dev-ci 38.4.0 → 38.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/allocate-swap-memory.sh +0 -0
- package/bin/circle-workflow-notifier.js +0 -0
- package/bin/install-latest-chrome.sh +0 -0
- package/bin/notify-circle-status.js +0 -0
- package/bin/notify-travis-status.js +0 -0
- package/lib/data/members.json +2 -1
- package/lib/format-message.js +21 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@ CKEditor 5 CI utilities
|
|
|
2
2
|
=======================
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-dev-ci)
|
|
5
|
-
[](https://app.circleci.com/pipelines/github/ckeditor/ckeditor5-dev?branch=master)
|
|
6
6
|
|
|
7
7
|
Utils for [CKEditor 5](https://ckeditor.com) CI builds.
|
|
8
8
|
|
|
9
|
-
Contains tools for sending Slack notifications by Travis.
|
|
9
|
+
Contains tools for sending Slack notifications by Travis or Circle CI.
|
|
10
10
|
|
|
11
11
|
More information about development tools packages can be found at the following URL: <https://github.com/ckeditor/ckeditor5-dev>.
|
|
12
12
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/data/members.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"DawidKossowski": "U0401V31S9M",
|
|
9
9
|
"dufipl": "U02SG0U25GS",
|
|
10
10
|
"Dumluregn": "UGG2JE7JR",
|
|
11
|
-
"filipsobol
|
|
11
|
+
"filipsobol": "U04GZ96MKCN",
|
|
12
12
|
"FilipTokarski": "URSK5KV9V",
|
|
13
13
|
"godai78": "U017DJLU7NX",
|
|
14
14
|
"gorzelinski": "U04DJ7BKSKU",
|
|
@@ -30,5 +30,6 @@
|
|
|
30
30
|
"pszczesniak": "U04167FKV88",
|
|
31
31
|
"Reinmar": "U03UQRP0C",
|
|
32
32
|
"scofalik": "U05611ZMM",
|
|
33
|
+
"Witoso": "U04S02SUZS5",
|
|
33
34
|
"wwalc": "U03UQQ8PY"
|
|
34
35
|
}
|
package/lib/format-message.js
CHANGED
|
@@ -75,13 +75,13 @@ module.exports = async function formatMessage( options ) {
|
|
|
75
75
|
* @returns {String}
|
|
76
76
|
*/
|
|
77
77
|
function getNotifierMessage( options ) {
|
|
78
|
-
const slackAccount = members[ options.githubAccount ] || null;
|
|
79
|
-
const botActionMessage = '_Automated stuff happened on one of the branches. Got time to have a look at it, anyone?_';
|
|
80
|
-
|
|
81
78
|
if ( options.shouldHideAuthor ) {
|
|
82
79
|
return '_The author of the commit was hidden. <https://github.com/ckeditor/ckeditor5/issues/9252|Read more about why.>_';
|
|
83
80
|
}
|
|
84
81
|
|
|
82
|
+
const slackAccount = findSlackAccount( options.githubAccount );
|
|
83
|
+
const botActionMessage = '_Automated stuff happened on one of the branches. Got time to have a look at it, anyone?_';
|
|
84
|
+
|
|
85
85
|
if ( bots.includes( options.githubAccount ) ) {
|
|
86
86
|
return botActionMessage;
|
|
87
87
|
}
|
|
@@ -98,6 +98,24 @@ function getNotifierMessage( options ) {
|
|
|
98
98
|
return `<@${ slackAccount }>, could you take a look?`;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* @param {String|null} githubAccount
|
|
103
|
+
* @returns {String|null}
|
|
104
|
+
*/
|
|
105
|
+
function findSlackAccount( githubAccount ) {
|
|
106
|
+
if ( !githubAccount ) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
for ( const [ key, value ] of Object.entries( members ) ) {
|
|
111
|
+
if ( key.toLowerCase() === githubAccount.toLowerCase() ) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
|
|
101
119
|
/**
|
|
102
120
|
* Returns string representing amount of time passed between two timestamps.
|
|
103
121
|
* Timestamps should be in seconds instead of milliseconds.
|