Skip to content

release-plz: enable 'Allow GitHub Actions to create PRs' to unblock next-release PR automation #50

Open

Description

@utof

Problem

release-plz successfully tags + releases on `chore(release):` push, but fails on the subsequent "Release PR" step:

```
Failed to open PR
Caused by:
0: received unexpected response
1: Response body:
{
"documentation_url": "https://docs.github.com/rest/pulls/pulls#create-a-pull-request",
"message": "GitHub Actions is not permitted to create or approve pull requests.",
"status": "403"
}
```

Observed: release-plz run 24584861154. Orphan branch `release-plz-2026-04-17T20-17-56Z` was pushed before the PR-creation step failed.

Fix

Enable Settings → Actions → General → Workflow permissions → "Allow GitHub Actions to create and approve pull requests" (and confirm "Read and write permissions" is set).

Alternatively: give the `GITHUB_TOKEN` used by release-plz broader permissions via `permissions:` in `.github/workflows/release-plz.yml`.

Impact

  • Not blocking releases — v0.6.2 tagged + published successfully.
  • Means the "Release PR" feature (release-plz's forward-looking PR that accumulates pending changes for the next version) never materialises, so CHANGELOG previews aren't visible before release.
  • Orphan `release-plz-*` branches accumulate on origin until the setting flips — low-priority cleanup.

Cleanup

`git push origin --delete release-plz-2026-04-17T20-17-56Z` once the setting is flipped and the next release succeeds.

Disposition

Repo-settings change by @utof (I don't have repo-admin). Once flipped, next release-plz cycle will verify end-to-end.

Activity

  1. added
    meta
    type/chore
    on Apr 17, 2026
  2. utof commented on Apr 17, 2026

    @utof
    OwnerAuthor

    Addressed by commit 2d63597 (local, unpushed): drops the release-plz-pr job entirely since perima uses direct chore(release): commits pre-verified by just ci, not the PR-gated flow. No permission flip needed. Orphan branches on origin (release-plz-2026-04-16T16-35-54Z, release-plz-2026-04-17T20-17-56Z) can be deleted manually: git push origin --delete <branch>. If v1.0 or later calls for PR-gated releases, re-add the job + flip the permission with explicit intent at that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    metatype/chore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions