This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
TARGET_FILES=("swift-cinema/Sources/CinemaUI/MovieList.swift" "swift-cinema/Sources/CinemaUI/MovieRow.swift" "swift-cinema/Sources/CinemaUI/SubmissionDetailView.swift" "swift-cinema/Sources/Fetcher/Responses.swift" "swift-cinema/Tests/FetcherTests/MovieCollectionFetcherTests.swift" ".github/workflows/REVIEW_CODE.yml") | ||
|
||
FIRST_COMMIT=$(git rev-list --max-parents=0 HEAD) | ||
|
||
CHANGED_FILES=$(git diff -w --name-only $FIRST_COMMIT HEAD) | ||
|
||
MODIFIED_TARGET_FILES=() | ||
for TARGET_FILE in "${TARGET_FILES[@]}"; do | ||
if [[ $CHANGED_FILES == *"$TARGET_FILE"* ]]; then | ||
MODIFIED_TARGET_FILES+=("$TARGET_FILE") | ||
fi | ||
done | ||
|
||
if [ ${#MODIFIED_TARGET_FILES[@]} -gt 0 ]; then | ||
for MODIFIED_FILE in "${MODIFIED_TARGET_FILES[@]}"; do | ||
echo "::warning:: $MODIFIED_FILE 에서 올바르지 않은 수정이 발견되었습니다." | ||
done | ||
fi | ||
|
||
echo "커밋 가드 종료" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters