internal: use pat for claude review (#6025)

* use pat

* check emoji when pr closed
This commit is contained in:
centdix
2025-06-23 10:08:23 +02:00
committed by GitHub
parent 36015b1c10
commit d38ac8d220
2 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -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"
+1 -8
View File
@@ -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,