[CI integration] Rebase 없이 filename 체크가 성공할 수 있도록 개선 #702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
목적
위 변경사항은 이 라인에서 확인하실 수 있습니다.
상세 내용
이전 수정에서
github.sha
를github.event.pull_request.head.sha
로 수정했었는데, 이 부분이 github actions 상에서는 사실상 같은 위치를 바라보게 되어있더라구요.이로인해 주기적인 rebase를 해주지 않으면, 다른 사람들이 사전에 병합한 제출 내역이 같이 비교되는 문제가 있었습니다.
이러한 문제를
git merge-base
를 통해upstream/main
과 현재 PR의 공통 조상을 확인토록 수정하여 rebase 없이도 PR 병합에 문제가 없도록 수정하였습니다추가적으로, 좀 더 명확한 디버깅과 문제 원인파악을 위해, 디버깅 메시지를 추가하였습니다.