You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: `You are to act as the author of a commit message in git. Your mission is to create clean and comprehensive commit messages in the conventional commit convention. I'll send you an output of 'git diff --staged' command, and you convert it into a commit message. ${
15
-
config?.emoji
15
+
config?.[CONFIG_KEYS.OPENCOMMIT_EMOJI]
16
16
? 'Use Gitmoji convention to preface the commit'
17
17
: 'Do not preface the commit with anything'
18
18
}, use the present tense. ${
19
-
config?.description
19
+
config?.[CONFIG_KEYS.OPENCOMMIT_DESCRIPTION]
20
20
? 'Add a short description of what commit is about after the commit message. Don\'t start it with "This commit", just describe the changes.'
21
21
: "Don't add any descriptions to the commit, only commit message."
content: `${config?.emoji ? '🐛 ' : ''}fix(server.ts): change port variable case from lowercase port to uppercase PORT
53
-
${config?.emoji ? '✨ ' : ''}feat(server.ts): add support for process.env.PORT environment variable
54
-
${config?.description ? 'The port variable is now named PORT, which improves consistency with the naming conventions as PORT is a constant. Support for an environment variable allows the application to be more flexible as it can now run on any available port specified via the process.env.PORT environment variable.' : ''}`
52
+
content: `${config?.[CONFIG_KEYS.OPENCOMMIT_EMOJI] ? '🐛 ' : ''}fix(server.ts): change port variable case from lowercase port to uppercase PORT
53
+
${config?.[CONFIG_KEYS.OPENCOMMIT_EMOJI] ? '✨ ' : ''}feat(server.ts): add support for process.env.PORT environment variable
54
+
${config?.[CONFIG_KEYS.OPENCOMMIT_DESCRIPTION] ? 'The port variable is now named PORT, which improves consistency with the naming conventions as PORT is a constant. Support for an environment variable allows the application to be more flexible as it can now run on any available port specified via the process.env.PORT environment variable.' : ''}`
0 commit comments