Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

feat(idlebiz): setup script for inseting basic material & building#17

Merged
nsylke merged 2 commits intomainfrom
feat/setup-script
Apr 29, 2025
Merged

feat(idlebiz): setup script for inseting basic material & building#17
nsylke merged 2 commits intomainfrom
feat/setup-script

Conversation

@nsylke
Copy link
Contributor

@nsylke nsylke commented Apr 29, 2025

No description provided.

@nsylke nsylke added app: idlebiz IdleBiz type: feat status: complete Work is done and merged priority: p3 (low) Low—minimal impact or backlog grooming complexity: small Can be done in under a day labels Apr 29, 2025
@nsylke nsylke self-assigned this Apr 29, 2025
@nsylke nsylke changed the title feat(idlebiz): include setup script for inseting basic material & bui… feat(idlebiz): include setup script for inseting basic material & building Apr 29, 2025
@github-actions
Copy link

Semgrep Results

No issues found!

@nsylke nsylke requested a review from Copilot April 29, 2025 21:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new setup script for the idlebiz application that programmatically inserts basic materials and building data into the database, and it updates the environment configuration to properly handle secret variables.

  • Introduces a new setup script (apps/idlebiz/src/setup.ts) to conditionally add initial data for materials and buildings.
  • Updates the environment file (apps/idlebiz/src/env.ts) to include "MONGODB_URI" in the list of secret environment variables to be cleared from process.env.

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
apps/idlebiz/src/setup.ts Adds a self-invoking async function to insert initial material and building records into the db.
apps/idlebiz/src/env.ts Updates secretEnvs to also remove "MONGODB_URI" from process.env.
Files not reviewed (2)
  • apps/idlebiz/package.json: Language not supported
  • pnpm-lock.yaml: Language not supported

@nsylke nsylke changed the title feat(idlebiz): include setup script for inseting basic material & building feat(idlebiz): setup script for inseting basic material & building Apr 29, 2025
@nsylke nsylke merged commit 61b3d49 into main Apr 29, 2025
5 checks passed
@nsylke nsylke deleted the feat/setup-script branch April 29, 2025 22:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

app: idlebiz IdleBiz complexity: small Can be done in under a day priority: p3 (low) Low—minimal impact or backlog grooming status: complete Work is done and merged type: feat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants