feat: Statusanzeige für Eingänge implementiert

This commit is contained in:
ISA
2025-06-20 13:06:43 +02:00
parent 01cb8cddc4
commit b30c5fc8bd
6 changed files with 23 additions and 6 deletions

View File

@@ -6,5 +6,5 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.430 NEXT_PUBLIC_APP_VERSION=1.6.431
NEXT_PUBLIC_CPL_MODE=jsmock # json (Entwicklungsumgebung) oder jsmock (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) NEXT_PUBLIC_CPL_MODE=jsmock # json (Entwicklungsumgebung) oder jsmock (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.430 NEXT_PUBLIC_APP_VERSION=1.6.431
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -9,4 +9,4 @@ npx ts-node scripts/bumpVersion.ts || exit 1
# Automatisch relevante Dateien zum Commit hinzufügen # Automatisch relevante Dateien zum Commit hinzufügen
git add package.json package-lock.json .env.development .env.production git add package.json package-lock.json .env.development .env.production
# Fortsetzen mit dem Commit node ./scripts/updateChangelogFromCommit.js

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.430", "version": "1.6.431",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.430", "version": "1.6.431",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^5.1.0", "@fontsource/roboto": "^5.1.0",
"@iconify-icons/ri": "^1.2.10", "@iconify-icons/ri": "^1.2.10",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.430", "version": "1.6.431",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",

View File

@@ -0,0 +1,17 @@
const fs = require("fs");
const path = require("path");
const changelogPath = path.resolve("CHANGELOG.md");
const commitMsgPath = path.resolve(".git", "COMMIT_EDITMSG");
const packageJson = require("../package.json");
const commitMsg = fs.readFileSync(commitMsgPath, "utf-8").trim();
const version = packageJson.version;
const date = new Date().toISOString().split("T")[0]; // YYYY-MM-DD
const newEntry = `## [${version}] ${date}\n\n- ${commitMsg}\n\n---\n`;
const oldChangelog = fs.readFileSync(changelogPath, "utf-8");
fs.writeFileSync(changelogPath, newEntry + oldChangelog, "utf-8");
console.log("✅ CHANGELOG.md aktualisiert mit Commit-Message:", commitMsg);