-
Notifications
You must be signed in to change notification settings - Fork 200
New repositories not created during full-sync operation #709
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Problem Description
When running safe-settings via GitHub Actions using the full-sync script, new repositories defined in the configuration are not being created, while all other settings synchronization works as expected.
Current vs Expected Behavior
Currently:
- Full-sync runs successfully without errors
- Existing repositories are properly synchronized
- New repositories defined in config are not created
Expected:
- New repositories should be created based on the configuration during full-sync
Technical Analysis
The issue stems from different code execution paths:
-
Normal Operation (Working via webhook)
- Event triggers
syncSettings→Settings.sync→Settings.updateRepos - Directly processes repositories without filtering
- Event triggers
-
Full-Sync (Not Working)
- Process:
syncInstallation→syncAllSettings→Settings.syncAll→Settings.updateAll() updateAllonly processes existing repositories viaeachRepositoryRepos(which useGET /installation/repositoriesto filter)- Missing: Check for repositories defined in config but not yet created
- Process:
Environment
- safe-settings: 2.1.24
- Platform: github.com
- Running on: Github Action (cron + manual trigger)
- Using full-sync script
Related Issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.