summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Zweben MacBook <noahz@anthropic.com>2026-01-06 15:43:32 -0800
committerNoah Zweben MacBook <noahz@anthropic.com>2026-01-06 15:43:32 -0800
commitff3447566e3eddff3e2c2dcda54a12ba380adbbc (patch)
treef105bdbebbda824a4e5ff335435fabb699ce071d
parentd5be96ce239787316ff1441201e908bbbb1c25fb (diff)
Revert to issues.createComment with proper permissionsclose-external-prs
-rw-r--r--.github/workflows/close-external-prs.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/close-external-prs.yml b/.github/workflows/close-external-prs.yml
index e828d13c..61d9544e 100644
--- a/.github/workflows/close-external-prs.yml
+++ b/.github/workflows/close-external-prs.yml
@@ -6,6 +6,7 @@ on:
permissions:
pull-requests: write
+ issues: write
jobs:
check-membership:
@@ -27,12 +28,11 @@ jobs:
console.log(`${author} is an org member, allowing PR`);
} catch (e) {
if (e.status === 404) {
- await github.rest.pulls.createReview({
+ await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
- pull_number: context.payload.pull_request.number,
- body: `Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin [here](https://docs.google.com/forms/d/e/1FAIpQLSdeFthxvjOXUjxg1i3KrOOkEPDJtn71XC-KjmQlxNP63xYydg/viewform).`,
- event: 'COMMENT'
+ issue_number: context.payload.pull_request.number,
+ body: `Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin [here](https://docs.google.com/forms/d/e/1FAIpQLSdeFthxvjOXUjxg1i3KrOOkEPDJtn71XC-KjmQlxNP63xYydg/viewform).`
});
await github.rest.pulls.update({