Skip to content

Commit ed094bb

Browse files
committed
Add backend commit message
1 parent 704bcb4 commit ed094bb

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

backend/api/deploy-api.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ SERVICE_NAME="api"
2727
GIT_REVISION=$(git rev-parse --short HEAD)
2828
GIT_COMMIT_DATE=$(git log -1 --format=%ci)
2929
GIT_COMMIT_AUTHOR=$(git log -1 --format='%an')
30+
GIT_COMMIT_MESSAGE=$(git log -1 --format='%s')
31+
echo "Git commit message: ${GIT_COMMIT_MESSAGE}"
3032

3133
cat > metadata.json << EOF
3234
{
3335
"git": {
3436
"revision": "${GIT_REVISION}",
3537
"commitDate": "${GIT_COMMIT_DATE}",
36-
"author": "${GIT_COMMIT_AUTHOR}"
38+
"author": "${GIT_COMMIT_AUTHOR}",
39+
"message": "${GIT_COMMIT_MESSAGE}"
3740
}
3841
}
3942
EOF

backend/api/metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"git": {
3-
"revision": "91f69ed",
4-
"commitDate": "2025-12-04 20:51:09+0100",
5-
"author": "MartinBraquet"
3+
"revision": "704bcb4",
4+
"commitDate": "2025-12-15 13:38:09 +0200",
5+
"author": "MartinBraquet",
6+
"message": "Increase API docs font size on mobile"
67
}
78
}

backend/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@compass/api",
33
"description": "Backend API endpoints",
4-
"version": "1.0.13",
4+
"version": "1.0.14",
55
"private": true,
66
"scripts": {
77
"watch:serve": "tsx watch src/serve.ts",

web/components/about-settings.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ const BackendInfo = () => {
8787
const gitInfo = info.git || {}
8888
const sha = gitInfo.revision
8989
const commitDate = gitInfo.commitDate
90+
const commitMessage = gitInfo.message
9091
const url = `${githubRepo}/commit/${sha}`
9192
return <Col>
9293
<h3>Backend</h3>
9394
<p>API version: {info.version}</p>
9495
{sha && <p>API commit SHA: <CustomLink href={url}>{sha}</CustomLink></p>}
96+
{commitMessage && <p>API commit message: {commitMessage}</p>}
9597
{commitDate && <p>API commit date: {commitDate}</p>}
9698
</Col>
9799
}

0 commit comments

Comments
 (0)