apify-test-tools 0.8.6 → 0.8.7-beta.0
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/CHANGELOG.md +9 -0
- package/bin/slack.ts +4 -4
- package/dist/bin/slack.js +4 -4
- package/dist/bin/slack.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +61 -61
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
<!-- git-cliff-unreleased-start -->
|
|
6
|
+
## 0.8.7 - **not yet released**
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Use slack mrkdwn in release notifications ([#107](https://github.com/apify/apify-test-tools/pull/107)) ([b5314e4](https://github.com/apify/apify-test-tools/commit/b5314e42dead43ebe7d501c448287fb6f026e9ed)) by [@JMatej](https://github.com/JMatej)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<!-- git-cliff-unreleased-end -->
|
|
5
14
|
## [0.8.6](https://github.com/apify/apify-test-tools/releases/tag/v0.8.6) (2026-07-16)
|
|
6
15
|
|
|
7
16
|
### 🐛 Bug Fixes
|
package/bin/slack.ts
CHANGED
|
@@ -30,11 +30,11 @@ export const notifyToSlack = async ({
|
|
|
30
30
|
console.warn('No new changelog entries found, did you forget to update it?');
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
let shortMessage =
|
|
33
|
+
let shortMessage = `*${repository}* – New release (by ${author}):\n\n`;
|
|
34
34
|
|
|
35
35
|
// This one is just for broader public that only cares about public facing changes
|
|
36
36
|
if (changelog && releaseSlackChannel) {
|
|
37
|
-
shortMessage +=
|
|
37
|
+
shortMessage += `*Additions to the changelog*:\n\n${changelog}\n`;
|
|
38
38
|
console.error(`=========================================`);
|
|
39
39
|
console.error(`**Sending slack message to channel**: ${releaseSlackChannel}.\n\n${shortMessage}`);
|
|
40
40
|
console.error(`=========================================`);
|
|
@@ -52,8 +52,8 @@ export const notifyToSlack = async ({
|
|
|
52
52
|
`${index + 1}. Commit message: ${message}\n\tAuthor: ${commitAuthor}.`,
|
|
53
53
|
)
|
|
54
54
|
.join('\n')}`;
|
|
55
|
-
const changedFilesMessage =
|
|
56
|
-
const longMessage = `${shortMessage}\n
|
|
55
|
+
const changedFilesMessage = `*Files changed*: ${changedFiles.map((file) => `\`${file}\``).join(', ')}`;
|
|
56
|
+
const longMessage = `${shortMessage}\n*Commit list*:\n${commitsMessage}\n\n${changedFilesMessage}`;
|
|
57
57
|
|
|
58
58
|
// This one is for devs and project managers that need to know more details
|
|
59
59
|
if (reportSlackChannel) {
|
package/dist/bin/slack.js
CHANGED
|
@@ -5,10 +5,10 @@ export const notifyToSlack = async ({ changedFiles, commits, changelog, reposito
|
|
|
5
5
|
if (!changelog) {
|
|
6
6
|
console.warn('No new changelog entries found, did you forget to update it?');
|
|
7
7
|
}
|
|
8
|
-
let shortMessage =
|
|
8
|
+
let shortMessage = `*${repository}* – New release (by ${author}):\n\n`;
|
|
9
9
|
// This one is just for broader public that only cares about public facing changes
|
|
10
10
|
if (changelog && releaseSlackChannel) {
|
|
11
|
-
shortMessage +=
|
|
11
|
+
shortMessage += `*Additions to the changelog*:\n\n${changelog}\n`;
|
|
12
12
|
console.error(`=========================================`);
|
|
13
13
|
console.error(`**Sending slack message to channel**: ${releaseSlackChannel}.\n\n${shortMessage}`);
|
|
14
14
|
console.error(`=========================================`);
|
|
@@ -22,8 +22,8 @@ export const notifyToSlack = async ({ changedFiles, commits, changelog, reposito
|
|
|
22
22
|
const commitsMessage = `${commits
|
|
23
23
|
.map(({ author: commitAuthor, message }, index) => `${index + 1}. Commit message: ${message}\n\tAuthor: ${commitAuthor}.`)
|
|
24
24
|
.join('\n')}`;
|
|
25
|
-
const changedFilesMessage =
|
|
26
|
-
const longMessage = `${shortMessage}\n
|
|
25
|
+
const changedFilesMessage = `*Files changed*: ${changedFiles.map((file) => `\`${file}\``).join(', ')}`;
|
|
26
|
+
const longMessage = `${shortMessage}\n*Commit list*:\n${commitsMessage}\n\n${changedFilesMessage}`;
|
|
27
27
|
// This one is for devs and project managers that need to know more details
|
|
28
28
|
if (reportSlackChannel) {
|
|
29
29
|
console.error(`=========================================`);
|
package/dist/bin/slack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slack.js","sourceRoot":"","sources":["../../bin/slack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAavC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,EAChC,YAAY,EACZ,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,mBAAmB,EACnB,kBAAkB,GACC,EAAE,EAAE;IACvB,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAEnE,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CAAC,8DAA8D,CAAC,CAAC;IACjF,CAAC;IAED,IAAI,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"slack.js","sourceRoot":"","sources":["../../bin/slack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAavC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,EAChC,YAAY,EACZ,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,mBAAmB,EACnB,kBAAkB,GACC,EAAE,EAAE;IACvB,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAEnE,IAAI,CAAC,SAAS,EAA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