File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,16 @@ SERVICE_NAME="api"
2727GIT_REVISION=$( git rev-parse --short HEAD)
2828GIT_COMMIT_DATE=$( git log -1 --format=%ci)
2929GIT_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
3133cat > 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}
3942EOF
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments