Skip to content

Commit 3c7cfee

Browse files
authored
chore(IDX): remove debug (#86)
1 parent dd27317 commit 3c7cfee

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

reusable_workflows/repo_policies/bot_checks/check_bot_approved_files.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ def get_changed_files(
2525
Compares the files changed in the current branch to the merge base.
2626
"""
2727
commit_range = f"{merge_base_sha}..{branch_head_sha}"
28-
# debug
29-
current_branch = subprocess.run(
30-
["git", "branch"], capture_output=True, text=True, cwd=repo_path
31-
)
32-
print(f"current branch: {current_branch.stdout}")
3328
result = subprocess.run(
3429
["git", "diff", "--name-only", commit_range],
3530
capture_output=True,

reusable_workflows/tests/test_repo_policies.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ def test_get_changed_files(mock_subprocess_run):
2222
changed_files = get_changed_files("merge_base_sha", "branch_head_sha")
2323

2424
assert changed_files == ["file1.py", "file2.py"]
25-
# temporarily disable while debugging
26-
# mock_subprocess_run.assert_called_once_with(
27-
# ["git", "diff", "--name-only", "merge_base_sha..branch_head_sha"],
28-
# capture_output=True,
29-
# text=True,
30-
# cwd=None,
31-
# )
25+
mock_subprocess_run.assert_called_once_with(
26+
["git", "diff", "--name-only", "merge_base_sha..branch_head_sha"],
27+
capture_output=True,
28+
text=True,
29+
cwd=None,
30+
)
3231

3332

3433
@mock.patch("repo_policies.bot_checks.check_bot_approved_files.download_gh_file")

0 commit comments

Comments
 (0)