From d38ac8d220d82abf488beecbb636b1c8b231abb4 Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Mon, 23 Jun 2025 10:08:23 +0200 Subject: [PATCH] internal: use pat for claude review (#6025) * use pat * check emoji when pr closed --- .github/workflows/discord-notification.yml | 2 +- .github/workflows/pr-ready-review.yml | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/discord-notification.yml b/.github/workflows/discord-notification.yml index 012c406cef..525c343fe6 100644 --- a/.github/workflows/discord-notification.yml +++ b/.github/workflows/discord-notification.yml @@ -24,7 +24,7 @@ jobs: DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_AI_BOT_TOKEN }} merge_success_emoji: - if: github.event.pull_request.merged == true + if: github.event.action == 'closed' uses: ./.github/workflows/shareable-discord-notification.yml with: PR_STATUS: "merged" diff --git a/.github/workflows/pr-ready-review.yml b/.github/workflows/pr-ready-review.yml index f2e06aebd1..b431a9d385 100644 --- a/.github/workflows/pr-ready-review.yml +++ b/.github/workflows/pr-ready-review.yml @@ -9,17 +9,10 @@ jobs: if: github.event.pull_request.draft == false runs-on: ubicloud-standard-2 steps: - - name: Generate an installation token - id: app - uses: actions/create-github-app-token@v2 - with: - app-id: ${{ vars.INTERNAL_APP_ID }} - private-key: ${{ secrets.INTERNAL_APP_KEY }} - - name: Add review comment uses: actions/github-script@v7 with: - github-token: ${{ steps.app.outputs.token }} + github-token: ${{ secrets.PUBLIC_REPO_TOKEN }} script: | await github.rest.issues.createComment({ owner: context.repo.owner,