From 8281118e1069353049c345b1aa2ec71495a7d84b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Apr 2026 03:27:13 +0000 Subject: [PATCH 1/2] feat: auto-reply @coderabbit apply on CodeRabbit suggestion comments Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/d9f31daf-c3ae-45df-9390-c25d17629931 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> --- .github/workflows/coderabbit-auto-apply.yml | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/coderabbit-auto-apply.yml diff --git a/.github/workflows/coderabbit-auto-apply.yml b/.github/workflows/coderabbit-auto-apply.yml new file mode 100644 index 0000000..db21eb3 --- /dev/null +++ b/.github/workflows/coderabbit-auto-apply.yml @@ -0,0 +1,28 @@ +name: CodeRabbit Auto-Apply Suggestions + +on: + pull_request_review_comment: + types: [created] + +permissions: + pull-requests: write + +jobs: + auto-apply: + # Only run when CodeRabbit posts a comment that contains a suggestion block. + if: | + github.event.comment.user.login == 'coderabbit-ai[bot]' && + contains(github.event.comment.body, '```suggestion') + runs-on: ubuntu-latest + steps: + - name: Reply with @coderabbit apply + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + await github.rest.pulls.createReplyForReviewComment({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + comment_id: context.payload.comment.id, + body: '@coderabbit apply', + }); From d502aea51bb285d37233b0b88c737722ed21726a Mon Sep 17 00:00:00 2001 From: RB <7775707+nitrocode@users.noreply.github.com> Date: Sun, 26 Apr 2026 22:50:36 -0500 Subject: [PATCH 2/2] fix: cr name Signed-off-by: RB <7775707+nitrocode@users.noreply.github.com> --- .github/workflows/coderabbit-auto-apply.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coderabbit-auto-apply.yml b/.github/workflows/coderabbit-auto-apply.yml index db21eb3..3c3199c 100644 --- a/.github/workflows/coderabbit-auto-apply.yml +++ b/.github/workflows/coderabbit-auto-apply.yml @@ -11,7 +11,7 @@ jobs: auto-apply: # Only run when CodeRabbit posts a comment that contains a suggestion block. if: | - github.event.comment.user.login == 'coderabbit-ai[bot]' && + github.event.comment.user.login == 'coderabbitai[bot]' && contains(github.event.comment.body, '```suggestion') runs-on: ubuntu-latest steps: