Skip to content

Commit 12017e2

Browse files
committed
fix: try make a mistake
1 parent e0367e6 commit 12017e2

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

adminforth/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import ExpressServer from './servers/express.js';
88
// import FastifyServer from './servers/fastify.js';
99
import { ADMINFORTH_VERSION, listify, suggestIfTypo, RateLimiter, getClientIp } from './modules/utils.js';
1010

11+
a.b;
12+
1113
import {
1214
type AdminForthConfig,
1315
type IAdminForth,

live-demo/deploy/buildSlackNotify.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
#!/bin/sh
22

3-
env
4-
# if CI_STEP_STATUS is success, then output to slack, that `npm run build` was successful
3+
4+
COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
5+
56

67
if [ "$CI_STEP_STATUS" = "success" ]; then
7-
MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. (<$CI_COMMIT_URL|$CI_COMMIT_SHA>)"
8+
MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
89

910
curl -s -X POST -H "Content-Type: application/json" -d '{
1011
"username": "'"$CI_COMMIT_AUTHOR"'",
1112
"icon_url": "'"$CI_COMMIT_AUTHOR_AVATAR"'",
1213
"attachments": [
1314
{
1415
"mrkdwn_in": ["text", "pretext"],
15-
"color": "#8A1C12",
16-
"text": "'"$MESSAGE"'",
17-
"pretext": "'"$MESSAGE"'"
16+
"color": "#36a64f",
17+
"text": "'"$MESSAGE"'"
1818
}
1919
]
2020
}' "$DEVELOPERS_SLACK_WEBHOOK"
2121
exit 0
2222
fi
2323
export BUILD_LOG=$(cat ../../adminforth/build.log)
2424

25-
COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
2625

2726
MESSAGE="Broke \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\` with commit (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)."
2827
CODE_BLOCK="\`\`\`$BUILD_LOG\n\`\`\`"

0 commit comments

Comments
 (0)