Add github_continuous_import feature flag
What does this MR do and why?
This MR adds a feature flag definition for the github_continuous_import
feature, which will keep a GitLab project synced with its GitHub source
after import. The feature is being ported from a proof-of-concept merge
request (!251883,
which will be closed, not merged) into master as a series of small,
independently-reviewed merge requests. This flag needs to exist first so
every later MR has something to gate its unfinished code behind, keeping
it invisible until the feature is complete.
The flag is type: wip and disabled by default (default_enabled: false).
This MR also adds a single no-op Feature.enabled?(:github_continuous_import, project)
guard clause in Stage::FinishImportWorker#import, so the rspec:feature-flags CI job
(which fails on unused flags) passes. It has no effect today; the real continuous-sync
behavior lands in a follow-up MR.
References
Screenshots or screen recordings
Not applicable — this MR only adds a feature flag definition file, no UI change.
How to set up and validate locally
- Verify
config/feature_flags/wip/github_continuous_import.ymlexists withtype: wipanddefault_enabled: false. - In a Rails console, confirm
Feature.enabled?(:github_continuous_import)returnsfalse. - Confirm
Stage::FinishImportWorker#importstill marks imports as finished with the flag disabled (see the added spec context).
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.