Repository navigation
Closed
Description
Task Description
As a first step towards a more dynamic, Git-based configuration system, this task focuses on making the list of monitored repositories ('GITHUB_REPOS_TO_MONITOR') editable via the web UI.
The goal is to allow administrators to add or remove repositories without editing '.env' files and restarting the application. The configuration will be stored in a JSON file within a dedicated private Git repository ('integry/gitfix-config').
High-Level Plan
- Backend API (
dashboard-api): Create endpoints to read and write the list of monitored repositories from the Git repository. - Daemon Integration: Update the 'daemon' service to fetch its list of repositories from this new Git-based source instead of the environment variable.
- Frontend UI: Create a new settings page or section in the dashboard to display, edit, and save the list of repositories.
Implementation Steps
1. Backend API ('dashboard-api')
- Create a new private repository 'integry/gitfix-config'.
- In this new repository, create a file named 'config.json' with an initial structure (see suggestion below).
- In the 'dashboard-api' service, implement logic to clone/pull this repository.
- Create 'GET /api/config/repos' endpoint: This should read 'config.json' from the local clone and return the 'repos_to_monitor' array.
- Create 'POST /api/config/repos' endpoint:
- This endpoint will accept a new array of repository strings.
- It must use a Redis lock to ensure atomic updates.
- The logic should be: lock -> pull -> read -> update JSON -> write -> commit -> push -> unlock.
- The commit message should indicate the change was made via the UI.
2. Daemon Integration ('daemon.js')
- The 'getRepos()' function in 'src/daemon.js' currently reads from 'process.env.GITHUB_REPOS_TO_MONITOR'.
- This function needs to be updated to read from the 'integry/gitfix-config' repository instead.
- On Startup: The daemon should clone the config repo.
- Dynamic Reloading: Implement a simple polling mechanism within the daemon's main loop (e.g., every 5 minutes) to run 'git pull' on the config repo and reload the list of monitored repositories if changes are detected.
3. Frontend UI
- Create a new component/page for "Repository Management".
- This UI should:
- Fetch the list of repositories from the 'GET /api/config/repos' endpoint.
- Display the repositories in a user-friendly way (e.g., a list or a textarea).
- Allow the user to edit the list.
- On "Save", send the updated list to the 'POST /api/config/repos' endpoint.
- Provide feedback to the user on success or failure.
This change will decouple the list of monitored repos from the application's environment configuration, making it much more flexible to manage.
Activity
integry commentedon Oct 7, 2025
Suggested Implementation
Here are some code suggestions for the different parts of the application.
1.
config.jsoninintegry/gitfix-configrepo:Keep it simple to start.
{ "repos_to_monitor": [ "integry/gitfix-example-app", "integry/gitfix-example-another" ] }2.
daemon.jsmodifications:Update the 'getRepos' function and add a mechanism to reload it.
3. Frontend Component (
RepoManager.jsx):This would be a new component for the UI.
integry commentedon Oct 7, 2025
Instead of using hardcoded https://github.com/integry/gitfix-config.git add a CONFIG_REPO entry to the .env file
propr-dev commentedon Oct 7, 2025
🤖 AI processing has started for this issue using claude-sonnet-4-5-20250929 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claude-sonnet-4-5-20250929ai-fix/101-feat-implement-dynamic-re-20251007-1326-claude-sonnet-4-5-20250929-nifmainissue-101-20251007-1326-claude-sonnet-4-5-20250929-niffix(ai): Resolve issue #101 - Feat: Implement Dynamic Repository Mana…
Merge pull request #102 from integry/ai-fix/101-feat-implement-dynami…
feat(ai): I fixed F1 and F2. The affected suites pass, and every new …
feat(ai): I fixed F3. When GitHub's list of PRs into the epic branch …
feat(ai): I fixed F4. A merged PR from an issue branch that only begi…
feat(ai): I fixed F5. A later epic on the same branch now drops an is…
[3594 by Claude Opus 5.5] Epic progress: count plan issues, and make …