Skip to content

Commit

Permalink
tested a different way of naming commit messages in sentry (#713)
Browse files Browse the repository at this point in the history
* tested a different way of naming commit messages in sentry

* improved how the message is calculated
  • Loading branch information
CommanderStorm authored Jul 9, 2023
1 parent 0ece0fe commit 346af9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webclient/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import pluginRewriteAll from "vite-plugin-rewrite-all";
import { sentryVitePlugin } from "@sentry/vite-plugin";

// https://vitejs.dev/config/
let commit_message = process.env.GIT_COMMIT_MESSAGE || "development";
commit_message = commit_message.replaceAll(/[^a-z0-9 ]+/gi, "_").replaceAll(/_$/g, "").trim();
export default defineConfig({
envDir: path.resolve(__dirname, "./env"),
appType: "spa",
Expand Down Expand Up @@ -66,7 +68,7 @@ export default defineConfig({
started: new Date().toISOString(),
url: "https://nav.tum.de",
},
name: process.env.GIT_COMMIT_MESSAGE || "development",
name: commit_message,
//setCommits: {
// repo: "TUM-Dev/NavigaTUM",
// commit: process.env.GIT_COMMIT_SHA || "development",
Expand Down

0 comments on commit 346af9d

Please sign in to comment.