ci: add pr langauge labeler on pull_request_target
event
#379
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.
배경
pull_request_target
이벤트를 사용하여 해결해보기로 결정.actions/labeler
를 사용하는 게 더 깔끔한 구현이 가능하여 이를 사용하여 작업 진행.작업
.github/labeler.yml
에 원하는 조건과 label 구성을 정의pull_request_target
이벤트 기반으로 작성하던 기존automation
이벤트에label-lang
job 새로 추가테스트
fork
repository 에서 base repository 로 PR 을 열어 테스트를 진행함.Note
pull_request_target
는pull_request
와 달리, base repo의 컨텍스트를 기반으로 작동하기 때문에 main 에 병합된 이후 올라온 PR 부터 automation 이 작동합니다.