-
Notifications
You must be signed in to change notification settings - Fork 0
Claude 코드 리뷰 동작 개선 및 코멘트 응답 기능 추가 #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||
| name: Claude Issue & PR Comment Response | ||||||
|
|
||||||
| on: | ||||||
| issue_comment: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [버그]
if: |
github.event.comment.user.login != 'github-actions[bot]' &&
contains(github.event.comment.body, '@claude') &&
(github.event_name == 'pull_request_review_comment' || github.event.issue.pull_request != null)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이슈에서도 사용 가능하도록 유연하게 설정하기 위한 의도였음. |
||||||
| types: [ created ] | ||||||
| pull_request_review_comment: | ||||||
| types: [ created ] | ||||||
|
|
||||||
| concurrency: | ||||||
| group: claude-comment-${{ github.event.issue.number }}-${{ github.event.comment.id }} | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [버그]
Suggested change
|
||||||
| cancel-in-progress: false | ||||||
|
|
||||||
| jobs: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [개선] concurrency 설정 누락
concurrency:
group: claude-comment-${{ github.event.issue.number }}-${{ github.event.comment.id }}
cancel-in-progress: false
|
||||||
| respond: | ||||||
| if: | | ||||||
| github.event.comment.user.login != 'github-actions[bot]' && | ||||||
| contains(github.event.comment.body, '@claude') && | ||||||
| (github.event.comment.author_association == 'MEMBER' || | ||||||
| github.event.comment.author_association == 'OWNER' || | ||||||
| github.event.comment.author_association == 'COLLABORATOR') | ||||||
|
Comment on lines
+15
to
+20
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [제안] 현재 또한 |
||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: read | ||||||
| pull-requests: write | ||||||
| issues: write | ||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
| - uses: anthropics/claude-code-action@v1 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [보안]
Suggested change
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
allowed_tools: "Bash,Read,Write,Edit" # 필요한 툴만 허용최소 권한 원칙(Principle of Least Privilege) 적용을 위해 실제 사용 패턴을 확인 후 범위를 좁히는 것을 추천합니다. |
||||||
| with: | ||||||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||||||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[확인 필요]
add == 0조건은 스레드 단위로 동작합니다현재 필터는 스레드 내 모든 코멘트의 리액션 합계가 0인 경우에만 삭제합니다. 즉, 스레드 안에서 어느 코멘트 하나라도 리액션이 달리면 스레드 전체가 보존됩니다.
의도한 동작임을 명확히 하기 위해 PR 설명이나 주석으로 "스레드 단위 보존" 정책을 명시하는 것을 권장합니다.