Skip to content

Commit 85c53e7

Browse files
authored
fix: post release permissions error (#1750)
<!-- 👋 Hi, thanks for sending a PR to create-typescript-app! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes #1682 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview <!-- Description of what is changed and how the code change does that. --> This PR applies the change suggested by @apexskier here to attempt to fix post-release permissions: apexskier/github-release-commenter#545 (comment)
1 parent e6e1575 commit 85c53e7

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/post-release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ on:
2525
release:
2626
types:
2727
- published
28+
29+
permissions:
30+
issues: write
31+
pull-requests: write

src/next/blocks/blockReleaseIt.ts

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export const blockReleaseIt = base.createBlock({
3131
types: ["published"],
3232
},
3333
},
34+
permissions: {
35+
issues: "write",
36+
"pull-requests": "write",
37+
},
3438
steps: [
3539
{ uses: "actions/checkout@v4", with: { "fetch-depth": 0 } },
3640
{

src/steps/writing/creation/dotGitHub/createWorkflows.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ describe("createWorkflows", () => {
219219
release:
220220
types:
221221
- published
222+
223+
permissions:
224+
issues: write
225+
pull-requests: write
222226
",
223227
"pr-review-requested.yml": "jobs:
224228
pr_review_requested:

src/steps/writing/creation/dotGitHub/createWorkflows.ts

+4
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ export function createWorkflows(options: Options) {
153153
types: ["published"],
154154
},
155155
},
156+
permissions: {
157+
issues: "write",
158+
"pull-requests": "write",
159+
},
156160
steps: [
157161
{ uses: "actions/checkout@v4", with: { "fetch-depth": 0 } },
158162
{

0 commit comments

Comments
 (0)