Skip to content

Commit d86f9b1

Browse files
committed
Hide PR information from GitHub event path
Signed-off-by: Wei-Chun, Chang <[email protected]>
1 parent 9b0a946 commit d86f9b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

integration_tests/dbt/smoke_test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,17 @@ GIT_REPO="https://github.com/DataRecce/jaffle_shop_duckdb.git"
8181
GIT_BRANCH="fix/customer-lifetime-value"
8282

8383
git clone --depth 1 --branch $GIT_BRANCH $GIT_REPO
84-
ls -al
8584
cd jaffle_shop_duckdb || exit
8685

87-
echo $GIT_DIR
88-
echo
86+
# Hide PR information from GitHub Action
87+
HOLD_GITHUB_EVENT_PATH="$GITHUB_EVENT_PATH"
88+
unset GITHUB_EVENT_PATH
8989

9090
recce summary --cloud | tee recce_summary.md
9191
cat ./recce_summary.md | grep -q customers
9292

9393
echo "Starting the server (cloud and review mode)..."
9494
recce server --cloud --review &
9595
check_server_status
96+
97+
export GITHUB_EVENT_PATH="$HOLD_GITHUB_EVENT_PATH"

recce/git.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,11 @@ def hosting_repo(remote: str = 'origin'):
6767
# Handle https://github.com/user/repo.git or http://github.com/user/repo.git
6868
remote_repo = '/'.join(origin_url.split('/')[-2:]).replace('.git', '')
6969

70-
print('remote', remote_repo)
7170
return remote_repo
7271
except ValueError:
7372
repo = Repo(search_parent_directories=True)
7473
toplevel_dir = repo.git.rev_parse("--show-toplevel")
7574

76-
print('top', toplevel_dir)
7775
return os.path.basename(toplevel_dir)
7876
except InvalidGitRepositoryError:
7977
return None

0 commit comments

Comments
 (0)