Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
needs.check-team-member.outputs.is-team-member == 'true' &&
github.actor != 'github-actions[bot]' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/claude /full-review')
contains(github.event.comment.body, '@claude /full-review')
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
needs.check-team-member.outputs.is-team-member == 'true' &&
github.actor != 'github-actions[bot]' &&
(
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/claude') && !contains(github.event.comment.body, '/claude /full-review')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/claude') && !contains(github.event.comment.body, '/claude /full-review')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '/claude') && !contains(github.event.review.body, '/claude /full-review')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '/claude') || contains(github.event.issue.title, '/claude')))
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && !contains(github.event.comment.body, '@claude /full-review')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && !contains(github.event.comment.body, '@claude /full-review')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && !contains(github.event.review.body, '@claude /full-review')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
)
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/codex-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,28 +133,34 @@ jobs:
name: Post Codex reply
runs-on: ubuntu-latest
needs: run-codex
if: |
needs.run-codex.result == 'success' &&
needs.run-codex.outputs.final_message != ''
if: always() && needs.run-codex.result == 'success'
permissions:
issues: write
pull-requests: write
steps:
- name: Debug outputs
run: |
echo "Final message length: ${#FINAL_MESSAGE}"
echo "Issue number: ${{ github.event.issue.number }}"
env:
FINAL_MESSAGE: ${{ needs.run-codex.outputs.final_message }}

- name: Reply with Codex output
if: needs.run-codex.outputs.final_message
uses: actions/github-script@v7
env:
CODEX_FINAL_MESSAGE: ${{ needs.run-codex.outputs.final_message }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const body = process.env.CODEX_FINAL_MESSAGE;
if (!body) {
const body = `${{ needs.run-codex.outputs.final_message }}`;
if (!body || body.trim() === '') {
core.info('No Codex output to post.');
return;
}
console.log('Posting comment with length:', body.length);
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
issue_number: ${{ github.event.issue.number }},
body
});
console.log('Comment posted successfully');