File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ class SourceFiles(pydantic.BaseModel):
4141 files : dict [ScopeName , FileFilters ]
4242
4343
44- class SourceOther (pydantic .BaseModel ):
45- other : None
44+ class SourceManual (pydantic .BaseModel ):
45+ manual : None
4646
4747
4848class ScopesConfig (pydantic .BaseModel ):
4949 model_config = pydantic .ConfigDict (extra = "forbid" )
5050
5151 mode : typing .Literal ["serial" , "parallel" ] = "serial"
52- source : SourceFiles | SourceOther | None = None
52+ source : SourceFiles | SourceManual | None = None
5353 merge_queue_scope : str | None = "merge-queue"
5454
5555
@@ -158,10 +158,8 @@ def detect(config_path: str) -> DetectedScope:
158158 changed = changed_files .git_changed_files (base .ref )
159159 all_scopes = set (source .files .keys ())
160160 scopes_hit , per_scope = match_scopes (changed , source .files )
161- elif isinstance (source , SourceOther ):
162- msg = (
163- "source `other` has been set, scopes must be send with `scopes-send` or API"
164- )
161+ elif isinstance (source , SourceManual ):
162+ msg = "source `manual` has been set, scopes must be send with `scopes-send` or API"
165163 raise exceptions .ScopesError (msg )
166164 else :
167165 msg = "Unsupported source type" # type:ignore[unreachable]
You can’t perform that action at this time.
0 commit comments