From a721c9747fff05cf83c9303a1780fe8b6f56b9c8 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 09:27:53 +0900 Subject: [PATCH 01/23] feat: check TODO in review action Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index cb50077c47..b5ac385fee 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -73,6 +73,34 @@ jobs: - name: Test run: npm run test + - name: Check for TODOs in ./apps/web/ + run: | + grep -rl "TODO" ./apps/web/ > todo_files.txt || true + + - name: Comment on Pull Request with TODO files + if: always() + uses: actions/github-script@v6 + with: + script: | + const fs = require('fs'); + const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); + if (todoFiles) { + const filesList = todoFiles.split('\n').map(file => `- ${file}`).join('\n'); + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `### 📝 TODOs Found\nThe following files contain TODOs:\n\n${filesList}` + }); + } else { + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `### ✅ No TODOs Found\nGood job! No TODOs were found in the \`./apps/web/\` directory.` + }); + } + - name: Upload artifact uses: actions/upload-artifact@v3 with: From 4fbd77f64ef5f565cf481f68a3ebcdccf6b1fbf4 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 09:37:30 +0900 Subject: [PATCH 02/23] feat: set github_token Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index b5ac385fee..4e27ab7ec4 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -81,6 +81,7 @@ jobs: if: always() uses: actions/github-script@v6 with: + github_token: ${{ secrets.PAT_TOKEN }} script: | const fs = require('fs'); const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); From e5f2ad63eb00914d0a7332327aed895b16068381 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 09:48:53 +0900 Subject: [PATCH 03/23] chore: check permission Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 4e27ab7ec4..ce4f233e8b 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -77,11 +77,16 @@ jobs: run: | grep -rl "TODO" ./apps/web/ > todo_files.txt || true + - name: Check GITHUB_TOKEN permissions + run: | + curl -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments - name: Comment on Pull Request with TODO files if: always() uses: actions/github-script@v6 with: - github_token: ${{ secrets.PAT_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} script: | const fs = require('fs'); const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); From fc02ab6c6b70b31a5a99a6a05f78e8202ec2fe85 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 09:57:55 +0900 Subject: [PATCH 04/23] chore: change github token Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index ce4f233e8b..dab034f8f7 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -77,16 +77,11 @@ jobs: run: | grep -rl "TODO" ./apps/web/ > todo_files.txt || true - - name: Check GITHUB_TOKEN permissions - run: | - curl -H "Authorization: token $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments - name: Comment on Pull Request with TODO files if: always() uses: actions/github-script@v6 with: - GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs'); const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); From 8b1077024ebf3e1d1e8690b31c509f70dab9e93c Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 10:02:07 +0900 Subject: [PATCH 05/23] chore: change script Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index dab034f8f7..768d22a684 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -81,7 +81,7 @@ jobs: if: always() uses: actions/github-script@v6 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs'); const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); From 665f518642bde0b45415f94a8864c67b8515117b Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 10:23:34 +0900 Subject: [PATCH 06/23] chore: use PAT_TOKEN Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 768d22a684..ce7f2ae988 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -81,7 +81,7 @@ jobs: if: always() uses: actions/github-script@v6 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.PAT_TOKEN }} script: | const fs = require('fs'); const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); From c1eea56e3bb065be856d498723171a106d5be1ca Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 10:35:44 +0900 Subject: [PATCH 07/23] chore: here! Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index ce7f2ae988..768d22a684 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -81,7 +81,7 @@ jobs: if: always() uses: actions/github-script@v6 with: - github-token: ${{ secrets.PAT_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs'); const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); From 7bf9cb4ef68b229a5845aa2f986f739c3e6388dc Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 11:05:35 +0900 Subject: [PATCH 08/23] feat: add permissions Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 768d22a684..028618ddc3 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -1,5 +1,9 @@ name: "[PR] Review" +permissions: + issues: write + contents: read + on: pull_request: types: [opened, synchronize, reopened] From a9994d49e4e1ef21c420500970f151080f186035 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 11:15:03 +0900 Subject: [PATCH 09/23] chore: update if Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 028618ddc3..6b22e5f698 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -1,9 +1,5 @@ name: "[PR] Review" -permissions: - issues: write - contents: read - on: pull_request: types: [opened, synchronize, reopened] @@ -82,7 +78,7 @@ jobs: grep -rl "TODO" ./apps/web/ > todo_files.txt || true - name: Comment on Pull Request with TODO files - if: always() + if: github.event.issue.pull_request uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} From a66b4ec86d9d5c4e8e0c6c01dda4b3657bd2411a Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 12:23:45 +0900 Subject: [PATCH 10/23] chore: test Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 42 +++++++---------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 6b22e5f698..cfe9167e11 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -39,6 +39,19 @@ jobs: with: node-version: 20 + - name: Comment on Pull Request with TODO files + if: always() + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `test!!!` + }); + - name: Restore cached node_modules id: restore-node-cache uses: actions/cache@v3 @@ -73,35 +86,6 @@ jobs: - name: Test run: npm run test - - name: Check for TODOs in ./apps/web/ - run: | - grep -rl "TODO" ./apps/web/ > todo_files.txt || true - - - name: Comment on Pull Request with TODO files - if: github.event.issue.pull_request - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const fs = require('fs'); - const todoFiles = fs.readFileSync('todo_files.txt', 'utf8').trim(); - if (todoFiles) { - const filesList = todoFiles.split('\n').map(file => `- ${file}`).join('\n'); - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `### 📝 TODOs Found\nThe following files contain TODOs:\n\n${filesList}` - }); - } else { - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `### ✅ No TODOs Found\nGood job! No TODOs were found in the \`./apps/web/\` directory.` - }); - } - - name: Upload artifact uses: actions/upload-artifact@v3 with: From cf768c206d2b79d520affc4c9d0fb567f5f5b738 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 12:26:41 +0900 Subject: [PATCH 11/23] feat: add permission Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index cfe9167e11..217ebc7f66 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -1,5 +1,8 @@ name: "[PR] Review" +permissions: + pull-requests: 'write' + on: pull_request: types: [opened, synchronize, reopened] From a8b0321f16073dea353e798b197d025191273b58 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 12:34:13 +0900 Subject: [PATCH 12/23] chore: edit something Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 217ebc7f66..6a7324c0b0 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -1,8 +1,5 @@ name: "[PR] Review" -permissions: - pull-requests: 'write' - on: pull_request: types: [opened, synchronize, reopened] @@ -28,6 +25,8 @@ on: jobs: review: runs-on: ubuntu-latest + permissions: + issues: write env: NODE_ENV: 'development' From fb185cbd7473ad5297e314aa29eaca21c83481c6 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 12:39:15 +0900 Subject: [PATCH 13/23] chore: change version Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 6a7324c0b0..f7a63320dc 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -25,8 +25,6 @@ on: jobs: review: runs-on: ubuntu-latest - permissions: - issues: write env: NODE_ENV: 'development' @@ -43,7 +41,7 @@ jobs: - name: Comment on Pull Request with TODO files if: always() - uses: actions/github-script@v6 + uses: actions/github-script@v5 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | From 6c5aa332ff11fdd0f01b8e8912fd31cce4944e55 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 12:40:38 +0900 Subject: [PATCH 14/23] chore: update version Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index f7a63320dc..cfe9167e11 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -41,7 +41,7 @@ jobs: - name: Comment on Pull Request with TODO files if: always() - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | From c12f94c41af1cad334dde87848b34164b969eb23 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:00:40 +0900 Subject: [PATCH 15/23] fix: use pull Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index cfe9167e11..2a371b2222 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -45,8 +45,8 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, + github.rest.pulls.createComment({ + pull_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: `test!!!` From be76742eefe230b36f6f8b8fa8f2173325f8d76e Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:01:35 +0900 Subject: [PATCH 16/23] fix: createReview Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 2a371b2222..cc757b00eb 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -45,7 +45,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.rest.pulls.createComment({ + github.rest.pulls.createReview({ pull_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, From 03421b0e42004efc109994f537107205cc69d315 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:03:58 +0900 Subject: [PATCH 17/23] fix: add event Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index cc757b00eb..1704967716 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -49,7 +49,8 @@ jobs: pull_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, - body: `test!!!` + body: `test!!!`, + event: 'COMMENT', }); - name: Restore cached node_modules From 404b746315cac75843dd806aaa5703a91f6557c4 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:09:07 +0900 Subject: [PATCH 18/23] fix: this? Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 1704967716..2746b44e8a 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -43,7 +43,7 @@ jobs: if: always() uses: actions/github-script@v6 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.PAT_TOKEN }} script: | github.rest.pulls.createReview({ pull_number: context.payload.pull_request.number, From 981b3b2cb69105709df26f727ad555ebf69fa547 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:19:11 +0900 Subject: [PATCH 19/23] chore: go Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 2746b44e8a..1890e5181c 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -34,24 +34,24 @@ jobs: with: submodules: true - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 20 - - name: Comment on Pull Request with TODO files if: always() uses: actions/github-script@v6 with: - github-token: ${{ secrets.PAT_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.rest.pulls.createReview({ - pull_number: context.payload.pull_request.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `test!!!`, - event: 'COMMENT', - }); + github.rest.pulls.createReview({ + pull_number: context.payload.pull_request.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `test!!!`, + event: 'COMMENT', + }); + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 - name: Restore cached node_modules id: restore-node-cache From 6f69395b7f3ef8e9da2193a2743a166c52712acb Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:23:07 +0900 Subject: [PATCH 20/23] chore: fix Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 1890e5181c..1fe2d45c78 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -27,6 +27,7 @@ jobs: runs-on: ubuntu-latest env: NODE_ENV: 'development' + ACTIONS_STEP_DEBUG: true steps: - name: Checkout code @@ -40,7 +41,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.rest.pulls.createReview({ + github.rest.pulls.createComment({ pull_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, From e6acba91fab7998bf70bcdd580d409e301f44056 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:24:44 +0900 Subject: [PATCH 21/23] fix: oh? Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 1fe2d45c78..79220aaf7b 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -27,7 +27,6 @@ jobs: runs-on: ubuntu-latest env: NODE_ENV: 'development' - ACTIONS_STEP_DEBUG: true steps: - name: Checkout code @@ -41,12 +40,11 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.rest.pulls.createComment({ + github.rest.issues.createComment({ pull_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: `test!!!`, - event: 'COMMENT', }); - name: Setup Node.js From 6a76d387fea7c524ce4872bdb49774fa83e90656 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:26:00 +0900 Subject: [PATCH 22/23] fix: issue_number Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 79220aaf7b..5cfb4afad8 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -41,7 +41,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} script: | github.rest.issues.createComment({ - pull_number: context.payload.pull_request.number, + issue_number: context.payload.pull_request.number, owner: context.repo.owner, repo: context.repo.repo, body: `test!!!`, From 54d8fedfc4bc7c3f5c26df013f75c49b6fdf16c0 Mon Sep 17 00:00:00 2001 From: yuda Date: Fri, 29 Nov 2024 13:29:21 +0900 Subject: [PATCH 23/23] fix: pull_request_target Signed-off-by: yuda --- .github/workflows/pull_request_review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 5cfb4afad8..c826512de9 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -1,7 +1,7 @@ name: "[PR] Review" on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened] path-ignores: - '.github/**'