chore: autocommit

This commit is contained in:
Julien Calixte
2025-08-02 04:01:40 +02:00
parent b5daf118b4
commit 29928e6432
3 changed files with 26 additions and 0 deletions

18
_scripts/change-theme.ts Normal file
View File

@@ -0,0 +1,18 @@
import { execSync } from "child_process"
export const commitTheme = (mode: string, newTheme: string) => {
// Créer un commit avec les changements
try {
// Ajouter tous les fichiers modifiés
execSync("git add .", { stdio: "inherit" })
// Créer le commit avec le message approprié
const commitMessage = `design: change ${mode} theme to ${newTheme}`
execSync(`git commit -m "${commitMessage}"`, { stdio: "inherit" })
console.log(`Commit créé avec succès: "${commitMessage}"`)
} catch (error) {
console.error("Erreur lors de la création du commit:", error)
process.exit(1)
}
}