Skip to content

Failure to get associated PRs for forked repo #1032

@joe-p

Description

@joe-p

When running semantic-release with this plugin in a forked repo, the success step will fail because the PR doesn't exist in the repositoryUrl.

For example, given a fork of originalOrg/some-repo: orgWithFork/some-repo, the plugin will get the associated PRs for the release, but then try to fetch them from orgWithFork repo instead of the upstream originalOrg

     url: 'https://api.github.com/repos/orgWithFork/some-repo/pulls/55/commits',
    status: 404,

Here's the failing workflow run: https://github.com/joe-p/algokit-core/actions/runs/14618441013/job/41012357613

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions