Skip to content

Commit 9e00961

Browse files
authored
chore: rename source other to manual (#820)
It makes more obvious that user has to do other stuffs manually.
1 parent cdc5c71 commit 9e00961

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

mergify_cli/ci/scopes/cli.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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

4848
class 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]

0 commit comments

Comments
 (0)