Skip to content

Commit

Permalink
fix: semantic-release issues write perms
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Dec 16, 2024
1 parent b868ba1 commit 4d7bedb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion packages/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ async function generateToken(owner, repository) {
repositoryIds: [repo.id],
permissions: {
contents: "write",
metadata: "read"
metadata: "read",
issues: "write" // Added issues permission
}
});

Expand Down

0 comments on commit 4d7bedb

Please sign in to comment.