Add fmt:license and check:license tasks#31
Merged
Conversation
Prompt: """ 현재 코드 베이스는 GPL 3.0 하에 배포되기 때문에 모든 소스 코드 파일이 GPL 주석으로 시작되어야 합니다. 이를 검사하고 자동으로 채워넣어주는 `addLicense` 를 완성하세요. 1. `INCLUDED` 에 포함되는 모든 파일을 찾습니다. 2. `GPL` 의 키를 확장자로 가진 파일만 추려냅니다. 3. `EXCLUDED` 에 포함되는 파일은 걸러냅니다. 4. 파일에서 `GPL[ext]`의 줄만큼 읽습니다. (CSS 의 경우 17줄, 그외에는 15줄) 5. 해당 내용이 `GPL[ext]` 와 동일하지 않은 파일을 추려냅니다. 6-1. 그런 파일이 없다면 exit 0 로 종료합니다. 6-2. 하나의 파일이라도 문제가 있는 경우 다음을 진행합니다. 7-1. `check === true` 인 경우 문제가 있는 파일들의 목록을 출력한 뒤 exit 1 로 종료합니다. 7-2. 아닐 경우 해당하는 파일들의 서두에 `GPL[ext]` 를 추가합니다. """ Output: changes in this commit Assisted-by: Claude Code:claude-sonnet-5
dodok8
approved these changes
Jul 22, 2026
dahlia
approved these changes
Jul 22, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the
check:licensetask; this task checks for files with missing licenses.Also adds the
fmt:licensetask; this task adds license comments to files missing them.checkdepends oncheck:license, andfmtdepends onfmt:license. Therefore, license checks and formatting are automatically applied to all files within the workflow.Assisted by Claude Code:claude-sonnet-5 and remain the prompt in the message of eee5695.