Skip to content

Commit cd196dd

Browse files
authored
Merge of #832
2 parents c14f612 + 213bda2 commit cd196dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mergify_cli/ci/scopes/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def detect(config_path: str) -> DetectedScope:
119119
cfg = config.Config.from_yaml(config_path)
120120
base = base_detector.detect()
121121

122+
click.echo(f"Base: {base.ref}")
123+
122124
scopes_hit: set[str]
123125
per_scope: dict[str, list[str]]
124126

@@ -129,6 +131,9 @@ def detect(config_path: str) -> DetectedScope:
129131
per_scope = {}
130132
elif isinstance(source, config.SourceFiles):
131133
changed = changed_files.git_changed_files(base.ref)
134+
click.echo("Changed files detected:")
135+
for file in changed:
136+
click.echo(f"- {file}")
132137
all_scopes = set(source.files.keys())
133138
scopes_hit, per_scope = match_scopes(changed, source.files)
134139
elif isinstance(source, config.SourceManual):
@@ -143,7 +148,6 @@ def detect(config_path: str) -> DetectedScope:
143148
if base.is_merge_queue:
144149
scopes_hit.add(cfg.scopes.merge_queue_scope)
145150

146-
click.echo(f"Base: {base.ref}")
147151
if scopes_hit:
148152
click.echo("Scopes touched:")
149153
for s in sorted(scopes_hit):

0 commit comments

Comments
 (0)