Skip to content

Commit 4433789

Browse files
committed
chore: rename source other to manual
It makes more obvious that user has to do other stuffs manually. Change-Id: Ice3f956e29313e5f2f7552d2fb229bdfe7a9d5b3
1 parent cdc5c71 commit 4433789

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mergify_cli/ci/scopes/cli.py

Lines changed: 4 additions & 6 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

@@ -159,9 +159,7 @@ def detect(config_path: str) -> DetectedScope:
159159
all_scopes = set(source.files.keys())
160160
scopes_hit, per_scope = match_scopes(changed, source.files)
161161
elif isinstance(source, SourceOther):
162-
msg = (
163-
"source `other` has been set, scopes must be send with `scopes-send` or API"
164-
)
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)