From 4d7bedbb3b54b6676350ea38c5542f7a8c8539b5 Mon Sep 17 00:00:00 2001 From: devthejo Date: Mon, 16 Dec 2024 23:12:07 +0100 Subject: [PATCH] fix: semantic-release issues write perms --- README.md | 5 +++-- packages/server/index.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a317e31..39c0d51 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,9 @@ yarn start 1. Create a GitHub App: - Navigate to **Settings** > **Developer settings** > **GitHub Apps** > **New GitHub App** - Set required permissions: - - **Contents**: **Read & Write** - - **Metadata**: **Read** + - **Contents**: **Read & Write** (Required for repository content access) + - **Metadata**: **Read** (Required for basic repository information) + - **Issues**: **Read & Write** (Required for semantic-release to create and manage issues) 2. Install the GitHub App: - Go to the **Install App** tab diff --git a/packages/server/index.js b/packages/server/index.js index 8072730..19f4ba8 100644 --- a/packages/server/index.js +++ b/packages/server/index.js @@ -136,7 +136,8 @@ async function generateToken(owner, repository) { repositoryIds: [repo.id], permissions: { contents: "write", - metadata: "read" + metadata: "read", + issues: "write" // Added issues permission } });