Skip to content

Commit 89848a6

Browse files
committed
chore: Update Dependabot configuration to remove versioning strategy and adjust logging in config
1 parent e6f6210 commit 89848a6

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ updates:
1010
schedule:
1111
interval: weekly
1212
open-pull-requests-limit: 10
13-
versioning-strategy: auto
1413
labels:
1514
- 'dependencies'
1615
- 'npm'
@@ -26,7 +25,6 @@ updates:
2625
schedule:
2726
interval: weekly
2827
open-pull-requests-limit: 10
29-
versioning-strategy: auto
3028
labels:
3129
- 'dependencies'
3230
- 'docker'
@@ -42,7 +40,6 @@ updates:
4240
schedule:
4341
interval: weekly
4442
open-pull-requests-limit: 10
45-
versioning-strategy: auto
4643
labels:
4744
- 'dependencies'
4845
- 'docker-compose'
@@ -58,7 +55,6 @@ updates:
5855
schedule:
5956
interval: weekly
6057
open-pull-requests-limit: 10
61-
versioning-strategy: auto
6258
labels:
6359
- 'dependencies'
6460
- 'github-actions'
@@ -74,7 +70,6 @@ updates:
7470
schedule:
7571
interval: weekly
7672
open-pull-requests-limit: 10
77-
versioning-strategy: auto
7873
labels:
7974
- 'dependencies'
8075
- 'devcontainers'

.scripts/version-bump.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ try {
131131

132132
console.log('\n✓ Changes committed and tagged successfully!');
133133
console.log(`\nTo push changes and tag to remote repository:`);
134-
console.log(` git push origin main`);
134+
console.log(` git push origin master`);
135135
console.log(` git push origin ${newVersionWithV}`);
136136

137137
console.log(`\nTo build Docker image with new version:`);

src/config/config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,26 @@ const logger = require('../utils/logger');
33

44
const getMongoDbUri = () => {
55
const nodeEnv = process.env.NODE_ENV || 'development';
6+
logger.info(`NODE_ENV: ${nodeEnv}`);
67

78
// Map NODE_ENV to corresponding suffix
89
const envSuffixMap = {
910
production: 'PRD',
1011
staging: 'STG',
1112
development: 'DEV',
1213
testing: 'TST',
13-
test: 'TST', // Allow 'test' as alias
14+
test: 'TEST', // Allow 'test' as alias
1415
};
1516

1617
const suffix = envSuffixMap[nodeEnv];
1718
const envSpecificUriVar = suffix ? `MONGODB_URI_${suffix}` : null;
1819

19-
logger.debug(`Environment: ${nodeEnv}`);
20-
logger.debug(`MongoDB URI variable: ${envSpecificUriVar}`);
20+
logger.info(`Environment: ${nodeEnv}`);
21+
logger.info(`MongoDB URI variable: ${envSpecificUriVar}`);
2122

2223
// Use base URI if environment-specific one is not defined
2324
const mongoUri = process.env[envSpecificUriVar] || process.env.MONGODB_URI;
25+
logger.info(`MongoDB URI: ${mongoUri}`);
2426

2527
if (nodeEnv === 'test' && !mongoUri) {
2628
return 'mongodb://127.0.0.1:27017/chatlogger_test';
@@ -31,7 +33,7 @@ const getMongoDbUri = () => {
3133
throw new Error('MongoDB URI is not set. Please configure `MONGODB_URI` in .env file.');
3234
}
3335

34-
logger.debug(`Using MongoDB URI from ${envSpecificUriVar || process.env.MONGODB_URI}`);
36+
logger.info(`Using MongoDB URI from ${envSpecificUriVar || process.env.MONGODB_URI}`);
3537
return mongoUri;
3638
};
3739

src/docs/swagger/definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.0.3
1+
openapi: 3.1.1
22
info:
33
title: ChatLogger API
44
summary: API for storing and retrieving chat interactions

0 commit comments

Comments
 (0)